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

The satellite's Global Positioning System (GPS). More...

#include <artemis_devices.h>

Classes

struct  gpsbeacon
 The GPS beacon structure. More...
 

Public Member Functions

bool setup (void)
 Sets up the satellite's GPS. More...
 
void update (void)
 Update the satellite's GPS. More...
 
void read (uint32_t uptime)
 Reads the satellite's GPS data. More...
 

Public Attributes

Adafruit_GPS * gps = new Adafruit_GPS(&Serial7)
 The core sensor object. More...
 

Detailed Description

The satellite's Global Positioning System (GPS).

Member Function Documentation

◆ read()

void Artemis::Devices::GPS::read ( uint32_t  uptime)

Reads the satellite's GPS data.

This method of the GPS class reads the last known GPS data, stores it in a gpsbeacon, and transmits that beacon to ground.

Parameters
uptimeThe time, in milliseconds, since the Teensy has been powered on.

◆ setup()

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

Sets up the satellite's GPS.

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

Returns
true The GPS has been successfully set up.
false The serial connection to the GPS failed to start.

◆ update()

void Artemis::Devices::GPS::update ( void  )

Update the satellite's GPS.

This method of the GPS class checks the serial connection to see if there is more data to be read in. If there is, it is read in and parsed.

Member Data Documentation

◆ gps

Adafruit_GPS* Artemis::Devices::GPS::gps = new Adafruit_GPS(&Serial7)

The core sensor object.

The Magnetometer class is a wrapper around the Adafruit GPS object.


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