Self Driving Car

AddressSizeDescription
base+0x00byteStoring 1 triggers the GPS device to start reading the coordinates and rotation of the car. The register is set to 0 when the reading is completed.
base+0x01byteStoring 1 triggers the Line Camera device to capture an image. The register is set to 0 when the capture is completed.
base+0x02byteStoring 1 triggers the Ultrasonic Sensor device to measure the distance in front of the car. The register is set to 0 when the measurement is completed.
base+0x04wordStores the Euler angle X of the car rotation at the moment of the last reading by the GPS.
base+0x08wordStores the Euler angle Y of the car rotation at the moment of the last reading by the GPS.
base+0x0CwordStores the Euler angle Z of the car rotation at the moment of the last reading by the GPS.
base+0x10wordStores the X-axis of the car position at the moment of the last reading by the GPS.
base+0x14wordStores the Y-axis of the car position at the moment of the last reading by the GPS.
base+0x18wordStores the Z-axis of the car position at the moment of the last reading by the GPS.
base+0x1CwordStores the distance (in centimeters) between the Ultrasonic sensor and the nearest obstacle. Returns -1 if there’s no obstacle within 20m.
base+0x20byteSets the steering wheel direction. Negative values indicate steering to the left, positive values indicate steering to the right.
base+0x21byteSets the engine direction.
1: forward.
0: off.
-1: backward.
base+0x22byteSets the hand break. (1 = enabled)
base+0x24256-byte arrayStores the image captured by the Line Camera. Each byte represents the luminance of a pixel.