mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
Fixed a bug where using the two parameter constructor for CANTalon could cause invert-direction to not be initialized. (#26)
Original fix from Jacob Caporuscio
This commit is contained in:
committed by
Peter Johnson
parent
f2d601d834
commit
0965d60a71
@@ -573,7 +573,11 @@ class CANTalon : public MotorSafety,
|
||||
|
||||
// LiveWindow stuff.
|
||||
std::shared_ptr<ITable> m_table;
|
||||
bool m_isInverted;
|
||||
/**
|
||||
* Flips the output direction during open-loop modes like percent
|
||||
* voltage, or certain closed loop modes like speed/current mode.
|
||||
*/
|
||||
bool m_isInverted = false;
|
||||
|
||||
HasBeenMoved m_hasBeenMoved;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user