mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 03:03:33 +08:00
px4_main_t: fix method declaration throughout the code base
px4_main_t is defined as: typedef int (*px4_main_t)(int argc, char *argv[]); which matches with the definition in NuttX, given to task_create
This commit is contained in:
@@ -572,10 +572,11 @@ void VtolAttitudeControl::fill_fw_att_rates_sp()
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
int
|
||||
VtolAttitudeControl::task_main_trampoline(int argc, char *argv[])
|
||||
{
|
||||
VTOL_att_control::g_control->task_main();
|
||||
return 0;
|
||||
}
|
||||
|
||||
void VtolAttitudeControl::task_main()
|
||||
|
||||
@@ -214,7 +214,7 @@ private:
|
||||
//*****************Member functions***********************************************************************
|
||||
|
||||
void task_main(); //main task
|
||||
static void task_main_trampoline(int argc, char *argv[]); //Shim for calling task_main from task_create.
|
||||
static int task_main_trampoline(int argc, char *argv[]); //Shim for calling task_main from task_create.
|
||||
|
||||
void land_detected_poll();
|
||||
void tecs_status_poll();
|
||||
|
||||
Reference in New Issue
Block a user