IMUController module
- class IMUController.TaskAcquirePositionGenFun(left_mot_omega, right_mot_omega, x_position, y_position, blue_button)
Bases:
object
- calc_x_pos()
Calculates the new x position based upon the change in time, yaw, and velocity of romi
Once the new x position is calculated, it is stored into the attribute self.x_pos
- Returns:
The new x position of the Romi
- calc_y_pos()
Calculates the new y position based upon the change in time, yaw, and velocity of Romi
Once the new y position is calculated, it is stored into the attribute self.y_pos
- Returns:
The new y position of the Romi
- run()
Generator function to continuously determine the position of the Romi as it traverses the track.
Pressing the blue button toggles if data gets collected by this task.
- set_init_yaw()
- velocity_calc()
Determines the velocity of the Romi based upon the angular velocity of the two wheels.
- Returns:
The speed of the Romi in cm / s
- yaw_calc()
Determines the current yaw of the robot relative to the starting position.
- Returns:
the final yaw in radians