Self-describing velocity value with explicit unit.
More...
#include <tmc51x0_types.hpp>
Self-describing velocity value with explicit unit.
Carries both the velocity value and its unit, eliminating ambiguity in configuration and ensuring proper unit conversions throughout the driver.
@ RPM
Revolutions per Minute (Velocity only, typically)
Self-describing velocity value with explicit unit.
Definition tmc51x0_types.hpp:1778
static constexpr VelocityValue FromRPM(float v) noexcept
Definition tmc51x0_types.hpp:1794
◆ VelocityValue() [1/2]
| tmc51x0::VelocityValue::VelocityValue |
( |
| ) |
|
|
default |
◆ VelocityValue() [2/2]
| constexpr tmc51x0::VelocityValue::VelocityValue |
( |
float | v, |
|
|
Unit | u ) |
|
inlineconstexprnoexcept |
Construct with value and unit.
◆ FromDeg()
| static constexpr VelocityValue tmc51x0::VelocityValue::FromDeg |
( |
float | v | ) |
|
|
inlinestaticconstexprnoexcept |
◆ FromMm()
| static constexpr VelocityValue tmc51x0::VelocityValue::FromMm |
( |
float | v | ) |
|
|
inlinestaticconstexprnoexcept |
◆ FromRad()
| static constexpr VelocityValue tmc51x0::VelocityValue::FromRad |
( |
float | v | ) |
|
|
inlinestaticconstexprnoexcept |
◆ FromRevPerSec()
| static constexpr VelocityValue tmc51x0::VelocityValue::FromRevPerSec |
( |
float | v | ) |
|
|
inlinestaticconstexprnoexcept |
◆ FromRPM()
| static constexpr VelocityValue tmc51x0::VelocityValue::FromRPM |
( |
float | v | ) |
|
|
inlinestaticconstexprnoexcept |
◆ FromSteps()
| static constexpr VelocityValue tmc51x0::VelocityValue::FromSteps |
( |
float | v | ) |
|
|
inlinestaticconstexprnoexcept |
◆ unit
◆ value
| float tmc51x0::VelocityValue::value {0.0f} |
The documentation for this struct was generated from the following file: