From 958dfaf44fb00fec70eae0713ca24e917a384718 Mon Sep 17 00:00:00 2001 From: Cory Date: Thu, 12 Dec 2024 01:15:43 -0500 Subject: [PATCH] Update RC_Excavator_TX.ino and configuration.h --- RC_Excavator_TX.ino | 5 ++++- configuration.h | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/RC_Excavator_TX.ino b/RC_Excavator_TX.ino index dff03aa..99343ca 100644 --- a/RC_Excavator_TX.ino +++ b/RC_Excavator_TX.ino @@ -47,7 +47,7 @@ void setup() { radio.openReadingPipe(1, address[0]); - memcpy(payload.message, "Hello", 6); //Set Payload Message + //memcpy(payload.message, "Hello", 6); //Set Payload Message radio.stopListening(); //Put radio in TX mode #include "configuration_input.h" //Input configuration @@ -55,6 +55,9 @@ void setup() { } void loop() { + + setMessage(); //Prepare value that will be sent + if (timer(BROADCAST_DELAY, 0)) { unsigned long MSG_TIMER_START = micros(); //Begin message timer diff --git a/configuration.h b/configuration.h index 76c1da6..1f696cf 100644 --- a/configuration.h +++ b/configuration.h @@ -26,4 +26,7 @@ char TID = 'BB'; //RX device ID //Byte array for inputs -int TX_CHANNELS[ NUM_CHANNELS+1 ][ 10 ] = {0}; \ No newline at end of file +int TX_CHANNELS[ NUM_CHANNELS+1 ][ 10 ] = {0}; + +//Default _MAX value +int DEFAULT_MAX = 1023; \ No newline at end of file