Ke Ao Teensy Flight Software
The software on the Teensy in the Ke Ao cubesat.
Loading...
Searching...
No Matches
tests.h File Reference

Header file for satellite tests. More...

Go to the source code of this file.

Functions

void run_test ()
 Creates and adds packets to queues to test channel functionality.
 

Detailed Description

Header file for satellite tests.

Function Documentation

◆ run_test()

void run_test ( )

Creates and adds packets to queues to test channel functionality.

Raspberry Pi indirect tests

These tests are enabled using the TEST_PI macro in the packet_tests.h header file. It creates a packet with a command to turn off the Raspberry Pi and adds it to the main_queue.

Raspberry Pi direct tests

These tests are enabled using the TEST_I2C_PI macro in the packet_tests.h header file. It creates a packet with a command to the Raspberry Pi to take a picture and adds it to the rpi_queue.

Todo:
The packet header type is directly written as 0x800, which should be CommandTakePicture. This is unimplemented in the PacketComm protocol.

Astrodev tests

These tests are enabled using the TEST_ASTRODEV macro in the packet_tests.h header file. It creates a pong packet destined for the ground node and adds it to the main_queue.

PDU tests

These tests are enabled using the TEST_PDU macro in the packet_tests.h header file. It creates a packet with a command to the PDU to enable all switches and adds it to the main_queue.