-
Notifications
You must be signed in to change notification settings - Fork 1
Global Data Slots
jmalins edited this page Dec 27, 2012
·
1 revision
The easyC runtime provides 20 1-word (4 byte) data slots that can store information across reboots of the Cortex Microcontroller. VexOS uses some of these slots for its own purposes, starting at slot 20 and working down. Any slot # not mentioned on this page should be usable by your programs.
| Slot # | Function | Notes |
|---|---|---|
| 20 | Autonomous Program Number | 0 if no program |
| 19 | Dashboard Number | 0 if no dashboard or dashboard disabled |
| 18 | LCD Screen Number | 0 if no screens or no LCD |
| 17 | Debug Value on LCD | 0 if no debug values or values are not on the LCD |
| 16 15 14 13 12 |
PID Encoder Values | Encoder setpoints for non-IME feedback encoders used in PID loops. Fills upwards from 12 towards 16. |