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.