Python library for the Spectral Micro and STEPFOC motor drivers, over CAN.
Repo Source-Robotics/Spectral-BLDC-Python, read from GitHub 2 h ago. Source-Robotics has not joined Take My Repo.
Spectral-BLDC 1.22, the Python library for the STEPFOC and Spectral Micro drivers, for driver firmware 110. Install or upgrade with pip install --upgrade Spectral-BLDC. Everything of 1.21 is unchanged.
PARAM_RSTINT (90, #Rstint), PARAM_THERMISTOR (91, #Term), PARAM_GRIPPER_MODE (92, #Gripper, written only while the drive is idle), each 0 or 1 and kept by Send_Save_config(), and PARAM_GRIPPER_STROKE (93, read only: the gripper's stroke in ticks, 0 until calibrated). PARAMETER_NAMES names them, so helpers.get_parameters() lists them. A 109 drive answers them as unknown.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.
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.Send_Respond_Identity (product, tool id, firmware, pole pairs) and Send_Respond_Telemetry (temperature, voltage, error flags, current).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.Send_Watchdog (Idle, Hold, Brake, Coast, Descend) and the fallback time (Send_Watchdog_Fallback); Send_Settings, Send_Brake_Coast.Send_Tone, Send_Sound_*, Send_Samples_* and the music module (MIDI and WAV).ValueError instead of wrapping round; Send_Voltage_Limit takes 0-60000 mV.UnpackData ignores other nodes' frames, remote, error and extended frames.False and is logged once; python-can's interface= keyword is used.test