Motorcontroller-Firmware
From Nibo
Kommandos
Die folgenden Kommandos können über die TWI Schnittstelle zum Motorcontroller geschickt werden.
| Kommando | Größe | Byte0 | Byte1 | Byte2 | Byte3 | Byte4 |
|---|---|---|---|---|---|---|
| Stop | 1 | 0x00 | - | - | - | - |
| SetPWM | 5 | 0x01 | PWM links | PWM rechts | ||
| SetSpeed | 5 | 0x02 | Soll links | Soll rechts | ||
| SetParameters | 4 | 0x03 | Ki | Kp | Kd | - |
| ResetOdometry | 5 | 0x04 | Odo links | Odo rechts | ||
Zustand
Das folgende Datenpaket kann über die TWI Schnittstelle vom Motorcontroller abgefragt werden und beschreibt den aktuellen Zustand:
| Größe | Byte0 | Byte1 | Byte2 | Byte3 | Byte4 | Byte5 | Byte6 | Byte7 |
|---|---|---|---|---|---|---|---|---|
| 8 | Odo links | Odo rechts | Geschw. links | Geschw. rechts | ||||
