mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 10:43:34 +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:
@@ -412,7 +412,7 @@ private:
|
||||
/**
|
||||
* Shim for calling task_main from task_create.
|
||||
*/
|
||||
static void task_main_trampoline(int argc, char *argv[]);
|
||||
static int task_main_trampoline(int argc, char *argv[]);
|
||||
|
||||
/**
|
||||
* Main sensor collection task.
|
||||
@@ -768,10 +768,11 @@ MulticopterPositionControl::throttle_curve(float ctl, float ctr)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
int
|
||||
MulticopterPositionControl::task_main_trampoline(int argc, char *argv[])
|
||||
{
|
||||
pos_control::g_control->task_main();
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user