Update configuration_input.h and functions.h
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
//Channel 0
|
||||
RX_CHANNELS[0] [_PIN] = -1;
|
||||
RX_CHANNELS[0] [_TYPE] = IN_BIN;
|
||||
|
||||
|
||||
//Channel 1
|
||||
//Right Track
|
||||
|
||||
+7
-3
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user