Use this if you want to know how to use the OS. # Commands ## Disk Interact with a disk drive. Synopsys: - `disk ls` list all disk drives and its content - `disk play ` play an audio disk inside a disk drive - `disk stop ` stops playing audio - `disk eject ` ejects the disk - `disk lable [lable]` Reads or sets a lable on a disk. ## GPS Interact with the buildin GPS and INS (Inertial Navigation System) system. The INS is used to update a turtle's position when it is moving. The GPS has 4 states of accuracy: - `0` Unknown position - `1` Position from INS or its best guess - `2` Position from manual input or the last known position - `3` Position from GPS In case of a turtle the GPS accuracy will be set to `1`. Synopsys: - `gps set ` set the position manually. This will get saved. - `gps status` prints the current GPS accuracy, position and INS status. - `gps locate` try to locate the current position. Accuracy will be set to `3` if successful. - `gps ins` perform an INS alignment. Used to get the current heading. ## KSettings Get and set Kernel settings. Current settings are: - `hostname` the hostname of the computer - `sitecontroller` the id of the site controller Synopsys: - `ks get ` print the value of a setting - `ks set ` set the value of a setting - `ks list` list all settings ## LSPS List all processes running on the computer. Very simple and not very useful other than for debugging. ## Net Interact with the network stack. Synopsys: - `net route` print the routing table - `net iface` list all network interfaces - `net proto` list all network currently active protocols - `net ping ` ping a remote computer by id ## Peripherals Interact with the peripherals connected to the computer. Synopsys: - `perf inspect ` print all types and methods of a peripheral - `perf list` list all peripherals ## Redstone Interact with the redstone. Support for Project Red's Bundle Cable is partialy implemented. Synopsys: - `rs on ` turn on redstone on a side - `rs off ` turn off redstone on a side - `rs get ` get the redstone state on a side ## Service Interact with the service manager. A service is a program that runs in the background and can be automatically started when the computer boots. A service is a normal program. In order to create a new service you must register a command with arguments under a name. After that you can start the service by its name. If it is running you can enable it so it will be started when the computer boots. Synopsys: - `srv start ` start a service - `srv stop ` stop a service - `srv register [args...]` register a service - `srv unregister ` unregister a service - `srv list` list all services - `srv enable ` enable a service. Must be started before it can be enabled. ## Turtle Interact with a turtle. Very simple. More to come maybe. Synopsys: - `turtle forward` move the turtle forward - `turtle back` move the turtle back - `turtle up` move the turtle up - `turtle down` move the turtle down - `turtle left` turn the turtle left - `turtle right` turn the turtle right