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