mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 21:48:28 -04:00
Rover: remove auto trim at startup
Also add additional checks to auto trim
This commit is contained in:
parent
6459a4de9d
commit
241456f55f
@ -141,7 +141,7 @@ void Rover::trim_control_surfaces()
|
|||||||
read_radio();
|
read_radio();
|
||||||
// Store control surface trim values
|
// Store control surface trim values
|
||||||
// ---------------------------------
|
// ---------------------------------
|
||||||
if (channel_steer->get_radio_in() > 1400) {
|
if ((channel_steer->get_radio_in() > 1400) && (channel_steer->get_radio_in() < 1600)) {
|
||||||
channel_steer->set_radio_trim(channel_steer->get_radio_in());
|
channel_steer->set_radio_trim(channel_steer->get_radio_in());
|
||||||
// save to eeprom
|
// save to eeprom
|
||||||
channel_steer->save_eeprom();
|
channel_steer->save_eeprom();
|
||||||
|
@ -179,10 +179,6 @@ void Rover::startup_ground(void)
|
|||||||
|
|
||||||
startup_INS_ground();
|
startup_INS_ground();
|
||||||
|
|
||||||
// read the radio to set trims
|
|
||||||
// ---------------------------
|
|
||||||
trim_radio();
|
|
||||||
|
|
||||||
// initialise mission library
|
// initialise mission library
|
||||||
mission.init();
|
mission.init();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user