mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
OP-1858 takeoff in nav address code review comments
This commit is contained in:
parent
4ccdc46311
commit
7fd08ef990
@ -82,7 +82,7 @@ static uint8_t conditionImmediate();
|
|||||||
static void SettingsUpdatedCb(__attribute__((unused)) UAVObjEvent *ev);
|
static void SettingsUpdatedCb(__attribute__((unused)) UAVObjEvent *ev);
|
||||||
static void planner_setup_pathdesired_land(PathDesiredData *pathDesired);
|
static void planner_setup_pathdesired_land(PathDesiredData *pathDesired);
|
||||||
static void planner_setup_pathdesired_takeoff(PathDesiredData *pathDesired);
|
static void planner_setup_pathdesired_takeoff(PathDesiredData *pathDesired);
|
||||||
static void planner_setup_pathdesired(PathDesiredData *pathDesired, uint8_t);
|
static void planner_setup_pathdesired(PathDesiredData *pathDesired, bool overwrite_start_position);
|
||||||
|
|
||||||
|
|
||||||
// Private variables
|
// Private variables
|
||||||
@ -332,7 +332,7 @@ void updatePathDesired()
|
|||||||
WaypointInstGet(waypointActive.Index, &waypoint);
|
WaypointInstGet(waypointActive.Index, &waypoint);
|
||||||
|
|
||||||
// Capture if current mode is takeoff
|
// Capture if current mode is takeoff
|
||||||
uint8_t autotakeoff = (pathAction.Mode == PATHACTION_MODE_AUTOTAKEOFF);
|
bool autotakeoff = (pathAction.Mode == PATHACTION_MODE_AUTOTAKEOFF);
|
||||||
|
|
||||||
PathActionInstGet(waypoint.Action, &pathAction);
|
PathActionInstGet(waypoint.Action, &pathAction);
|
||||||
|
|
||||||
@ -438,7 +438,7 @@ void statusUpdated(__attribute__((unused)) UAVObjEvent *ev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Standard setup of a pathDesired command from the waypoint path plan
|
// Standard setup of a pathDesired command from the waypoint path plan
|
||||||
static void planner_setup_pathdesired(PathDesiredData *pathDesired, uint8_t overwrite_start_position)
|
static void planner_setup_pathdesired(PathDesiredData *pathDesired, bool overwrite_start_position)
|
||||||
{
|
{
|
||||||
pathDesired->End.North = waypoint.Position.North;
|
pathDesired->End.North = waypoint.Position.North;
|
||||||
pathDesired->End.East = waypoint.Position.East;
|
pathDesired->End.East = waypoint.Position.East;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user