
Program for Pallo - SPIKE Prime catapult with target robot - LSAv3.4.5.llsp3
This program is for the target part of Pallo. It uses a piston with differently colored sections, which are detected by a color sensor.
The piston starts with a green section, so the program waits for that color to change—indicating that the target has been hit. Then, it celebrates!
The celebration is simple: the program reads the color of the new section to determine how accurately the target was hit, and it lights up the center button with that color. It also displays "YAY" on the hub's screen.
Feel free to improve the program however you like!
- #40fher
- 07 Aug 2020