The telemetry block from the last section can be removed from our OpMode.
Let's start by getting our Core Hex Motor spinning on the testbed. Under the Actuators menu look for DcMotor:
When looking at the options, the names of the motors will typically appear in alphabetical order. In the pictures used for this guide coreHex shows as the default option. If you named your motors differently, there will be variation.
First, we'll add a power block to our loop:
With that we can save our program and run it to see what happens!
The max power for spinning forward is 1. The max power for spinning in reverse is -1. Going above these values will not make the motor spin any faster. However, it also will not damage the motor so students can be encouraged to explore what happens!
Take a moment to try adjusting the power of the Core Hex motor then add the HD Hex Motor to spin in a similar fashion.
The HD Hex Motor's name can be selected from the dropdown on the power block.
While in angular mode, servos are programmed a little different than motors. Rather than assigning a power, we'll be setting positions for them to move between.
Note: This menu will appear differently if there is a continuous servo listed in the current configuration file.
When looking at the options, the names of the servos will typically appear in alphabetical order. In the pictures used for this guide servo show as the default option. If you named your servos differently, there will be variation.
Let's start by adding a block to set our servo's position to 1.
With that we can save our program and run it to see what happens! After running the program once, stop and try to run it again.
If we want our servo to move each time our program runs, we need it to first reset to a different position. In this example, we can do this during initialization.
Add a position block for 0 under Put initialization blocks here.
Now save the OpMode and run the program again.
Take a moment to try different positions for your servo to move between.
In the next section we'll add a gamepad to control the movements of our actuators!










