aradar / autonomous-car

0 stars 0 forks source link

design communication protocol (proton buffer) #11

Closed dephiloper closed 6 years ago

dephiloper commented 7 years ago
Capscreen commented 7 years ago
Bluemi commented 7 years ago

Protocol Version 0.1:

  1. The first 2 bits are flags:
    • The first bit is the \<mode>-bit. If "mode"-bit is set \<value> (see 3.) controls the power of the drive motor, if not set \<value> controls the wheel angle.
    • The second bit is the \<direction>-bit. If \<direction>-bit is set the car will move backwards, in case of \<mode> is set. In case of \<mode>-bit is not set a set \<direction>-bit will effect the car to steer left otherwise right.
  2. The following 6 bits are used for a debug-level as unsigned int.
    • 0 => no debug-logs will be send to pi
    • 1 => debug-logs will be send to pi
    • we can make up to 64 debug-level (hopefully don't need it ^^)
  3. The last 4 byte represent the float variable \<value>, that describes either the wheel angle or the drive-power depending on \<mode>.
Capscreen commented 7 years ago
dephiloper commented 6 years ago

We created a wiki for all protocols and the main layer structure. The new version of the nucleo - pi communication protocol can be found on the link down below. https://github.com/aradar/autonomous-car/wiki/Pi-Nucleo-Serial-Communication-Protocol