Group groundstation
Functions and data structures used by the ground-station firmware.
Classes
| Type | Name |
|---|---|
| class | buttonStruct Stores the pins for the control buttons. |
| class | dataStruct Stores the latest housekeeping, subsystem, flight, and telemetry data. |
| class | ledStruct Stores the debug and LED pins for. |
Public Functions
| Type | Name |
|---|---|
| void | buttonCheck (buttonStruct pinButton) Function to use buttons as an. |
| void | commandExecute (RC17xxHP_RC232 * radioModule, uint8_t command, Packet * commandPacket) Function to send the received command via USB. |
| uint8_t | commandReceive (HardwareSerial * serialUSB) Function that reads the USB serial input. |
| void | controlBoxCheck (uint8_t pin1, uint8_t pin2) Function to connect to the control box. |
| void | dataSendUsb (HardwareSerial * serialUSB, dataStruct * dataVariables) Serial output function via USB. |
| void | displayUpdate (uint8_t address, dataStruct * dataVariables) Function to display Vlaues on a external Display. |
| void | ledRssiUpdate (float rssi, ledStruct * pinLed) Function to display the rssi level via a LED array. |
| void | ledUpdate (uint8_t state, ledStruct * pinLed) |
| uint8_t | packetReceive (RC17xxHP_RC232 * radioModule, uint8_t * packetBuffer, uint8_t * packetBufferIndex, dataStruct * dataVariables, Packet * framePacket, Packet * flightDataPacket, Packet * telemetryDataPacket) Function that reads the received data from the Rocket and updates the data variables. |
| void | radioModulesSetup (RC17xxHP_RC232 * rc1780hp, RC17xxHP_RC232 * rc1701hp, ledStruct * pinLed) Configures both radio modules; lights each module's status LED on success and sounds buzzzer. |
Public Functions Documentation
function buttonCheck
Function to use buttons as an.
Parameters:
pinButton
Todo
Has to be implemented in the future.
function commandExecute
Function to send the received command via USB.
Parameters:
commandradioModule
function commandReceive
Function that reads the USB serial input.
Parameters:
serialUSB
Returns:
uint8_t
function controlBoxCheck
Function to connect to the control box.
Parameters:
pin1pin2
Todo
Has to be implemented in the future.
function dataSendUsb
Serial output function via USB.
Parameters:
serialUSBdataVariables
function displayUpdate
Function to display Vlaues on a external Display.
Parameters:
addressdataVariables
Todo
Has to be implemented in the future.
function ledRssiUpdate
Function to display the rssi level via a LED array.
Parameters:
rssipinLed
function ledUpdate
Parameters:
statepinLed
function packetReceive
Function that reads the received data from the Rocket and updates the data variables.
uint8_t packetReceive (
RC17xxHP_RC232 * radioModule,
uint8_t * packetBuffer,
uint8_t * packetBufferIndex,
dataStruct * dataVariables,
Packet * framePacket,
Packet * flightDataPacket,
Packet * telemetryDataPacket
)
Parameters:
radioModulepacketBufferpacketBufferIndexdataVariables
Returns:
uint8_t
function radioModulesSetup
Configures both radio modules; lights each module's status LED on success and sounds buzzzer.
Parameters:
rc1780hprc1701hppinLed