Complete the code to set the motor speed to start from zero.
motor_speed = [1]The motor speed should start at zero to simulate startup from rest.
Complete the code to apply braking torque to the motor.
braking_torque = [1]Braking torque is applied as a negative value to slow down the motor.
Fix the error in the code to correctly calculate motor acceleration.
acceleration = (torque [1] load_torque) / inertiaAcceleration is proportional to the net torque, which is motor torque minus load torque.
Fill both blanks to create a dictionary of motor states with speed and torque.
motor_states = {'speed': [1], 'torque': [2]The dictionary should map 'speed' to motor_speed and 'torque' to braking_torque to represent current motor states.
Fill all three blanks to compute the motor speed after braking over a time step.
motor_speed = motor_speed [1] acceleration [2] time_step [3] braking_effect
Motor speed updates by adding acceleration times time step, then subtracting braking effect.