Closed sevenbitscience closed 6 months ago
Creating a motor involves creating a variable for the motor, pulling the motor from the hardware map, and setting up its parameters.
Motors are assigned from the hardware map using hardwareMap.get(DcMotor.class, 'Motor name') After motor assignment:
hardwareMap.get(DcMotor.class, 'Motor name')
Create 4 DC motors that will drive the wheels on the robot.
Creating a motor involves creating a variable for the motor, pulling the motor from the hardware map, and setting up its parameters.
Motors are assigned from the hardware map using
hardwareMap.get(DcMotor.class, 'Motor name')
After motor assignment: