|
|
@ -921,10 +921,19 @@ void intro() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
int readYaw() { |
|
|
|
int samples = 0; |
|
|
|
for(int i = 0; i < 10; i++) { |
|
|
|
samples = samples + analogRead(YAW_PIN); |
|
|
|
} |
|
|
|
|
|
|
|
return samples / 10; |
|
|
|
} |
|
|
|
|
|
|
|
void read_all_voltage() { |
|
|
|
throttle_raw = analogRead(THROTTLE_PIN); |
|
|
|
yaw_raw = analogRead(YAW_PIN); |
|
|
|
// yaw_raw = readYaw();
|
|
|
|
pitch_raw = analogRead(PITCH_PIN); |
|
|
|
// roll_raw = analogRead(ROLL_PIN);
|
|
|
|
// Hardcode to increase the value a bit...
|
|
|
@ -1412,7 +1421,7 @@ void update_display(void) { |
|
|
|
update_delay = 10; |
|
|
|
if(menu_entry_alpha_list[destination_alpha_state.position].name == "RC Controller") { |
|
|
|
require_unlock = true; |
|
|
|
update_delay = 100; |
|
|
|
// update_delay = 100;
|
|
|
|
rc_controller(); |
|
|
|
} else if(menu_entry_alpha_list[destination_alpha_state.position].name == "Battery") { |
|
|
|
require_unlock = false; |
|
|
|