Spike Prime Programming Resources
HOW TO BUILD THE BASE BUILD
Open the Spike Prime app
Choose Spike Prime (on the right)
Click on "Unit Plans" (down and to the left)
Find the Unit Plan called "Competition Ready" and download it.
Click "Start" on the first item : Traning Camp 1: Driving Around
On the screen, to the right, you sill see a panel that has tutorial slides. Each slide has a blue arrow pointing to the right that will take you to the next slide. Skip to Slide 02/06
Click on "BUILD".
This your base build. It is VERY simple. You do not need to have this base build for your team, but your team WILL need to decide on a base build so that ALL the team's robots have the exact same base build.
Measuring distances with Hub Connection
When you are programming your robot's path, you will need to put values into the coding blocks to tell the motors how much to turn. CLICK HERE to take you to the instructions for using your "Hub Connection" in the Spike Prime app to do just that.
Easy 90 degree turn
This will give you a 90 degree turn to the right.
Additional Programming Blocks
The Spike Prime app opens up with a large number of programming blocks available, however there are ADDITIONAL PROGRAMMING BLOCKS - (click here) or "block extensions" available that you can add to what you already have.
Accurate turns using the gyro sensor and yaw value.
As shown on the left, when the robot turns to the LEFT, the yaw value decreases.
When the robot turns to the RIGHT, the yaw value increases.
For accurate turns, reset your "yaw" angle to zero.
WAIT for a half second to allow the robot time to actually do the reset before taking off.
The stack to the right has the robot turn 90 to the left (yaw value decreases)
Then, it turns right by having the yaw value INCREASE back to zero.
It is possible to reset the yaw value before each turn so that you don't have to keep adding and subtracting values, but you will need to use WAIT blocks to allow the reset to perform.