Logical Interface - Subsystem Registers
- Propulsion
- Sonar
- Vision
- Navigation
- Central Command & Control
Propulsion
| Motor status | 00h = All motors off | (READ ONLY) 8-bit unsigned number | |
| Port motor direction | 0 = Forwards 1 = Backwards | (READ ONLY) 8-bit unsigned number | |
| Port motor speed | Range = 0 to 99 | (READ ONLY) 8-bit unsigned number | |
| Starboard motor direction | 0 = Forwards 1 = Backwards |
(READ ONLY) 8-bit unsigned number | |
| Starboard motor speed | Range = 0 to 99 | (READ ONLY) 8-bit unsigned number | |
| Vertical motor direction | 0 = Up 1 = Down |
(READ ONLY) 8-bit unsigned number | |
| Vertical motor speed | Range = 0 to 99 | (READ ONLY) 8-bit unsigned number | |
| Shift motor direction | 0 = Left 1 = Right |
(READ ONLY) 8-bit unsigned number | |
| Shift motor speed | Range = 0 to 99 | (READ ONLY) 8-bit unsigned number |
Sonar
| Impact data available/unavailable | 0 = Unavailable 1 = Available |
(READ ONLY) 8-bit unsigned number | |
| Impact level | 0 = No impact 1 = Light impact 2 = Heavy impact |
(READ ONLY) 8-bit unsigned number | |
| Pinger available/unavailable | 0 = Unavailable 1 = Available |
(READ ONLY) 8-bit unsigned number | |
| Angle relative to submarine heading | Range = -179 to 180 | (READ ONLY) 8-bit signed number |
Vision
| Status/error log | 0 = Normal operation 1 = Camera #1 error 2 = Camera #2 error 3 = Camera #1 and #2 error |
(READ ONLY) 8-bit unsigned number | |
| Camera #1 setting | 0 = Detecting path 1 = Detecting target bins |
(READ and WRITE) 8-bit unsigned number | |
| Camera #2 setting | 0 = Detecting buoy 1 = Detecting air duct |
(READ and WRITE) 8-bit unsigned number | |
| Angle of path | Range = -90 to 90 | (READ ONLY) 8-bit unsigned number | |
| X-position of image center for camera #1 | Range = 0 to 255 | (READ ONLY) 8-bit unsigned number | |
| Y-position of image center for camera #1 | Range = 0 to 255 | (READ ONLY) 8-bit unsigned number | |
| Specified color pixel count for camera #1 | Range = 0 to 255 | (READ ONLY) 8-bit unsigned number | |
| X-position of the image center for camera #2 | Range = 0 to 255 | (READ ONLY) 8-bit unsigned number | |
| Y-position of the image center for camera #2 | Range = 0 to 255 | (READ ONLY) 8-bit unsigned number | |
| Specified color pixel count for camera #2 | Range = 0 to 255 | (READ ONLY) 8-bit unsigned number |
Navigation
| Air duct exit | 0 = Not detected 1 = Detected |
(READ ONLY) 8-bit unsigned number | |
| Heading | Range = 0 to 255 | (READ ONLY) 8-bit unsigned number | |
| Position | Range = 0 to 255 | (READ ONLY) 8-bit unsigned number |
Central Command & Control
Command and Control's responsibility is to communicate to each subsystem's registers as displayed above. Therefore its logical interface will consist of a conglomeration of the said registers.