Skip to content

Commit

Permalink
more detailed steering report
Browse files Browse the repository at this point in the history
  • Loading branch information
CL16gtgh committed May 22, 2024
1 parent 2b56423 commit bb03837
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,19 @@ void loop()

if (curr_tick.triggers.trigger5)
{
Serial.print("Steering system angle: ");
Serial.print("Steering system reported angle (deg): ");
Serial.println(steering_system.getSteeringSystemData().angle);
Serial.print("Steering system status: ");
Serial.println(static_cast<uint8_t>(steering_system.getSteeringSystemData().status));
Serial.print("Primary sensor angle: ");
Serial.println(steering1.convert().angle);
Serial.print("Secondary sensor angle: ");
Serial.print(a1.get().conversions[MCU15_STEERING_CHANNEL].conversion);
Serial.print(" raw: ");
Serial.println(a1.get().conversions[MCU15_STEERING_CHANNEL].raw);
Serial.print("Sensor divergence: ");
Serial.println(steering1.convert().angle - a1.get().conversions[MCU15_STEERING_CHANNEL].conversion);
Serial.println();

Serial.println();
}

}
Expand Down

0 comments on commit bb03837

Please sign in to comment.