Applies rotational or linear force simulating an electric motor.
More...
#include <motor_force.hpp>
Applies rotational or linear force simulating an electric motor.
◆ MotorForce()
| frcsim::MotorForce::MotorForce |
( |
| ) |
|
|
default |
◆ ~MotorForce()
| virtual frcsim::MotorForce::~MotorForce |
( |
| ) |
|
|
virtualdefault |
◆ SetInput()
| void frcsim::MotorForce::SetInput |
( |
double | voltage | ) |
|
|
inline |
Sets the input voltage or current.
- Parameters
-
◆ UpdateForce()
| void frcsim::MotorForce::UpdateForce |
( |
double | duration | ) |
|
|
inlineoverride |
Applies simulated motor force to the registered object.
- Parameters
-
The documentation for this class was generated from the following file: