Telemark Unit 8.1 Simulator
Intake Motor Control · Map a motor · Use triggers · Control power
8.1: Intake Motor Control
Map a motor named "intake" and run it at full power forward whenever the driver holds gamepad1.right_trigger past 50%, and stop it otherwise. Bonus: hold left_trigger to reverse and eject samples!
Motor mapped as "intake" in init()
right_trigger > 0.5 runs motor at full power
Otherwise motor is stopped
Telemetry shows current intake state
Challenge Complete! Your intake motor is working correctly.
STOPPED Time: 0.00s
Press Run to start...
DcMotor (intake)
Telemetry
Samples: 0
IMU
INTAKE0.00
Gamepad 1
controller
left_trigger
right_trigger