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 digital_reads ()
 read all digital inputs
 
 DigitalReceiver (HardwareData *digital_data, Mission *mission)
 Constructor for the class, sets pintmodes and buttons.
 

Static Public Attributes

static uint32_t last_wheel_pulse_rl
 
static uint32_t second_to_last_wheel_pulse_rl = 0
 
static uint32_t last_wheel_pulse_rr
 
static uint32_t second_to_last_wheel_pulse_rr
 

Detailed Description

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

Definition at line 17 of file digitalReceiver.hpp.

Constructor & Destructor Documentation

◆ DigitalReceiver()

DigitalReceiver::DigitalReceiver ( HardwareData digital_data,
Mission mission 
)
inline

Constructor for the class, sets pintmodes and buttons.

Definition at line 37 of file digitalReceiver.hpp.

Member Function Documentation

◆ digital_reads()

void DigitalReceiver::digital_reads ( )
inline

read all digital inputs

Definition at line 148 of file digitalReceiver.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ last_wheel_pulse_rl

uint32_t DigitalReceiver::last_wheel_pulse_rl
inlinestatic
Initial value:
=
0

Definition at line 19 of file digitalReceiver.hpp.

◆ last_wheel_pulse_rr

uint32_t DigitalReceiver::last_wheel_pulse_rr
inlinestatic
Initial value:
=
0

Definition at line 23 of file digitalReceiver.hpp.

◆ second_to_last_wheel_pulse_rl

uint32_t DigitalReceiver::second_to_last_wheel_pulse_rl = 0
inlinestatic

Definition at line 21 of file digitalReceiver.hpp.

◆ second_to_last_wheel_pulse_rr

uint32_t DigitalReceiver::second_to_last_wheel_pulse_rr
inlinestatic
Initial value:
=
0

Definition at line 25 of file digitalReceiver.hpp.


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