1#ifndef JSWERVE_MODULE_H
2#define JSWERVE_MODULE_H
16 virtual void set(
float _speed,
float _angle,
bool _run =
true);
defines a common interface for swerve modules
Definition JSwerveModule.h:7
virtual bool setEnable(bool _enable)
set enable state of swerve module motors
virtual void run()
call this in loop() so that the swerve module can update its motors and angle control loop
bool disable()
disable motor
Definition JSwerveModule.h:57
virtual void set(float _speed, float _angle, bool _run=true)
set speed and angle setpoints for wheel
virtual bool getEnable()
get enable state of module
virtual float getAngle()
get angle measurement from wheel
bool enable()
enable motor
Definition JSwerveModule.h:47
virtual long zeroTurnCounter()
zeros the encoder's counter of full turns, leaving only the fractional turn
virtual float getMaxSpeed()
maximum drive speed