mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
[sim] Create Left/Right drivetrain current accessors (#3001)
This commit is contained in:
@@ -158,6 +158,16 @@ class DifferentialDrivetrainSim {
|
||||
return units::meters_per_second_t{GetOutput(State::kLeftVelocity)};
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the currently drawn current for the right side.
|
||||
*/
|
||||
units::ampere_t GetRightCurrentDraw() const;
|
||||
|
||||
/**
|
||||
* Returns the currently drawn current for the left side.
|
||||
*/
|
||||
units::ampere_t GetLeftCurrentDraw() const;
|
||||
|
||||
/**
|
||||
* Returns the currently drawn current.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user