@@ -186,8 +186,9 @@ typedef struct _CommandResponse
186186 };
187187} __attribute__((packed)) CommandResponse;
188188
189- static_assert (sizeof (CommandResponse) <= MAX_DATA_LEN ,
190- " CommandResponse struct size must be less than or equal to MAX_DATA_LEN to fit in the SerialMuxProt frame." );
189+ static_assert (
190+ sizeof (CommandResponse) <= MAX_DATA_LEN ,
191+ " CommandResponse struct size must be less than or equal to MAX_DATA_LEN to fit in the SerialMuxProt frame." );
191192
192193/* * Struct of the "Motor Speed Setpoints" channel payload. */
193194typedef struct _MotorSpeed
@@ -212,13 +213,16 @@ static_assert(sizeof(RobotSpeed) <= MAX_DATA_LEN,
212213/* * Struct of the "Current Vehicle Data" channel payload. */
213214typedef struct _VehicleData
214215{
215- int32_t xPos; /* *< X position [mm]. */
216- int32_t yPos; /* *< Y position [mm]. */
217- int32_t orientation; /* *< Orientation [mrad]. */
218- int32_t left; /* *< Left motor speed [mm/s]. */
219- int32_t right; /* *< Right motor speed [mm/s]. */
220- int32_t center; /* *< Center speed [mm/s]. */
221- SMPChannelPayload::Range proximity; /* *< Range at which object is found [range]. */
216+ uint32_t timestamp; /* *< Timestamp [ms]. */
217+ int32_t xPos; /* *< X position [mm]. */
218+ int32_t yPos; /* *< Y position [mm]. */
219+ int32_t orientation; /* *< Orientation [mrad]. */
220+ int32_t left; /* *< Left motor speed [mm/s]. */
221+ int32_t right; /* *< Right motor speed [mm/s]. */
222+ int32_t center; /* *< Center speed [mm/s]. */
223+ SMPChannelPayload::Range proximity; /* *< Range at which object is found [range]. */
224+ int16_t accelerationX; /* *< Raw acceleration in X [digit]. */
225+ int16_t turnRateZ; /* *< Raw turn rate around Z [digit]. */
222226} __attribute__((packed)) VehicleData;
223227
224228static_assert (sizeof (VehicleData) <= MAX_DATA_LEN ,
@@ -239,8 +243,9 @@ typedef struct _LineSensorData
239243 uint16_t lineSensorData[5U ]; /* *< Line sensor data [digits] normalized to max 1000 digits. */
240244} __attribute__((packed)) LineSensorData;
241245
242- static_assert (sizeof (LineSensorData) <= MAX_DATA_LEN ,
243- " LineSensorData struct size must be less than or equal to MAX_DATA_LEN to fit in the SerialMuxProt frame." );
246+ static_assert (
247+ sizeof (LineSensorData) <= MAX_DATA_LEN ,
248+ " LineSensorData struct size must be less than or equal to MAX_DATA_LEN to fit in the SerialMuxProt frame." );
244249
245250/* *****************************************************************************
246251 * Functions
0 commit comments