Formula Student Electronics & Software
The code for the embedded software
Loading...
Searching...
No Matches
DigitalReceiver Class Reference

Class responsible for the reading of the digital inputs into the Master teensy. More...

#include <digitalReceiver.hpp>

Collaboration diagram for DigitalReceiver:
Collaboration graph

Public Member Functions

void digitalReads ()
 read all digital inputs
 
 DigitalReceiver (DigitalData *digitalData, Mission *mission)
 Constructor for the class, sets pintmodes and buttons.
 

Static Public Member Functions

static void updateLeftWheelRpm ()
 callback to update rl wheel rpm
 

Static Public Attributes

static double _current_left_wheel_rpm
 
static unsigned long last_wheel_pulse_ts
 

Detailed Description

Class responsible for the reading of the digital inputs into the Master teensy.

Definition at line 15 of file digitalReceiver.hpp.

Constructor & Destructor Documentation

◆ DigitalReceiver()

DigitalReceiver::DigitalReceiver ( DigitalData digitalData,
Mission mission 
)
inline

Constructor for the class, sets pintmodes and buttons.

Definition at line 33 of file digitalReceiver.hpp.

Member Function Documentation

◆ digitalReads()

void DigitalReceiver::digitalReads ( )
inline

read all digital inputs

Definition at line 106 of file digitalReceiver.hpp.

Here is the caller graph for this function:

◆ updateLeftWheelRpm()

static void DigitalReceiver::updateLeftWheelRpm ( )
static

callback to update rl wheel rpm

Member Data Documentation

◆ _current_left_wheel_rpm

double DigitalReceiver::_current_left_wheel_rpm
static

Definition at line 17 of file digitalReceiver.hpp.

◆ last_wheel_pulse_ts

unsigned long DigitalReceiver::last_wheel_pulse_ts
static

Definition at line 18 of file digitalReceiver.hpp.


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