Motion Master 6.0.0-alpha.86
Next-generation motion control software
Loading...
Searching...
No Matches
mm::node::PhaseResistanceResult Struct Reference

What phase resistance measurement (command 8) measured. More...

#include <somanet_drive.h>

Public Member Functions

std::string describe () const
 One line describing the measurement, ready to put in front of a user.
 

Public Attributes

uint32_t milliohms = 0
 Phase resistance in mΩ, exactly as the drive reported it.
 

Detailed Description

What phase resistance measurement (command 8) measured.

The drive reports a whole number of milliohms and that is what is stored: the unit is named in the member rather than applied to it, because scaling to ohms here would invent precision the drive never reported and force every consumer to scale back to compare two readings.

Not the unit 0x2003:03 stores, which is µΩ — so keeping a measurement means multiplying by 1000, exactly as for the torque constant. Two of the three winding objects differ from their command's unit this way and the third does not, which is why each says so on itself rather than relying on a rule; see somanet::kMotorPhaseResistance.

Member Function Documentation

◆ describe()

std::string mm::node::PhaseResistanceResult::describe ( ) const

One line describing the measurement, ready to put in front of a user.

Member Data Documentation

◆ milliohms

uint32_t mm::node::PhaseResistanceResult::milliohms = 0

Phase resistance in mΩ, exactly as the drive reported it.


The documentation for this struct was generated from the following files: