mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
px4iofirmware: remove police lights to avoid getting stuck
This commit is contained in:
parent
2864735c44
commit
054d0b995c
@ -353,41 +353,6 @@ user_start(int argc, char *argv[])
|
||||
/* initialize PWM limit lib */
|
||||
output_limit_init(&pwm_limit);
|
||||
|
||||
/*
|
||||
* P O L I C E L I G H T S
|
||||
*
|
||||
* Not enough memory, lock down.
|
||||
*
|
||||
* We might need to allocate mixers later, and this will
|
||||
* ensure that a developer doing a change will notice
|
||||
* that he just burned the remaining RAM with static
|
||||
* allocations. We don't want him to be able to
|
||||
* get past that point. This needs to be clearly
|
||||
* documented in the dev guide.
|
||||
*
|
||||
*/
|
||||
if (minfo.mxordblk < 550) {
|
||||
|
||||
syslog(LOG_ERR, "ERR: not enough MEM");
|
||||
bool phase = false;
|
||||
|
||||
while (true) {
|
||||
|
||||
if (phase) {
|
||||
LED_AMBER(true);
|
||||
LED_BLUE(false);
|
||||
|
||||
} else {
|
||||
LED_AMBER(false);
|
||||
LED_BLUE(true);
|
||||
}
|
||||
|
||||
up_udelay(250000);
|
||||
|
||||
phase = !phase;
|
||||
}
|
||||
}
|
||||
|
||||
/* Start the failsafe led init */
|
||||
failsafe_led_init();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user