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

One sample of somanet::HrdData::kEncoderRawData. More...

#include <somanet_drive.h>

Public Attributes

uint32_t raw = 0
 The 32-bit word as the file holds it.
 
uint16_t masterCount = 0
 Bits 0-13: the master track's count.
 
uint16_t noniusCount = 0
 Bits 14-27: the nonius track's count.
 

Detailed Description

One sample of somanet::HrdData::kEncoderRawData.

raw is the word the encoder reported and the two counts are the fields packed inside it — both are carried because the counts are what a calibration works on, while the raw word is the only lossless record (the firmware specification describes bits 0-27 and says nothing about the top four).

Member Data Documentation

◆ masterCount

uint16_t mm::node::HrdEncoderSample::masterCount = 0

Bits 0-13: the master track's count.

◆ noniusCount

uint16_t mm::node::HrdEncoderSample::noniusCount = 0

Bits 14-27: the nonius track's count.

◆ raw

uint32_t mm::node::HrdEncoderSample::raw = 0

The 32-bit word as the file holds it.


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