mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
fixed Makefile to build w/new drivers (thanks Hydra)
int32 updates in sonar driver added 12mhz buzzer check Removed debug output from GPS module int32'ified althold output HSE MHz+SysClkMHz on debug[3] git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@379 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
parent
3b8c1841f8
commit
0664b3005d
12 changed files with 59 additions and 46 deletions
5
src/mw.c
5
src/mw.c
|
@ -762,7 +762,6 @@ void loop(void)
|
|||
#ifdef SONAR
|
||||
if (sensors(SENSOR_SONAR)) {
|
||||
Sonar_update();
|
||||
debug[2] = sonarAlt;
|
||||
}
|
||||
#endif
|
||||
if (feature(FEATURE_VARIO) && f.VARIO_MODE)
|
||||
|
@ -838,6 +837,10 @@ void loop(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
if (cfg.throttle_angle_correction && (f.ANGLE_MODE || f.HORIZON_MODE)) {
|
||||
rcCommand[THROTTLE]+= throttleAngleCorrection;
|
||||
}
|
||||
|
||||
if (sensors(SENSOR_GPS)) {
|
||||
if ((f.GPS_HOME_MODE || f.GPS_HOLD_MODE) && f.GPS_FIX_HOME) {
|
||||
float sin_yaw_y = sinf(heading * 0.0174532925f);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue