|
SAE WS_2324
|
This is a Drive Module base class. More...
Public Member Functions | |
| __init__ (self) | |
| Drive module class initializer. | |
| read_motor_speed_degs (self, motor_speed_degs) | |
| Function to provide the Drive module with the motor speed in degrees/second. | |
| calc_speed_rps (self) | |
| Helper function to convert degrees/second to rounds per second. | |
| calc_speed_mmps (self) | |
| Helper function to convert the rounds per second speed to mm/second. | |
| interpolate_distance (self) | |
| Function to interpolate the distance travelled by the rear wheels. | |
| get_theta (self, input_theta) | |
| Function to acquire the heading angle. | |
| calc_coordinates (self) | |
| Function to calculate the x,y coordinates using the heading angle and the motion model equations. | |
This is a Drive Module base class.
This class defines the methods and data required to run the motion model.
| drive.Drive.calc_coordinates | ( | self | ) |
Function to calculate the x,y coordinates using the heading angle and the motion model equations.
Refer to the motion model part in the Project Documentation.
| drive.Drive.interpolate_distance | ( | self | ) |
Function to interpolate the distance travelled by the rear wheels.
The Function calculates the distance traversed by performing integration of the speed. distance = distance + speed * Sample time
| drive.Drive.read_motor_speed_degs | ( | self, | |
| motor_speed_degs ) |
Function to provide the Drive module with the motor speed in degrees/second.
| motor_speed_degs | The motor speed in degrees/second. |