Update configuration_input.h and functions.h

This commit is contained in:
mxcory
2024-12-12 15:06:27 -05:00
parent 7933436810
commit 8a79e5cae7
2 changed files with 11 additions and 3 deletions
+4
View File
@@ -1,3 +1,7 @@
//Channel 0
RX_CHANNELS[0] [_PIN] = -1;
RX_CHANNELS[0] [_TYPE] = IN_BIN;
//Channel 1
//Right Track
+7 -3
View File
@@ -43,13 +43,17 @@ bool safetyCheck () {
_return = true;
}
if (timer( WATCHDOG_TIME, 0, false)) { //Check that watchdog hasn' expired
if (timer( WATCHDOG_TIME, 0, false) == true) { //Check that watchdog hasn' expired
_return = false; //Set false because we haven't received a fresh message
Serial.println("Watchdog Triggered!");
}
if (_return == false) { //If safety check failed enable built in led
analogWrite(LED_BUILTIN, 255);
analogWrite(LED_BUILTIN, 145);
}
Serial.print(" IS ARMED: ");
Serial.print(_return);
return _return;
}
@@ -70,7 +74,7 @@ void channelOutput(byte _CHAN) {
analogWrite( RX_CHANNELS [_CHAN] [_PIN], 0);
analogWrite( RX_CHANNELS [_CHAN] [_PIN2], 0);
Serial.println("CENTER");
//Serial.println("CENTER");
} else {