Skip to content

Group groundstation

Modules > 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.

void buttonCheck (
    buttonStruct pinButton
) 

Parameters:

  • pinButton

Todo

Has to be implemented in the future.


function commandExecute

Function to send the received command via USB.

void commandExecute (
    RC17xxHP_RC232 * radioModule,
    uint8_t command,
    Packet * commandPacket
) 

Parameters:

  • command
  • radioModule

function commandReceive

Function that reads the USB serial input.

uint8_t commandReceive (
    HardwareSerial * serialUSB
) 

Parameters:

  • serialUSB

Returns:

uint8_t


function controlBoxCheck

Function to connect to the control box.

void controlBoxCheck (
    uint8_t pin1,
    uint8_t pin2
) 

Parameters:

  • pin1
  • pin2

Todo

Has to be implemented in the future.


function dataSendUsb

Serial output function via USB.

void dataSendUsb (
    HardwareSerial * serialUSB,
    dataStruct * dataVariables
) 

Parameters:

  • serialUSB
  • dataVariables

function displayUpdate

Function to display Vlaues on a external Display.

void displayUpdate (
    uint8_t address,
    dataStruct * dataVariables
) 

Parameters:

  • address
  • dataVariables

Todo

Has to be implemented in the future.


function ledRssiUpdate

Function to display the rssi level via a LED array.

void ledRssiUpdate (
    float rssi,
    ledStruct * pinLed
) 

Parameters:

  • rssi
  • pinLed

function ledUpdate

void ledUpdate (
    uint8_t state,
    ledStruct * pinLed
) 

Parameters:

  • state
  • pinLed

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:

  • radioModule
  • packetBuffer
  • packetBufferIndex
  • dataVariables

Returns:

uint8_t


function radioModulesSetup

Configures both radio modules; lights each module's status LED on success and sounds buzzzer.

void radioModulesSetup (
    RC17xxHP_RC232 * rc1780hp,
    RC17xxHP_RC232 * rc1701hp,
    ledStruct * pinLed
) 

Parameters:

  • rc1780hp
  • rc1701hp
  • pinLed