Update regarding stopping modes
It looks like SPIKE moved the stopping mode from the motor_pair module to the motor module.
In the imports, you will also need to add: import motor
Then in the motor movement parameter, you need to change stop=motor_pair.COAST to stop=motor.COAST
I have updated the code on github, thanks everyone for noticing this!
Update In the video I mention that the motor speed and acceleration parameters are in metres/second but according to the latest documentation it is supposed to be degrees/second which makes much more sense. Thanks @robotkudos6773 for pointing it out!
Learn Python for the LEGO® Education SPIKE Prime system in this brand new tutorial series for 2023.
To buy SPIKE Prime, visit https://www.mooreed.com.au/
Project files:
https://github.com/CreatorAcademyAu/s...
For more in-depth science, building and coding on this subject, visit www.creatoracademy.com.au
LEGO® is a trademark of the LEGO Group of companies which does not sponsor, authorise, or endorse this video.