7 #define ESC_CALIBRATION_HIGH_THROTTLE 950 26 #if FRAME_CONFIG != HELI_FRAME 51 gcs().
send_text(MAV_SEVERITY_CRITICAL,
"ESC calibration: Restart board");
55 while(1) {
delay(5); }
83 #endif // FRAME_CONFIG != HELI_FRAME 89 #if FRAME_CONFIG != HELI_FRAME 98 motors->set_update_rate(50);
102 gcs().
send_text(MAV_SEVERITY_INFO,
"ESC calibration: Passing pilot throttle to ESCs");
128 #endif // FRAME_CONFIG != HELI_FRAME 134 #if FRAME_CONFIG != HELI_FRAME 135 bool printed_msg =
false;
145 motors->set_update_rate(50);
149 gcs().
send_text(MAV_SEVERITY_INFO,
"ESC calibration: Auto calibration");
168 gcs().
send_text(MAV_SEVERITY_INFO,
"ESC calibration: Push safety switch");
172 motors->set_throttle_passthrough_for_esc_calibration(1.0
f);
179 uint32_t tstart =
millis();
180 while (
millis() - tstart < 5000) {
181 motors->set_throttle_passthrough_for_esc_calibration(1.0
f);
187 motors->set_throttle_passthrough_for_esc_calibration(0.0
f);
191 motors->set_throttle_passthrough_for_esc_calibration(0.0
f);
195 #endif // FRAME_CONFIG != HELI_FRAME void esc_calibration_auto()
AP_BoardConfig BoardConfig
void esc_calibration_passthrough()
uint32_t last_radio_update_ms
bool rc_calibration_checks(bool display_failure) override
void esc_calibration_notify()
RC_Channel * channel_throttle
int16_t get_control_in() const
uint32_t esc_calibration_notify_update_ms
virtual enum safety_state safety_switch_state(void)
void send_text(MAV_SEVERITY severity, const char *fmt,...)
void set_soft_armed(const bool b)
#define ESC_CALIBRATION_HIGH_THROTTLE
static struct notify_flags_and_values_type flags
void esc_calibration_startup_check()
static void enable_by_mask(uint16_t mask)