From 8a79e5cae7cbc1507761b021eb51e6bfa8575581 Mon Sep 17 00:00:00 2001 From: mxcory <33401433+mrcory@users.noreply.github.com> Date: Thu, 12 Dec 2024 15:06:27 -0500 Subject: [PATCH] Update configuration_input.h and functions.h --- configuration_input.h | 4 ++++ functions.h | 10 +++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/configuration_input.h b/configuration_input.h index 1fa2c7b..3200a9f 100644 --- a/configuration_input.h +++ b/configuration_input.h @@ -1,3 +1,7 @@ +//Channel 0 +RX_CHANNELS[0] [_PIN] = -1; +RX_CHANNELS[0] [_TYPE] = IN_BIN; + //Channel 1 //Right Track diff --git a/functions.h b/functions.h index 7cfda47..2d33feb 100644 --- a/functions.h +++ b/functions.h @@ -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 {