Feedback

Get debug values

Description

Get debug values including motor control parameters, profiler times, hall sensor data, and other diagnostic information.

Inputs

None

Outputs

  1. i64 maxAcceleration: Maximum acceleration setting

  2. i64 maxVelocity: Maximum velocity setting

  3. i64 currentVelocity: Current velocity

  4. i32 measuredVelocity: Measured velocity

  5. u32 nTimeSteps: : Number of time steps left in the current move

  6. i64 debugValue1: Debug value 1

  7. i64 debugValue2: Debug value 2

  8. i64 debugValue3: Debug value 3

  9. i64 debugValue4: Debug value 4

  10. u16 allMotorControlCalculationsProfilerTime: All motor control calculations profiler time

  11. u16 allMotorControlCalculationsProfilerMaxTime: All motor control calculations profiler maximum time

  12. u16 getSensorPositionProfilerTime: Get sensor position profiler time

  13. u16 getSensorPositionProfilerMaxTime: Get sensor position profiler maximum time

  14. u16 computeVelocityProfilerTime: Compute velocity profiler time

  15. u16 computeVelocityProfilerMaxTime: Compute velocity profiler maximum time

  16. u16 motorMovementCalculationsProfilerTime: Motor movement calculations profiler time

  17. u16 motorMovementCalculationsProfilerMaxTime: Motor movement calculations profiler maximum time

  18. u16 motorPhaseCalculationsProfilerTime: Motor phase calculations profiler time

  19. u16 motorPhaseCalculationsProfilerMaxTime: Motor phase calculations profiler maximum time

  20. u16 motorControlLoopPeriodProfilerTime: Motor control loop period profiler time

  21. u16 motorControlLoopPeriodProfilerMaxTime: Motor control loop period profiler maximum time

  22. u16 hallSensor1Voltage: Hall sensor 1 voltage

  23. u16 hallSensor2Voltage: Hall sensor 2 voltage

  24. u16 hallSensor3Voltage: Hall sensor 3 voltage

  25. u32 commutationPositionOffset: Commutation position offset

  26. u8 motorPhasesReversed: Motor phases reversed flag

  27. i32 maxHallPositionDelta: Maximum hall position delta

  28. i32 minHallPositionDelta: Minimum hall position delta

  29. i32 averageHallPositionDelta: Average hall position delta

  30. u8 motorPwmVoltage: Motor PWM voltage

Code examples

Log window

Choose a theme
Choose a theme