Skip to content

Commit

Permalink
new ESC calibration option - builds a special version of MWii only fo…
Browse files Browse the repository at this point in the history
…r calibration all ESCs

git-svn-id: http://multiwii.googlecode.com/svn/trunk/MultiWii_shared@743 02679b44-d973-9852-f2fa-63770883b36c
  • Loading branch information
der.fliegende.hamburger@googlemail.com committed Apr 28, 2012
1 parent b20ccc9 commit bc37425
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CREDITS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ N: PatrikE
E:
W: http://fotoflygarn.blogspot.com/2012/03/how-to-setup-multiwii-airplane-same.html

S: BTSERIAL
D:
S: RCSERIAL
D: input RC signal with the serial port
N: Luis Correia
E:
W: http://www.multiwii.com/forum/viewtopic.php?f=18&t=828
Expand Down
12 changes: 12 additions & 0 deletions MultiWii.ino
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,18 @@ void setup() {
BUZZERPIN_PINMODE;
STABLEPIN_PINMODE;
POWERPIN_OFF;
#if defined(ESC_CALIB_CANNOT_FLY)
/* this turns into a special version of MultiWii. Its only purpose it to try and calib all attached ESCs */
writeAllMotors(ESC_CALIB_HIGH);
delay(3000);
writeAllMotors(ESC_CALIB_LOW);
delay(500);
while (1) {
delay(5000);
blinkLED(2,20, 2);
}
exit; // statement never reached
#endif
initOutput();
readEEPROM();
checkFirstTime();
Expand Down
19 changes: 19 additions & 0 deletions config.h
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,9 @@

/************************** Disable WMP power pin *******************************/
/* disable use of the POWER PIN */
/* sorry, but this needs clarification about purpose and side effects */
/* what happens when enabled/disabled? what to set it to for using D12 as aux2 input? need it be set or left alone or does not matter?*/
/* is this not equal to D12_POWER? */
//#define DISABLE_POWER_PIN


Expand Down Expand Up @@ -660,6 +663,22 @@
//#define LCD_TELEMETRY_DEBUG //This form rolls between all screens, LCD_TELEMETRY_AUTO must also be defined.
//#define LCD_TELEMETRY_DEBUG 6 //This form stays on the screen specified.

/********************************************************************/
/**** ESCs calibration ****/
/********************************************************************/

/* to calibrate all ESCs connected to MWii at the same time (useful to avoid unplugging/re-plugging each ESC) */
/* Warning: this creates a special version of MultiWii Code */
/* You cannot fly with this special version. It is only to be used for calibrating ESCs */
/* How To: */
/* 1. activate the define, possibly set high and low values for ESC calibration, if you know what you are doing */
/* 2. setup all options in config.h to whatever suits your copter */
/* 3. compile, upload, run --- cannot fly and will use Buzzer to indicate finished calibration */
/* 4. comment the define, compile, upload */
/* 5. test carefully, fly and have fun */
#define ESC_CALIB_LOW MINCOMMAND
#define ESC_CALIB_HIGH 2000
//#define ESC_CALIB_CANNOT_FLY

//****** end of advanced users settings ***********************************
/* ===================================================================== */
Expand Down

0 comments on commit bc37425

Please sign in to comment.