![]() |
Artemis Teensy Flight Software
The software on the Teensy in the Artemis cubesat.
|
The satellite's magnetometer. More...
#include <artemis_devices.h>
Classes | |
| struct | magbeacon |
| The structure of a magnetometer beacon. More... | |
Public Member Functions | |
| bool | setup (void) |
| Sets up the satellite's magnetometer. More... | |
| bool | read (uint32_t uptime) |
| Reads the satellite's magnetometer. More... | |
Public Attributes | |
| Adafruit_LIS3MDL * | magnetometer = new Adafruit_LIS3MDL() |
| The core sensor object. More... | |
The satellite's magnetometer.
| bool Artemis::Devices::Magnetometer::read | ( | uint32_t | uptime | ) |
Reads the satellite's magnetometer.
This method of the Magnetometer class reads the magnetometer's values, stores it in a magbeacon, and transmits that beacon to the ground.
| uptime | The time, in milliseconds, since the Teensy has been powered on. |
| bool Artemis::Devices::Magnetometer::setup | ( | void | ) |
Sets up the satellite's magnetometer.
This method of the Magnetometer class sets up the I2C connection to the satellite's magnetometer and applies settings to it.
| Adafruit_LIS3MDL* Artemis::Devices::Magnetometer::magnetometer = new Adafruit_LIS3MDL() |
The core sensor object.
The Magnetometer class is a wrapper around the Adafruit LIS3MDL magnetometer object.