Simple automobile simulation model. More...
#include <automobile_simple.h>
Public Member Functions | |
| automobile_simple (dsim_model_setup *setup) | |
| Constructor. | |
| ~automobile_simple () | |
| Destructor. | |
| void | initialize_data () |
| Initialize outlets and output variables. | |
| void | initialization_complete () |
| Finish initialization. | |
| void | initialize_timestep () |
| Computation done prior to numerical integration. | |
| void | rhs (double t, double jd) |
| Computation done during numerical integration. | |
| void | complete_timestep () |
| Computation done after numerical integration. | |
Protected Attributes | |
| dsim_variable | steering_angle_dsim |
| Steering angle. | |
| dsim_variable | torque_dsim |
| Motor torque. | |
| dsim_variable | rolling_friction_coeff_dsim |
| Rolling friction coefficient. | |
| dsim_variable | inertia_dsim |
| Inertia. | |
| dsim_variable | mass_dsim |
| Mass. | |
| dsim_variable | rho_dsim |
| Tire radius. | |
| dsim_variable | r_dsim |
| Tire position. | |
| dsim_variable | state_dsim |
| State [x;y;vX;vY;theta;omega]. | |
| dsim_variable | position_dsim |
| Position [x;y]. | |
| dsim_variable | yaw_matrix_dsim |
| Yaw rotation matrix. | |
| dsim_variable | drag_coeff_dsim |
| Drag coefficient. | |
| dsim_variable | frontal_area_dsim |
| Frontal area. | |
Simple automobile simulation model.
Right hand side for an automobile with 3 degrees of freedom Inputs are torque and steering angle. The degrees of freedom are yaw, x and y.
The model includes rolling friction and aerodynamic drag. The traction force is from the motor torque.
Definition at line 24 of file automobile_simple.h.
1.7.2