1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 17:25:18 +03:00

AltHold cleanup.

* Renamed several methods and variables so they make more sense.
* Move more altitude hold related code out of imu.c/h into
altitudehold.c/h.
* Fixed a unsigned integer being using instead of an signed integer in
the throttle calculation code.
This commit is contained in:
Dominic Clifton 2014-09-29 01:34:15 +01:00
parent 7d4abb8a4a
commit daa823ddba
8 changed files with 222 additions and 199 deletions

View file

@ -632,7 +632,7 @@ void loop(void)
#if defined(BARO) || defined(SONAR)
if (sensors(SENSOR_BARO) || sensors(SENSOR_SONAR)) {
if (FLIGHT_MODE(BARO_MODE) || FLIGHT_MODE(SONAR_MODE)) {
updateAltHold();
applyAltHold();
}
}
#endif