Skip to content

Commit

Permalink
- option to reset baro altitude on arm / ALTITUDE_RESET_ON_ARM (http:…
Browse files Browse the repository at this point in the history
  • Loading branch information
dubusal committed Jan 7, 2015
1 parent 78a7f83 commit 35e65de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions MultiWii_shared/MultiWii.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 772,11 @@ void go_arm() {
#if defined(VBAT)
if (analog.vbat > NO_VBAT) vbatMin = analog.vbat;
#endif
#ifdef ALTITUDE_RESET_ON_ARM
#if BARO
calibratingB = 10; // calibrate baro to new ground level (10 * 25 ms = ~250 ms non blocking)
#endif
#endif
#ifdef LCD_TELEMETRY // reset some values when arming
#if BARO
BAROaltMax = alt.EstAlt;
Expand Down
4 changes: 4 additions & 0 deletions MultiWii_shared/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 548,10 @@ At this moment you can use this function only with WinGUI 2.3 release. MultiWiiC
/***************** ***************/
/*************************************************************************************************/

/************************ Reset Baro altitude on arm ********************/
/* When unchecked a calibration of the baro altitude is preformed every time arming is activated */
//#define ALTITUDE_RESET_ON_ARM

/************************ Angele throttle correction ********************/
/* Automatically increase throttle based on the angle of the copter
Original idea by Kraut Rob, first implementation HAdrian */
Expand Down

0 comments on commit 35e65de

Please sign in to comment.