mirror of https://github.com/ArduPilot/ardupilot
ACM: use LED_OFF/LED_ON instead of LOW/HIGH
This commit is contained in:
parent
f5a3eed1a7
commit
4fe527aefa
|
@ -102,28 +102,28 @@ static void update_motor_leds(void)
|
||||||
static bool blink = false;
|
static bool blink = false;
|
||||||
|
|
||||||
if (blink){
|
if (blink){
|
||||||
digitalWrite(RE_LED, HIGH);
|
digitalWrite(RE_LED, LED_ON);
|
||||||
digitalWrite(FR_LED, HIGH);
|
digitalWrite(FR_LED, LED_ON);
|
||||||
digitalWrite(RI_LED, LOW);
|
digitalWrite(RI_LED, LED_OFF);
|
||||||
digitalWrite(LE_LED, LOW);
|
digitalWrite(LE_LED, LED_OFF);
|
||||||
}else{
|
}else{
|
||||||
digitalWrite(RE_LED, LOW);
|
digitalWrite(RE_LED, LED_OFF);
|
||||||
digitalWrite(FR_LED, LOW);
|
digitalWrite(FR_LED, LED_OFF);
|
||||||
digitalWrite(RI_LED, HIGH);
|
digitalWrite(RI_LED, LED_ON);
|
||||||
digitalWrite(LE_LED, HIGH);
|
digitalWrite(LE_LED, LED_ON);
|
||||||
}
|
}
|
||||||
blink = !blink;
|
blink = !blink;
|
||||||
}else{
|
}else{
|
||||||
digitalWrite(RE_LED, HIGH);
|
digitalWrite(RE_LED, LED_ON);
|
||||||
digitalWrite(FR_LED, HIGH);
|
digitalWrite(FR_LED, LED_ON);
|
||||||
digitalWrite(RI_LED, HIGH);
|
digitalWrite(RI_LED, LED_ON);
|
||||||
digitalWrite(LE_LED, HIGH);
|
digitalWrite(LE_LED, LED_ON);
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
digitalWrite(RE_LED, LOW);
|
digitalWrite(RE_LED, LED_OFF);
|
||||||
digitalWrite(FR_LED, LOW);
|
digitalWrite(FR_LED, LED_OFF);
|
||||||
digitalWrite(RI_LED, LOW);
|
digitalWrite(RI_LED, LED_OFF);
|
||||||
digitalWrite(LE_LED, LOW);
|
digitalWrite(LE_LED, LED_OFF);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -102,7 +102,7 @@ static void init_arm_motors()
|
||||||
|
|
||||||
// temp hack
|
// temp hack
|
||||||
motor_light = true;
|
motor_light = true;
|
||||||
digitalWrite(A_LED_PIN, HIGH);
|
digitalWrite(A_LED_PIN, LED_ON);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue