Skip to content

Commit

Permalink
alarm Low voltage EAM
Browse files Browse the repository at this point in the history
  • Loading branch information
mamaretti committed Aug 6, 2012
1 parent 4cfc673 commit 1b269d5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Hott.pde
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,17 @@ void _hott_update_eam_msg() {

(int &)hott_eam_msg.climbrate_L = 30000 + climb_rate_actual;
hott_eam_msg.climbrate3s = 120 + (climb_rate / 100); // 0 m/3s using filtered data here


//Alarm when Voltage is to low
if( (int)(battery_voltage1 * 10.0) < (g.low_voltage*10)) {
hott_eam_msg.warning_beeps = 'V';
bitWrite(hott_eam_msg.alarm_invers1, 7, 1); //V invers
} else {
hott_eam_msg.warning_beeps = 0x00;
bitWrite(hott_eam_msg.alarm_invers1, 7, 0); //V invers
}


//display ON when motors are armed
if (motors.armed()) {
Expand Down

0 comments on commit 1b269d5

Please sign in to comment.