-
Notifications
You must be signed in to change notification settings - Fork 5
Using CharlieOSX
XielfTech edited this page Aug 29, 2020
·
2 revisions
After entering your Robot-Details in the config, you'll need to initialize CharlieOSX.
First, import the class 'CharlieOSX' from the module charlieosx and intitialize the CharlieOSX class:
from charlieosx import CharlieOSX
os = CharlieOSX('config.cfg', 'settings.json', '')
After that, you can either just call the GUI mainloop to start the Menu-system on the brick:
os.ui.mainLoop()
or you use the driving methods directly, for example:
os.robot.straight(100, 20) # drives forwards in a straight line with 100% motor speed for 20cm
You can find a detailed list of all the driving methods here