mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-06 01:30:35 +08:00
Simplify use of pitch_min
This commit is contained in:
committed by
Lorenz Meier
parent
9821499113
commit
eaae1abdaf
@@ -900,6 +900,11 @@ MavlinkMissionManager::parse_mavlink_mission_item(const mavlink_mission_item_t *
|
||||
mission_item->altitude_is_relative = true;
|
||||
}
|
||||
|
||||
/* this field is shared with pitch_min in memory and
|
||||
* exclusive in the MAVLink spec. Set it to 0 first
|
||||
* and then set minimum pitch later only for the
|
||||
* corresponding item
|
||||
*/
|
||||
mission_item->time_inside = 0.0f;
|
||||
|
||||
switch (mavlink_mission_item->command) {
|
||||
|
||||
Reference in New Issue
Block a user