mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 05:53:34 +08:00
Forgot to remove some debug stuff
This commit is contained in:
@@ -179,14 +179,12 @@ mixer_tick(void)
|
|||||||
if (mixer_servos_armed && !esc_init_done && !esc_init_active) {
|
if (mixer_servos_armed && !esc_init_done && !esc_init_active) {
|
||||||
esc_init_time = hrt_absolute_time();
|
esc_init_time = hrt_absolute_time();
|
||||||
esc_init_active = true;
|
esc_init_active = true;
|
||||||
isr_debug(1, "start counting now");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* after waiting long enough for the ESC initialization, we can disable the ESC initialization phase */
|
/* after waiting long enough for the ESC initialization, we can disable the ESC initialization phase */
|
||||||
if (!esc_init_done && esc_init_active && mixer_servos_armed && (hrt_elapsed_time(&esc_init_time) > ESC_INIT_TIME_US)) {
|
if (!esc_init_done && esc_init_active && mixer_servos_armed && (hrt_elapsed_time(&esc_init_time) > ESC_INIT_TIME_US)) {
|
||||||
esc_init_active = false;
|
esc_init_active = false;
|
||||||
esc_init_done = true;
|
esc_init_done = true;
|
||||||
isr_debug(1, "time is up");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* mix */
|
/* mix */
|
||||||
@@ -251,9 +249,7 @@ mixer_tick(void)
|
|||||||
r_status_flags &= ~(PX4IO_P_STATUS_FLAGS_OUTPUTS_ARMED);
|
r_status_flags &= ~(PX4IO_P_STATUS_FLAGS_OUTPUTS_ARMED);
|
||||||
isr_debug(5, "> disarmed");
|
isr_debug(5, "> disarmed");
|
||||||
|
|
||||||
esc_init_active = false;
|
esc_init_active = false; }
|
||||||
isr_debug(1, "disarming, and init aborted");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (mixer_servos_armed) {
|
if (mixer_servos_armed) {
|
||||||
/* update the servo outputs. */
|
/* update the servo outputs. */
|
||||||
|
|||||||
Reference in New Issue
Block a user