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

The PDU header file. More...

#include "debug.h"
#include "support/configCosmosKernel.h"
#include <Arduino.h>
#include <TeensyThreads.h>
#include <stdint.h>

Go to the source code of this file.

Classes

class  Artemis::Devices::PDU
 The satellite's Power Distribution Unit (PDU). More...
 
struct  Artemis::Devices::PDU::pdu_packet
 The PDU packet structure. More...
 
struct  Artemis::Devices::PDU::pdu_telem
 The PDU telemetry packet structure. More...
 

Namespaces

namespace  Artemis::Devices
 The namespace representing sensors and devices in the satellite.
 

Macros

#define PDU_CMD_OFFSET   48
 An offset for PDU commands.
 

Detailed Description

The PDU header file.

Macro Definition Documentation

◆ PDU_CMD_OFFSET

#define PDU_CMD_OFFSET   48

An offset for PDU commands.

This corresponds to ASCII character 48, which is '0'. Adding this value to the contents of a PDU packet offsets its value to become an ASCII character. We do this to essentially convert 'raw' uint8_t bytes into 'readable' ASCII character types.