Skip to content

1.21

Choose a tag to compare

@PCrnjak PCrnjak released this 10 Nov 15:19
· 2 commits to main since this release

Spectral-BLDC 1.21, the Python library for the STEPFOC and Spectral Micro drivers, for driver firmware 109. Install or upgrade with pip install --upgrade Spectral-BLDC. Calls for older firmware keep working; the calls added here need firmware 109.

New in 1.21 (firmware 109)

  • Parameters: Send_Parameter and Send_Get_Parameter write and read any setting by number (1-89); the gains and limits (8-16, 20) are packed as floats. Parameters 79, 80 and 84-87 (build commit, build time, board ID, calibration ID) read unsigned.
  • Identity and telemetry: Send_Respond_Identity (product, tool id, firmware, pole pairs) and Send_Respond_Telemetry (temperature, voltage, error flags, current).
  • Capture, histogram and tables: Send_Capture_Setup, Send_Capture_Trigger, Send_Histogram and Send_Buffer_Read record and read captures, the histogram, the anti-cogging harmonics and table, and the encoder table.
  • Watchdog: all five actions of Send_Watchdog (Idle, Hold, Brake, Coast, Descend) and the fallback time (Send_Watchdog_Fallback); Send_Settings, Send_Brake_Coast.
  • Sound through the motor: Send_Tone, Send_Sound_*, Send_Samples_* and the music module (MIDI and WAV).
  • helpers: blocking request-and-answer functions; examples for status, capture, calibration, the watchdog and sound.

Fixes

  • Gripper object detection: the two object-detection bits are combined as the firmware sends them (1.20 and older swapped 1 and 2: contact while closing read as contact while opening, and the other way round).
  • Positions and speeds beyond 24 bits and currents beyond 16 bits raise ValueError instead of wrapping round; Send_Voltage_Limit takes 0-60000 mV.
  • UnpackData ignores other nodes' frames, remote, error and extended frames.
  • Node IDs and new CAN IDs must be 0-15; a failed send returns False and is logged once; python-can's interface= keyword is used.

Requirements