Arduino Sim Racing Library v1.1.3
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. More...
 
int max
 Maximum value of the analog axis. More...
 

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 215 of file SimRacing.h.

Member Data Documentation

◆ max

int SimRacing::AnalogInput::Calibration::max

Maximum value of the analog axis.

Definition at line 217 of file SimRacing.h.

◆ min

int SimRacing::AnalogInput::Calibration::min

Minimum value of the analog axis.

Definition at line 216 of file SimRacing.h.


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