Kinematic and dynamic block for simulating a Swerve drivetrain.
More...
#include <swerve_model.hpp>
Kinematic and dynamic block for simulating a Swerve drivetrain.
◆ SwerveModel()
| frcsim::SwerveModel::SwerveModel |
( |
| ) |
|
|
default |
◆ ~SwerveModel()
| virtual frcsim::SwerveModel::~SwerveModel |
( |
| ) |
|
|
virtualdefault |
◆ Update()
Modifies chassis velocities and apply friction based on swerve module states.
- Parameters
-
| chassis | The rigid body representing the robot's base. |
| states | The array of 4 swerve module states (FL, FR, BL, BR). |
| dt | Simulation timestep in seconds. |
The documentation for this class was generated from the following file: