Artemis Teensy Flight Software
The software on the Teensy in the Artemis cubesat.
Artemis::Devices::IMU Class Reference

The satellite's Inertial Measurement Unit (IMU). More...

#include <artemis_devices.h>

Classes

struct  imubeacon
 The structure of an IMU beacon. More...
 

Public Member Functions

bool setup (void)
 Sets up the satellite's IMU. More...
 
bool read (uint32_t uptime)
 Reads the satellite's IMU. More...
 

Public Attributes

Adafruit_LSM6DSOX * imu = new Adafruit_LSM6DSOX()
 The core sensor object. More...
 

Detailed Description

The satellite's Inertial Measurement Unit (IMU).

Member Function Documentation

◆ read()

bool Artemis::Devices::IMU::read ( uint32_t  uptime)

Reads the satellite's IMU.

This method of the IMU class reads the IMU's values, stores it in an imubeacon, and transmits that beacon to the ground.

Parameters
uptimeThe time, in milliseconds, since the Teensy has been powered on.
Returns
true The IMU has been successfully read and a packet carrying the reading has been queued for transmission.
false The IMU could not be read.

◆ setup()

bool Artemis::Devices::IMU::setup ( void  )

Sets up the satellite's IMU.

This method of the IMU class sets up the I2C connection to the satellite's IMU and applies settings to it.

Returns
true The IMU has been successfully set up.
false The I2C connection to the IMU failed to start.

Member Data Documentation

◆ imu

Adafruit_LSM6DSOX* Artemis::Devices::IMU::imu = new Adafruit_LSM6DSOX()

The core sensor object.

The IMU class is a wrapper around the Adafruit LSM6DSOX Inertial Measurement Unit (IMU) object.


The documentation for this class was generated from the following files: