Arduino Sim Racing Library v1.1.5
Loading...
Searching...
No Matches
SimRacing::AnalogInput::Calibration Struct Reference

Simple struct containing min/max values for axis calibration. More...

#include <SimRacing.h>

Public Attributes

int min
 Minimum value of the analog axis.
 
int max
 Maximum value of the analog axis.
 

Detailed Description

Simple struct containing min/max values for axis calibration.

Note that this does not set default values for these members, even though it would make sense to set them to the ADC min and max, because doing so inhibits aggregate initialization under C++11. That means users could not call the calibration functions with a simple brace-enclosed initializer list without creating a variable first.

See also
https://stackoverflow.com/a/18184210

Definition at line 227 of file SimRacing.h.

Member Data Documentation

◆ max

int SimRacing::AnalogInput::Calibration::max

Maximum value of the analog axis.

Definition at line 229 of file SimRacing.h.

◆ min

int SimRacing::AnalogInput::Calibration::min

Minimum value of the analog axis.

Definition at line 228 of file SimRacing.h.


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