get_debug_values
Retrieve motor control parameters, profiler times, hall sensor voltages, and PWM data for diagnosing servomotor performance and fine-tuning movements.
Instructions
Get debug values including motor control parameters, profiler times, hall sensor data, and other diagnostic information. [Firmware command "Get debug values", group: Status & Monitoring.] Returns:
maxAcceleration: Maximum acceleration setting
maxVelocity: Maximum velocity setting
currentVelocity: Current velocity
measuredVelocity: Measured velocity
nTimeSteps: Number of time steps left in the current move
debugValue1: Debug value 1
debugValue2: Debug value 2
debugValue3: Debug value 3
debugValue4: Debug value 4
allMotorControlCalculationsProfilerTime: All motor control calculations profiler time
allMotorControlCalculationsProfilerMaxTime: All motor control calculations profiler maximum time
getSensorPositionProfilerTime: Get sensor position profiler time
getSensorPositionProfilerMaxTime: Get sensor position profiler maximum time
computeVelocityProfilerTime: Compute velocity profiler time
computeVelocityProfilerMaxTime: Compute velocity profiler maximum time
motorMovementCalculationsProfilerTime: Motor movement calculations profiler time
motorMovementCalculationsProfilerMaxTime: Motor movement calculations profiler maximum time
motorPhaseCalculationsProfilerTime: Motor phase calculations profiler time
motorPhaseCalculationsProfilerMaxTime: Motor phase calculations profiler maximum time
motorControlLoopPeriodProfilerTime: Motor control loop period profiler time
motorControlLoopPeriodProfilerMaxTime: Motor control loop period profiler maximum time
hallSensor1Voltage: Hall sensor 1 voltage
hallSensor2Voltage: Hall sensor 2 voltage
hallSensor3Voltage: Hall sensor 3 voltage
commutationPositionOffset: Commutation position offset
motorPhasesReversed: Motor phases reversed flag
maxHallPositionDelta: Maximum hall position delta
minHallPositionDelta: Minimum hall position delta
averageHallPositionDelta: Average hall position delta
motorPwmVoltage: Motor PWM voltage motor: an alias number (e.g. 88), a 16-hex-digit unique ID (e.g. "0123456789ABCDEF"), or "all" to broadcast to every motor on the bus (broadcasts get no responses back).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| motor | Yes |