Buzzer- ArmedTimeWarning Error
Posted: Sat Jul 28, 2012 9:24 pm
When I uncomment ARMEDTIMEWARNING and try to compile
/********************************************************************/
/**** Buzzer ****/
/********************************************************************/
#define BUZZER
#define RCOPTIONSBEEP //uncomment this if you want the buzzer to beep at any rcOptions change on channel Aux1 to Aux4
#define ARMEDTIMEWARNING 480 // Trigger an alarm after a certain time of being armed [s] to save you lipo (if your TX does not have a countdown)
I get the error below
MultiWii_2_1.cpp: In function 'void buzzer(uint8_t)':
Buzzer:46: error: 'armedTime' was not declared in this scope
Seems a very simple fix but, I'm far from a programmer. I know it just means that the variable is not defined here and I can set it to 0 and it will compile, but I'm certain it needs to come from somewhere else and not just be set to 0. Any help woul be appreciated.
/********************************************************************/
/**** Buzzer ****/
/********************************************************************/
#define BUZZER
#define RCOPTIONSBEEP //uncomment this if you want the buzzer to beep at any rcOptions change on channel Aux1 to Aux4
#define ARMEDTIMEWARNING 480 // Trigger an alarm after a certain time of being armed [s] to save you lipo (if your TX does not have a countdown)
I get the error below
MultiWii_2_1.cpp: In function 'void buzzer(uint8_t)':
Buzzer:46: error: 'armedTime' was not declared in this scope
Seems a very simple fix but, I'm far from a programmer. I know it just means that the variable is not defined here and I can set it to 0 and it will compile, but I'm certain it needs to come from somewhere else and not just be set to 0. Any help woul be appreciated.