Bronky/main.py

main code

main.BASE_DRIVE()[source]
Controls the base motors – Arcade drive
Calculates the power for the left and right drive

and runs the four base motors

main.CLAW_DRIVE()[source]

Controls the claw motor

The fuctions acts as a togggle

When the claw is closed it applies continious power to the motor

main.WRIST_DRIVE()[source]
Controls the wrist motors
Only when the buttons are pressed, the Motors receive power.
main.autonomous()[source]
This is the autonomous period before the Teleop statsself.
Still in test phase –
main.driver()[source]
This is the Teleop mode where the driver has the control over the robot.
The fucntion runs the claw, base and wrist in different threads