Subsystem for FOC control: torque/flux, velocity, position loops, open‐loop support, and reference switch / stop-event parameters.
More...
|
| bool | stop () noexcept |
| | Stop torque/flux control (SYSTEM_OFF).
|
| |
| bool | setTargetTorque (int16_t milliamps) noexcept |
| | Set desired torque.
|
| |
| bool | getActualTorque (int16_t &milliamps) noexcept |
| | Read actual torque.
|
| |
| bool | setTargetFlux (int16_t milliamps) noexcept |
| | Set desired flux current.
|
| |
| bool | getActualFlux (int32_t &milliamps) noexcept |
| | Read actual flux current.
|
| |
| bool | setTorqueOffset (int16_t milliamps) noexcept |
| | Set torque offset (feed-forward).
|
| |
| bool | getTorqueOffset (int16_t &milliamps) noexcept |
| | Read torque offset.
|
| |
| bool | setFluxOffset (int16_t milliamps) noexcept |
| | Set flux offset (feed-forward).
|
| |
| bool | getFluxOffset (int16_t &milliamps) noexcept |
| | Read flux offset.
|
| |
| bool | setCurrentLoopGains (uint16_t p, uint16_t i, bool separate=false, uint16_t fluxP=0, uint16_t fluxI=0) noexcept |
| | Configure current-loop PI gains.
|
| |
| bool | setTorqueFluxPiSeparation (tmc9660::tmcl::TorqueFluxPiSeparation sep) noexcept |
| | Select combined or separate torque/flux PI parameters.
|
| |
| bool | setCurrentNormalization (tmc9660::tmcl::CurrentPiNormalization pNorm, tmc9660::tmcl::CurrentPiNormalization iNorm) noexcept |
| | Set normalization for current-PI outputs.
|
| |
| bool | getTorquePiError (int32_t &error) noexcept |
| | Read torque PI error.
|
| |
| bool | getFluxPiError (int32_t &error) noexcept |
| | Read flux PI error.
|
| |
| bool | getTorquePiIntegrator (int32_t &integrator) noexcept |
| | Read torque-PI integrator state.
|
| |
| bool | getFluxPiIntegrator (int32_t &integrator) noexcept |
| | Read flux-PI integrator state.
|
| |
| bool | setVelocitySensor (tmc9660::tmcl::VelocitySensorSelection sel) noexcept |
| | Select velocity feedback sensor.
|
| |
| bool | getVelocitySensor (tmc9660::tmcl::VelocitySensorSelection &sel) noexcept |
| | Read velocity feedback sensor.
|
| |
| bool | setTargetVelocity (int32_t velocity) noexcept |
| | Set target velocity.
|
| |
| bool | getActualVelocity (int32_t &velocity) noexcept |
| | Read actual velocity.
|
| |
| bool | setVelocityOffset (int32_t offset) noexcept |
| | Set velocity offset.
|
| |
| bool | getVelocityOffset (int32_t &offset) noexcept |
| | Read velocity offset.
|
| |
| bool | setVelocityLoopGains (uint16_t p, uint16_t i) noexcept |
| | Configure velocity PI gains.
|
| |
| bool | setVelocityNormalization (tmc9660::tmcl::VelocityPiNorm pNorm, tmc9660::tmcl::VelocityPiNorm iNorm) noexcept |
| | Set velocity PI normalization.
|
| |
| bool | getVelocityPiIntegrator (int32_t &integrator) noexcept |
| | Read velocity-PI integrator.
|
| |
| bool | getVelocityPiError (int32_t &error) noexcept |
| | Read velocity-PI error.
|
| |
| bool | setVelocityScalingFactor (uint16_t factor) noexcept |
| | Set velocity scaling factor.
|
| |
| bool | getVelocityScalingFactor (uint16_t &factor) noexcept |
| | Read velocity scaling factor.
|
| |
| bool | setStopOnVelocityDeviation (uint32_t maxError, bool softStop=true) noexcept |
| | Configure stop-on-velocity-deviation.
|
| |
| bool | getStopOnVelocityDeviation (uint32_t &maxError, bool &softStop) noexcept |
| | Read stop-on-velocity-deviation settings.
|
| |
| bool | setVelocityLoopDownsampling (uint8_t divider) noexcept |
| | Set velocity loop downsampling.
|
| |
| bool | getVelocityLoopDownsampling (uint8_t ÷r) noexcept |
| | Read velocity loop downsampling.
|
| |
| bool | setVelocityReachedThreshold (uint32_t threshold) noexcept |
| | Set velocity reached threshold.
|
| |
| bool | getVelocityReachedThreshold (uint32_t &threshold) noexcept |
| | Read velocity reached threshold.
|
| |
| bool | setVelocityMeterSwitchThreshold (uint32_t threshold) noexcept |
| | Set velocity meter switch threshold.
|
| |
| bool | getVelocityMeterSwitchThreshold (uint32_t &threshold) noexcept |
| | Read velocity meter switch threshold.
|
| |
| bool | setVelocityMeterSwitchHysteresis (uint16_t hysteresis) noexcept |
| | Set velocity meter hysteresis.
|
| |
| bool | getVelocityMeterSwitchHysteresis (uint16_t &hysteresis) noexcept |
| | Read velocity meter hysteresis.
|
| |
| bool | getVelocityMeterMode (tmc9660::tmcl::VelocityMeterMode &mode) noexcept |
| | Read current velocity meter mode.
|
| |
| bool | setPositionSensor (tmc9660::tmcl::PositionSensorSelection sel) noexcept |
| | Select position feedback sensor.
|
| |
| bool | getPositionSensor (tmc9660::tmcl::PositionSensorSelection &sel) noexcept |
| | Read position feedback sensor.
|
| |
| bool | setTargetPosition (int32_t position) noexcept |
| | Set target position.
|
| |
| bool | getActualPosition (int32_t &position) noexcept |
| | Read actual position.
|
| |
| bool | setPositionScalingFactor (uint16_t factor) noexcept |
| | Set position scaling factor.
|
| |
| bool | getPositionScalingFactor (uint16_t &factor) noexcept |
| | Read position scaling factor.
|
| |
| bool | setPositionLoopGains (uint16_t p, uint16_t i) noexcept |
| | Configure position PI gains.
|
| |
| bool | setPositionNormalization (tmc9660::tmcl::VelocityPiNorm pNorm, tmc9660::tmcl::VelocityPiNorm iNorm) noexcept |
| | Set position PI normalization.
|
| |
| bool | getPositionPiIntegrator (int32_t &integrator) noexcept |
| | Read position-PI integrator.
|
| |
| bool | getPositionPiError (int32_t &error) noexcept |
| | Read position-PI error.
|
| |
| bool | setStopOnPositionDeviation (uint32_t maxError, bool softStop=true) noexcept |
| | Configure stop-on-position-deviation.
|
| |
| bool | getStopOnPositionDeviation (uint32_t &maxError, bool &softStop) noexcept |
| | Read stop-on-position-deviation settings.
|
| |
| bool | setPositionLoopDownsampling (uint8_t divider) noexcept |
| | Set position loop downsampling.
|
| |
| bool | getPositionLoopDownsampling (uint8_t ÷r) noexcept |
| | Read position loop downsampling.
|
| |
| bool | setPositionLimitLow (int32_t limit) noexcept |
| | Set low position limit.
|
| |
| bool | getPositionLimitLow (int32_t &limit) noexcept |
| | Read low position limit.
|
| |
| bool | setPositionLimitHigh (int32_t limit) noexcept |
| | Set high position limit.
|
| |
| bool | getPositionLimitHigh (int32_t &limit) noexcept |
| | Read high position limit.
|
| |
| bool | setPositionReachedThreshold (uint32_t threshold) noexcept |
| | Set position reached threshold.
|
| |
| bool | getPositionReachedThreshold (uint32_t &threshold) noexcept |
| | Read position reached threshold.
|
| |
| bool | getOpenloopAngle (int16_t &angle) noexcept |
| | Read open-loop angle.
|
| |
| bool | setOpenloopCurrent (uint16_t milliamps) noexcept |
| | Set open-loop current.
|
| |
| bool | getOpenloopCurrent (uint16_t &milliamps) noexcept |
| | Read open-loop current.
|
| |
| bool | setOpenloopVoltage (uint16_t voltage) noexcept |
| | Set open-loop voltage.
|
| |
| bool | getOpenloopVoltage (uint16_t &voltage) noexcept |
| | Read open-loop voltage.
|
| |
| bool | setReferenceSwitchEnable (tmc9660::tmcl::ReferenceSwitchEnable enable) noexcept |
| | Enable/disable reference switch stops.
|
| |
| bool | getReferenceSwitchEnable (tmc9660::tmcl::ReferenceSwitchEnable &enable) noexcept |
| | Read reference switch enable mask.
|
| |
| bool | setReferenceSwitchPolaritySwap (tmc9660::tmcl::ReferenceSwitchPolaritySwap config) noexcept |
| | Configure switch polarity and swap.
|
| |
| bool | getReferenceSwitchPolaritySwap (tmc9660::tmcl::ReferenceSwitchPolaritySwap &config) noexcept |
| | Read switch polarity/swap config.
|
| |
| bool | setReferenceSwitchLatchSettings (tmc9660::tmcl::ReferenceSwitchLatchSettings setting) noexcept |
| | Configure switch latch settings.
|
| |
| bool | getReferenceSwitchLatchSettings (tmc9660::tmcl::ReferenceSwitchLatchSettings &setting) noexcept |
| | Read switch latch settings.
|
| |
| bool | setEventStopSettings (tmc9660::tmcl::EventStopSettings settings) noexcept |
| | Configure event-stop settings.
|
| |
| bool | getEventStopSettings (tmc9660::tmcl::EventStopSettings &settings) noexcept |
| | Read event-stop settings.
|
| |
| bool | setReferenceSwitchSearchMode (tmc9660::tmcl::ReferenceSwitchSearchMode mode) noexcept |
| | Set reference search mode.
|
| |
| bool | getReferenceSwitchSearchMode (tmc9660::tmcl::ReferenceSwitchSearchMode &mode) noexcept |
| | Read reference search mode.
|
| |
| bool | setReferenceSwitchSearchSpeed (int32_t speed) noexcept |
| | Set reference search speed.
|
| |
| bool | getReferenceSwitchSearchSpeed (int32_t &speed) noexcept |
| | Read reference search speed.
|
| |
| bool | setReferenceSwitchSpeed (int32_t speed) noexcept |
| | Set reference positioning speed.
|
| |
| bool | getReferenceSwitchSpeed (int32_t &speed) noexcept |
| | Read reference positioning speed.
|
| |
| bool | getRightLimitSwitchPosition (int32_t &position) noexcept |
| | Read right-limit-switch position.
|
| |
| bool | getHomeSwitchPosition (int32_t &position) noexcept |
| | Read home-switch position.
|
| |
| bool | getLastReferencePosition (int32_t &position) noexcept |
| | Read last reference position.
|
| |
|
| bool | getMccInputsRaw (uint16_t &inputs) noexcept |
| |
|
| bool | getFocVoltageUx (int16_t &voltage) noexcept |
| |
| bool | getFocVoltageWy (int16_t &voltage) noexcept |
| |
| bool | getFocVoltageV (int16_t &voltage) noexcept |
| |
| bool | getFocVoltageUq (int16_t &voltage) noexcept |
| |
|
| bool | setFieldWeakeningI (uint16_t milliamps) noexcept |
| |
| bool | getFieldWeakeningI (uint16_t &milliamps) noexcept |
| |
| bool | setFieldWeakeningVoltageThreshold (uint16_t voltage) noexcept |
| |
| bool | getFieldWeakeningVoltageThreshold (uint16_t &voltage) noexcept |
| |
|
| bool | getFocCurrentUx (int16_t &milliamps) noexcept |
| |
| bool | getFocCurrentV (int16_t &milliamps) noexcept |
| |
| bool | getFocCurrentWy (int16_t &milliamps) noexcept |
| |
| bool | getFocCurrentIq (int16_t &milliamps) noexcept |
| |
|
| bool | setTargetTorqueBiquadFilterEnable (bool enable) noexcept |
| |
| bool | getTargetTorqueBiquadFilterEnable (bool &enable) noexcept |
| |
| bool | setTargetTorqueBiquadFilterACoeff1 (int32_t coeff) noexcept |
| |
| bool | getTargetTorqueBiquadFilterACoeff1 (int32_t &coeff) noexcept |
| |
| bool | setTargetTorqueBiquadFilterACoeff2 (int32_t coeff) noexcept |
| |
| bool | getTargetTorqueBiquadFilterACoeff2 (int32_t &coeff) noexcept |
| |
| bool | setTargetTorqueBiquadFilterBCoeff0 (int32_t coeff) noexcept |
| |
| bool | getTargetTorqueBiquadFilterBCoeff0 (int32_t &coeff) noexcept |
| |
| bool | setTargetTorqueBiquadFilterBCoeff1 (int32_t coeff) noexcept |
| |
| bool | getTargetTorqueBiquadFilterBCoeff1 (int32_t &coeff) noexcept |
| |
| bool | setTargetTorqueBiquadFilterBCoeff2 (int32_t coeff) noexcept |
| |
| bool | getTargetTorqueBiquadFilterBCoeff2 (int32_t &coeff) noexcept |
| |
|
| bool | setActualVelocityBiquadFilterEnable (bool enable) noexcept |
| |
| bool | getActualVelocityBiquadFilterEnable (bool &enable) noexcept |
| |
| bool | setActualVelocityBiquadFilterACoeff1 (int32_t coeff) noexcept |
| |
| bool | getActualVelocityBiquadFilterACoeff1 (int32_t &coeff) noexcept |
| |
| bool | setActualVelocityBiquadFilterACoeff2 (int32_t coeff) noexcept |
| |
| bool | getActualVelocityBiquadFilterACoeff2 (int32_t &coeff) noexcept |
| |
| bool | setActualVelocityBiquadFilterBCoeff0 (int32_t coeff) noexcept |
| |
| bool | getActualVelocityBiquadFilterBCoeff0 (int32_t &coeff) noexcept |
| |
| bool | setActualVelocityBiquadFilterBCoeff1 (int32_t coeff) noexcept |
| |
| bool | getActualVelocityBiquadFilterBCoeff1 (int32_t &coeff) noexcept |
| |
| bool | setActualVelocityBiquadFilterBCoeff2 (int32_t coeff) noexcept |
| |
| bool | getActualVelocityBiquadFilterBCoeff2 (int32_t &coeff) noexcept |
| |
|
| bool | getTorqueFluxCombinedTargetValues (uint32_t &value) noexcept |
| |
| bool | getTorqueFluxCombinedActualValues (uint32_t &value) noexcept |
| |
| bool | getVoltageDqCombinedActualValues (uint32_t &value) noexcept |
| |
| bool | getIntegratedActualTorqueValue (uint32_t &value) noexcept |
| |
| bool | getIntegratedActualVelocityValue (uint32_t &value) noexcept |
| |
Subsystem for FOC control: torque/flux, velocity, position loops, open‐loop support, and reference switch / stop-event parameters.
Covers TMCL parameters:
- Torque/Flux PI (104–120)
- Velocity PI (123–139)
- Position PI (142–157)
- Open‐loop (45–47)
- Ref switch & stop (161–170)