|
virtual void | SetDutyCycle (float speed) |
| Sets the duty cycle of this speed controller.
|
|
virtual float | GetDutyCycle () |
| Returns the last set duty cycle of this speed controller.
|
|
virtual float | GetHardwareValue () |
| Returns the last duty cycle sent to the speed controller.
|
|
virtual void | ConfigNeutralMode (LRTSpeedController::NeutralMode mode) |
| Sets the neutral mode (brake or coast).
|
|
virtual NeutralMode | GetNeutralMode () |
| Gets the neutral mode (brake or coast).
|
|
void | Update () |
| Writes the values to the Talon.
|
|
void | Output () |
| Checks safety and sends the saved values to the speed controllers.
|
|
void | RegisterSafety (CounterBase *encoder, double timeoutSeconds, float threshold=0.01) |
| Registers an encoder with this speed controller for stall safety.
|
|
virtual void | SafetyCallback () |
| Called when safety fails on this speed controller.
|
|
virtual void | Log () |
| Logs data to the Logger.
|
|
virtual void | Send () |
| Sends data to the LiveNetworkSender.
|
|
|
static float | CurrentLimit (float dutyCycle, float speed, float forwardLimit, float reverseLimit) |
| Calculates a duty cycle with current limiting applied.
|
|
template<typename T > |
void | SendToNetwork (T value, std::string key, std::string table) |
| Sends a value to the network through LiveNetworkSender.
|
|
template<typename T > |
void | LogToFile (T *field, std::string name) |
| Saves a variable to the Logger for logging.
|
|
template<typename T > |
void | LogToFile (T *field, int count, std::string name) |
| Saves a dynamically allocated array to the Logger for logging.
|
|
template<typename T > |
void | LogToFile (T value, std::string name) |
| Saves a value to the Logger for logging.
|
|
Wrapper for Talon speed controller.