SLHS-Robotics / SLHS-Offseason-2024

BSD 3-Clause Clear License
0 stars 0 forks source link

Create the motors and servos for the arm #2

Closed sevenbitscience closed 3 months ago

sevenbitscience commented 3 months ago

Create 2 DC motors and 3 servos for the arm of the robot.

DC Motors

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:

Servos

Creating a servo is similar to a motor, but you do not set up the encoder and you need to set its position after you set it up (before the main loop starts)