@@ -120,13 +120,13 @@ namespace SimRacing {
120120 */
121121 bool readPin () const ;
122122
123- const PinNum Pin; // /< The pin number being read from. Can be 'UnusedPin' to disable
124- const bool Inverted; // /< Whether the input is inverted, so 'LOW' is detected instead of 'HIGH'
123+ PinNum pin; // /< The pin number being read from. Can be 'UnusedPin' to disable
124+ bool inverted; // /< Whether the input is inverted, so 'LOW' is detected instead of 'HIGH'
125125 unsigned long stablePeriod; // /< The amount of time the input must be stable for (ms)
126126
127- ConnectionState state; // /< The current state of the connection
128- bool pinState; // /< Buffered state of the input pin, accounting for inversion
129- unsigned long lastChange; // /< Timestamp of the last pin change, in ms (using millis())
127+ ConnectionState state; // /< The current state of the connection
128+ bool pinState; // /< Buffered state of the input pin, accounting for inversion
129+ unsigned long lastChange; // /< Timestamp of the last pin change, in ms (using millis())
130130 };
131131
132132
@@ -141,9 +141,9 @@ namespace SimRacing {
141141 /* *
142142 * Class constructor
143143 *
144- * @param p the I/O pin for this input (Arduino numbering)
144+ * @param pin the I/O pin for this input (Arduino numbering)
145145 */
146- AnalogInput (PinNum p );
146+ AnalogInput (PinNum pin );
147147
148148 /* *
149149 * Updates the current value of the axis by polling the ADC
@@ -237,9 +237,9 @@ namespace SimRacing {
237237 void setCalibration (Calibration newCal);
238238
239239 private:
240- const PinNum Pin = UnusedPin; // /< the digital pin number for this input
241- int position; // /< the axis' position in its range, buffered
242- Calibration cal; // /< the calibration values for the axis
240+ PinNum pin; // /< the digital pin number for this input
241+ int position; // /< the axis' position in its range, buffered
242+ Calibration cal; // /< the calibration values for the axis
243243 };
244244
245245
@@ -393,11 +393,11 @@ namespace SimRacing {
393393 /* *
394394 * Class constructor
395395 *
396- * @param gasPin the analog pin for the gas pedal potentiometer
397- * @param brakePin the analog pin for the brake pedal potentiometer
398- * @param detectPin the digital pin for device detection (high is detected)
396+ * @param pinGas the analog pin for the gas pedal potentiometer
397+ * @param pinBrake the analog pin for the brake pedal potentiometer
398+ * @param pinDetect the digital pin for device detection (high is detected)
399399 */
400- TwoPedals (PinNum gasPin , PinNum brakePin , PinNum detectPin = UnusedPin);
400+ TwoPedals (PinNum pinGas , PinNum pinBrake , PinNum pinDetect = UnusedPin);
401401
402402 /* *
403403 * Sets the calibration data (min/max) for the pedals
@@ -421,12 +421,12 @@ namespace SimRacing {
421421 /* *
422422 * Class constructor
423423 *
424- * @param gasPin the analog pin for the gas pedal potentiometer
425- * @param brakePin the analog pin for the brake pedal potentiometer
426- * @param clutchPin the analog pin for the clutch pedal potentiometer
427- * @param detectPin the digital pin for device detection (high is detected)
424+ * @param pinGas the analog pin for the gas pedal potentiometer
425+ * @param pinBrake the analog pin for the brake pedal potentiometer
426+ * @param pinClutch the analog pin for the clutch pedal potentiometer
427+ * @param pinDetect the digital pin for device detection (high is detected)
428428 */
429- ThreePedals (PinNum gasPin , PinNum brakePin , PinNum clutchPin , PinNum detectPin = UnusedPin);
429+ ThreePedals (PinNum pinGas , PinNum pinBrake , PinNum pinClutch , PinNum pinDetect = UnusedPin);
430430
431431 /* *
432432 * Sets the calibration data (min/max) for the pedals
@@ -552,9 +552,9 @@ namespace SimRacing {
552552 * @param pinX the analog input pin for the X axis
553553 * @param pinY the analog input pin for the Y axis
554554 * @param pinRev the digital input pin for the 'reverse' button
555- * @param detectPin the digital pin for device detection (high is detected)
555+ * @param pinDetect the digital pin for device detection (high is detected)
556556 */
557- AnalogShifter (PinNum pinX, PinNum pinY, PinNum pinRev = UnusedPin, PinNum detectPin = UnusedPin);
557+ AnalogShifter (PinNum pinX, PinNum pinY, PinNum pinRev = UnusedPin, PinNum pinDetect = UnusedPin);
558558
559559 /* *
560560 * Initializes the hardware pins for reading the gear states.
@@ -675,7 +675,7 @@ namespace SimRacing {
675675 } calibration;
676676
677677 AnalogInput analogAxis[2 ]; // /< Axis data for X and Y
678- const PinNum PinReverse; // /< The pin for the reverse gear button
678+ PinNum pinReverse; // /< The pin for the reverse gear button
679679 DeviceConnection detector; // /< detector instance for checking if the shifter is connected
680680 };
681681
@@ -691,9 +691,9 @@ namespace SimRacing {
691691 * Class constructor
692692 *
693693 * @param pinAx analog pin number for the handbrake axis
694- * @param detectPin the digital pin for device detection (high is detected)
694+ * @param pinDetect the digital pin for device detection (high is detected)
695695 */
696- Handbrake (PinNum pinAx, PinNum detectPin = UnusedPin);
696+ Handbrake (PinNum pinAx, PinNum pinDetect = UnusedPin);
697697
698698 /* *
699699 * Initializes the pin for reading from the handbrake.
@@ -760,7 +760,7 @@ namespace SimRacing {
760760 class LogitechPedals : public ThreePedals {
761761 public:
762762 /* * @copydoc ThreePedals::ThreePedals */
763- LogitechPedals (PinNum gasPin , PinNum brakePin , PinNum clutchPin , PinNum detectPin = UnusedPin);
763+ LogitechPedals (PinNum pinGas , PinNum pinBrake , PinNum pinClutch , PinNum pinDetect = UnusedPin);
764764 };
765765
766766 /* *
@@ -775,7 +775,7 @@ namespace SimRacing {
775775 class LogitechDrivingForceGT_Pedals : public TwoPedals {
776776 public:
777777 /* * @copydoc TwoPedals::TwoPedals */
778- LogitechDrivingForceGT_Pedals (PinNum gasPin , PinNum brakePin , PinNum detectPin = UnusedPin);
778+ LogitechDrivingForceGT_Pedals (PinNum pinGas , PinNum pinBrake , PinNum pinDetect = UnusedPin);
779779 };
780780
781781 /* *
@@ -787,7 +787,7 @@ namespace SimRacing {
787787 class LogitechShifter : public AnalogShifter {
788788 public:
789789 /* * @copydoc AnalogShifter::AnalogShifter */
790- LogitechShifter (PinNum pinX, PinNum pinY, PinNum pinRev = UnusedPin, PinNum detectPin = UnusedPin);
790+ LogitechShifter (PinNum pinX, PinNum pinY, PinNum pinRev = UnusedPin, PinNum pinDetect = UnusedPin);
791791 };
792792
793793
0 commit comments