mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-03 12:14:10 -04:00
Plane: default takeoff pitch to 15 deg for PPDS
This commit is contained in:
parent
ff5b4f1b13
commit
210dac7356
@ -370,7 +370,7 @@ void Plane::do_takeoff(const AP_Mission::Mission_Command& cmd)
|
|||||||
auto_state.takeoff_pitch_cd = (int16_t)cmd.p1 * 100;
|
auto_state.takeoff_pitch_cd = (int16_t)cmd.p1 * 100;
|
||||||
if (auto_state.takeoff_pitch_cd <= 0) {
|
if (auto_state.takeoff_pitch_cd <= 0) {
|
||||||
// if the mission doesn't specify a pitch use 4 degrees
|
// if the mission doesn't specify a pitch use 4 degrees
|
||||||
auto_state.takeoff_pitch_cd = 400;
|
auto_state.takeoff_pitch_cd = 1500;
|
||||||
}
|
}
|
||||||
auto_state.takeoff_altitude_rel_cm = next_WP_loc.alt - home.alt;
|
auto_state.takeoff_altitude_rel_cm = next_WP_loc.alt - home.alt;
|
||||||
next_WP_loc.lat = home.lat + 10;
|
next_WP_loc.lat = home.lat + 10;
|
||||||
|
Loading…
Reference in New Issue
Block a user