The Solar Car side of the SRC Telemetry System.
This code is written for the Arduino Uno and is used to relay data from the solar car to the chase car.
Platform IO is used to compile and upload the code to the Arduino.
- Install Platform IO Core
- Install Platform IO CLion Plugin
- Clone this repository
- Open the project in CLion
- Connect the Arduino to your computer
- Upload the code to the Arduino
To monitor the serial output of the Arduino, use the pio device monitor
command in the terminal.
The hash of a serial communication can be retrieved by the following Regex:
\<\^\|BEGIN_HASH\|#\>(\w+)\<#\|END_HASH\|\$\>
The data of a serial communication can be retrieved by the following Regex:
\<\^\|BEGIN_DATA\|\>([^]*)\<\|END_DATA\|\$\>
The OP Code of a serial communication can be retrieved by the following Regex:
\<\^\|BEGIN_OPCODE\|\>(\d+)\<\|END_OPCODE\|\$\>
The INFO of a serial communication can be retrieved by the following Regex:
\<\^\|BEGIN_INFO\|\>(\w+)\<\|END_INFO\|\$\>
<^|BEGIN_HASH|#>18444d4cb7eccbfa08e0cd03083696d9<#|END_HASH|$><^|BEGIN_OPCODE|>0<|END_OPCODE|$><^|BEGIN_DATA|>ANALOG_PIN_A0:9<->ANALOG_PIN_A1:86<|END_DATA|$>
<^|BEGIN_HASH|#>7e6e7f46984472572a0369b4763251de<#|END_HASH|$><^|BEGIN_OPCODE|>1<|END_OPCODE|$><^|BEGIN_INFO|>STARTING<|END_INFO|$>
This project is licensed under the MIT License - see the LICENSE file for details