Creating custom projects
The VS CtrlR Plugin enables the F1 Starter Kit to work with third-party sensors to create custom projects on the Ctrl. Cloud Platform.
# Import what is necessary to create a thread import time import math # Send data continuously to Ctrl while True: for i in range(0,20): ctrl.send_signal(1, math.sin(i/10*math.pi)) #use signal #1 print('sent signal {}'.format(i)) time.sleep(10)
Main.py will persist and run on the F1 Starter Kit when it is booted up. To stop the script, click onto the CtrlR terminal and press ctrl-c on your keyboard.