diff options
author | Julian Oes <julian@oes.ch> | 2014-04-26 12:24:52 +0200 |
---|---|---|
committer | Julian Oes <julian@oes.ch> | 2014-04-26 12:24:52 +0200 |
commit | 9f857f86e44a6385daa383d9b02173ad3c36fa01 (patch) | |
tree | ccff7c050d00511281890d343016d27e06901df6 /src/modules | |
parent | db5266d3dfe65d0c8111e385f1306fbaf4231a1f (diff) | |
download | px4-firmware-9f857f86e44a6385daa383d9b02173ad3c36fa01.tar.gz px4-firmware-9f857f86e44a6385daa383d9b02173ad3c36fa01.tar.bz2 px4-firmware-9f857f86e44a6385daa383d9b02173ad3c36fa01.zip |
navigator: corrected the RTL waypoint types
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/navigator/rtl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/navigator/rtl.cpp b/src/modules/navigator/rtl.cpp index 6e621e39d..b8ea06275 100644 --- a/src/modules/navigator/rtl.cpp +++ b/src/modules/navigator/rtl.cpp @@ -119,7 +119,7 @@ RTL::get_current_rtl_item(const vehicle_global_position_s *global_position, miss new_mission_item->yaw = NAN; new_mission_item->loiter_radius = _loiter_radius; new_mission_item->loiter_direction = 1; - new_mission_item->nav_cmd = NAV_CMD_TAKEOFF; + new_mission_item->nav_cmd = NAV_CMD_WAYPOINT; new_mission_item->acceptance_radius = _acceptance_radius; new_mission_item->time_inside = 0.0f; new_mission_item->pitch_min = 0.0f; @@ -168,7 +168,7 @@ RTL::get_current_rtl_item(const vehicle_global_position_s *global_position, miss new_mission_item->yaw = NAN; new_mission_item->loiter_radius = _loiter_radius; new_mission_item->loiter_direction = 1; - new_mission_item->nav_cmd = NAV_CMD_WAYPOINT; + new_mission_item->nav_cmd = NAV_CMD_LOITER_TIME_LIMIT; new_mission_item->acceptance_radius = _acceptance_radius; new_mission_item->time_inside = _param_land_delay.get() < 0.0f ? 0.0f : _param_land_delay.get(); new_mission_item->pitch_min = 0.0f; @@ -250,4 +250,4 @@ RTL::move_to_next() default: break; } -}
\ No newline at end of file +} |