RomiControl module
- class RomiControl.TaskRomiControlGenFun(control_flag_a: Share, control_flag_b: Share, mot_a_speed, mot_b_speed, l_enc, r_enc, blue_button_flag)
Bases:
object
- line_follow_control()
Function used to determine what speeds to send to the motors
- run()
The generator function that runs endlessly within this class to give speed inputs to the motors depending on the sensor readings.
- toggle_blue_button(line)
function called when the blue button is pressed
The function either disables the robot and resets all major variables or tells all tasks to start running properly
- wall_avoid_control()
Function used to determine what speeds to send to the motors during the wall avoidance process