Skip to content

Commit 4e05382

Browse files
committed
Fix wrong speed in the GET_ALLDATA command
1 parent 86d4770 commit 4e05382

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ static void cmd_send_all_data(Data *d, unsigned char mode) {
12411241
// Now send motor stuff:
12421242
buffer_append_float16(buffer, d->motor.batt_voltage, 10, &ind);
12431243
buffer_append_int16(buffer, d->motor.erpm, &ind);
1244-
buffer_append_float16(buffer, d->motor.speed, 10, &ind);
1244+
buffer_append_float16(buffer, d->motor.speed * (1.0f / 3.6f), 10, &ind);
12451245
buffer_append_float16(buffer, d->motor.current, 10, &ind);
12461246
buffer_append_float16(buffer, d->motor.batt_current, 10, &ind);
12471247
buffer[ind++] = d->motor.duty_raw * 100 + 128;

0 commit comments

Comments
 (0)