mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 08:38:36 -04:00
min throttle fix
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1221 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
930b09b286
commit
6fd20d880b
@ -55,6 +55,7 @@ void APM_Init() {
|
|||||||
/* ********************************************************* */
|
/* ********************************************************* */
|
||||||
/////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////
|
||||||
// Normal Initialization sequence starts from here.
|
// Normal Initialization sequence starts from here.
|
||||||
|
readUserConfig(); // Load user configurable items from EEPROM
|
||||||
|
|
||||||
APM_RC.Init(); // APM Radio initialization
|
APM_RC.Init(); // APM Radio initialization
|
||||||
|
|
||||||
@ -112,7 +113,9 @@ void APM_Init() {
|
|||||||
|
|
||||||
|
|
||||||
flightOrientation = SW_DIP1; // DIP1 off = we are in + mode, DIP1 on = we are in x mode
|
flightOrientation = SW_DIP1; // DIP1 off = we are in + mode, DIP1 on = we are in x mode
|
||||||
readUserConfig(); // Load user configurable items from EEPROM
|
|
||||||
|
// readUserConfig moved to up to ensure min throttle is read from eeprom
|
||||||
|
//readUserConfig(); // Load user configurable items from EEPROM
|
||||||
|
|
||||||
// Safety measure for Channel mids
|
// Safety measure for Channel mids
|
||||||
if(roll_mid < 1400 || roll_mid > 1600) roll_mid = 1500;
|
if(roll_mid < 1400 || roll_mid > 1600) roll_mid = 1500;
|
||||||
@ -199,4 +202,4 @@ void APM_Init() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user