2011-01-14 00:54:30 +01:00
|
|
|
"""__NATIVE__
|
|
|
|
#include "openpilot.h"
|
|
|
|
#include "flightplanstatus.h"
|
|
|
|
"""
|
|
|
|
|
|
|
|
def FlightPlanStatusUpdate(val):
|
|
|
|
"""__NATIVE__
|
|
|
|
pPmObj_t pobj;
|
|
|
|
FlightPlanStatusData status;
|
2011-01-19 04:34:01 +01:00
|
|
|
|
|
|
|
FlightPlanStatusGet(&status);
|
|
|
|
|
2011-01-14 00:54:30 +01:00
|
|
|
pobj = NATIVE_GET_LOCAL(0);
|
|
|
|
if ( OBJ_GET_TYPE(pobj) == OBJ_TYPE_INT )
|
2011-01-19 04:34:01 +01:00
|
|
|
status.Debug1 = ((pPmInt_t) pobj)->val;
|
2011-01-14 00:54:30 +01:00
|
|
|
else if ( OBJ_GET_TYPE(pobj) == OBJ_TYPE_FLT )
|
2011-01-19 04:34:01 +01:00
|
|
|
status.Debug1 = ((pPmFloat_t) pobj)->val;
|
2011-01-14 00:54:30 +01:00
|
|
|
|
|
|
|
FlightPlanStatusSet(&status);
|
|
|
|
|
|
|
|
return PM_RET_OK;
|
|
|
|
"""
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|