Ke Ao Teensy Flight Software
The software on the Teensy in the Ke Ao cubesat.
|
The Artemis definitions. More...
#include "config/artemis_defs.h"
Functions | |
int | kill_thread (uint8_t channel_id) |
Kills a running thread. | |
int32_t | PushQueue (PacketComm &packet, std::deque< PacketComm > &queue, Threads::Mutex &mtx) |
Push a packet to the specified queue. | |
int32_t | PullQueue (PacketComm &packet, std::deque< PacketComm > &queue, Threads::Mutex &mtx) |
Pulls a packet from the specified queue. | |
Variables | |
vector< struct thread_struct > | thread_list |
The list of threads currently running on the Teensy. | |
std::map< string, NODES > | NodeType |
Mapping of string node types to corresponding node IDs. | |
Threads::Mutex | main_queue_mtx |
The mutex for the main_queue. | |
Threads::Mutex | astrodev_queue_mtx |
The mutex for the astrodev_queue. | |
Threads::Mutex | rfm23_queue_mtx |
The mutex for the rfm23_queue. | |
Threads::Mutex | rfm98_queue_mtx |
The mutex for the rfm98_queue. | |
Threads::Mutex | pdu_queue_mtx |
The mutex for the pdu_queue. | |
Threads::Mutex | rpi_queue_mtx |
The mutex for the rpi_queue. | |
std::deque< PacketComm > | main_queue |
The main queue for packets in the Teensy. | |
std::deque< PacketComm > | astrodev_queue |
The queue for packets going to the Astrodev (Li-3) radio. | |
std::deque< PacketComm > | rfm23_queue |
The queue for packets going to the RFM23 radio. | |
std::deque< PacketComm > | rfm98_queue |
The queue for packets going to the RFM98 radio. | |
std::deque< PacketComm > | pdu_queue |
The queue for packets to command the PDU. | |
std::deque< PacketComm > | rpi_queue |
The queue for packets going to the Raspberry Pi. | |
Threads::Mutex | spi1_mtx |
The mutex for the SPI1 interface on the Teensy. | |
Threads::Mutex | i2c1_mtx |
The mutex for the I2C1 interface on the Teensy. | |
The Artemis definitions.
int kill_thread | ( | uint8_t | channel_id | ) |
Kills a running thread.
channel_id | The ID of the thread to be killed. |
int32_t PullQueue | ( | PacketComm & | packet, |
std::deque< PacketComm > & | queue, | ||
Threads::Mutex & | mtx | ||
) |
Pulls a packet from the specified queue.
packet | The packet that will be pulled into. |
queue | The queue that the packet will be pulled from. |
mtx | The mutex used to lock the queue. |
int32_t PushQueue | ( | PacketComm & | packet, |
std::deque< PacketComm > & | queue, | ||
Threads::Mutex & | mtx | ||
) |
Push a packet to the specified queue.
packet | The packet to be pushed. |
queue | The queue that the packet will be pushed into. |
mtx | The mutex used to lock the queue. |
std::map<string, NODES> NodeType |
Mapping of string node types to corresponding node IDs.
This map associates string keys with NODES values, allowing for easy translation between string names and numerical IDs.
vector<struct thread_struct> thread_list |
The list of threads currently running on the Teensy.
A maximum of 16 threads can be handled by the thread list.