Hello,
I am an FRC mentor, and we just purchased the Freenove micro:bit mini rover. It is a wonderful device. I am trying to figure out if it is feasible to create a custom interface to teach students how to program using WPILib conventions. This will allow students to use this robot to learn how to program a robot with FRC-like syntax in drag and drop programming.
The basic structure I am looking to create is…
When the robot starts > Do…
Periodically when the robot is running > Do…
When in Autonomous mode > Do…
When in teleoperated mode >Do…
My question is, I do not know how to create a block that wraps (like the forever blocks), and will run once on an event is triggered (or periodically while an event triggered state is true).
I am not incredibly familiar with javascript/typescript, and most of the general event handler docs are either way too specific or way too general for me to apply to this context.
See the attached image for what I would like students to see.
Any help you could give or docs you could send me to would be appreciated.