Smartcar Shield
Public Member Functions | Public Attributes | List of all members
DirectionalOdometerPins Struct Reference

Helper class to represent directional odometer pins. More...

#include <DirectionalOdometer.hpp>

Collaboration diagram for DirectionalOdometerPins:
Collaboration graph

Public Member Functions

 DirectionalOdometerPins (uint8_t pulsePin, uint8_t forwardWhenLowPin)
 Construct a DirectionalOdometerPins object. More...
 

Public Attributes

const uint8_t pulse
 
const uint8_t direction
 

Detailed Description

Helper class to represent directional odometer pins.

Definition at line 14 of file DirectionalOdometer.hpp.

Constructor & Destructor Documentation

◆ DirectionalOdometerPins()

DirectionalOdometerPins::DirectionalOdometerPins ( uint8_t  pulsePin,
uint8_t  forwardWhenLowPin 
)
inline

Construct a DirectionalOdometerPins object.

Parameters
pulsePinThe pin that receives the pulses
forwardWhenLowPinThe pin that is set to LOW when moving forward

Definition at line 22 of file DirectionalOdometer.hpp.

Member Data Documentation

◆ direction

const uint8_t DirectionalOdometerPins::direction

Definition at line 29 of file DirectionalOdometer.hpp.

◆ pulse

const uint8_t DirectionalOdometerPins::pulse

Definition at line 28 of file DirectionalOdometer.hpp.


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