Telemark Unit 8.4 Simulator
Emergency Stop · Cutting Motor Power with BRAKE · Safety First
CHALLENGE 4 — Emergency Stop with BRAKE
If gamepad1.b is pressed, all power to "motor1" and "motor2" must be cut immediately and both motors must resist any further movement.
motor1 mapped in init()
motor2 mapped in init()
Both motors set to BRAKE in init()
gamepad1.b cuts power to both motors
Telemetry shows emergency stop status
Challenge Complete! Emergency stop is working correctly.
STOPPED Time: 0.00s
Press Run to start simulation...
DcMotor (motor1)
DcMotor (motor2)
Telemetry
Gamepad
Left Stick Y = Motor 1 • Right Stick Y = Motor 2 • B = Emergency Stop
EMERGENCY STOP ACTIVATED
EMERGENCY
STOP
NORMAL OPERATION
MOTOR 1-0.00
MOTOR 2-0.00
motor1 ZeroPowerBehavior
BRAKE
motor2 ZeroPowerBehavior
BRAKE
Stop Time: 0.00s
Gamepad 1
controller
LT
RT
Left Stick Y = Motor 1 • Right Stick Y = Motor 2
= EMERGENCY STOP
LX 0.00 LY 0.00 | RX 0.00 RY 0.00