mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
OP-1599 added new mode "courselock" in handlers where missing
This commit is contained in:
parent
db0ba763bf
commit
3e5c5bd140
@ -141,6 +141,7 @@ int32_t configuration_check()
|
||||
}
|
||||
// intentionally no break as this also needs pathfollower
|
||||
case FLIGHTMODESETTINGS_FLIGHTMODEPOSITION_POSITIONHOLD:
|
||||
case FLIGHTMODESETTINGS_FLIGHTMODEPOSITION_COURSELOCK:
|
||||
case FLIGHTMODESETTINGS_FLIGHTMODEPOSITION_MAGICROAM:
|
||||
case FLIGHTMODESETTINGS_FLIGHTMODEPOSITION_MAGICLEASH:
|
||||
case FLIGHTMODESETTINGS_FLIGHTMODEPOSITION_ABSOLUTEPOSITION:
|
||||
|
@ -205,6 +205,7 @@ static void manualControlTask(void)
|
||||
break;
|
||||
#ifndef PIOS_EXCLUDE_ADVANCED_FEATURES
|
||||
case FLIGHTSTATUS_FLIGHTMODE_POSITIONHOLD:
|
||||
case FLIGHTSTATUS_FLIGHTMODE_COURSELOCK:
|
||||
case FLIGHTSTATUS_FLIGHTMODE_MAGICROAM:
|
||||
case FLIGHTSTATUS_FLIGHTMODE_MAGICLEASH:
|
||||
case FLIGHTSTATUS_FLIGHTMODE_ABSOLUTEPOSITION:
|
||||
|
@ -68,6 +68,9 @@ void pathFollowerHandler(bool newinit)
|
||||
case FLIGHTSTATUS_FLIGHTMODE_POSITIONHOLD:
|
||||
plan_setup_positionHold();
|
||||
break;
|
||||
case FLIGHTSTATUS_FLIGHTMODE_COURSELOCK:
|
||||
plan_setup_CourseLock();
|
||||
break;
|
||||
case FLIGHTSTATUS_FLIGHTMODE_MAGICROAM:
|
||||
plan_setup_MagicRoam();
|
||||
break;
|
||||
@ -92,6 +95,9 @@ void pathFollowerHandler(bool newinit)
|
||||
}
|
||||
|
||||
switch (flightMode) {
|
||||
case FLIGHTSTATUS_FLIGHTMODE_COURSELOCK:
|
||||
plan_run_CourseLock();
|
||||
break;
|
||||
case FLIGHTSTATUS_FLIGHTMODE_MAGICROAM:
|
||||
plan_run_MagicRoam();
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user