rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
sense_enc_t Struct Reference

The output encoder as last read. More...

#include <sense_sched.h>

Data Fields

as5600_t dev
bool have_angle
uint8_t status
uint16_t raw
uint16_t samples
bool have_mag
uint8_t agc
uint16_t magnitude
uint32_t slots
uint16_t anchor
uint64_t anchor_ms
bool anchored

Detailed Description

The output encoder as last read.

Field Documentation

◆ agc

uint8_t sense_enc_t::agc

automatic gain control, as last read

◆ anchor

uint16_t sense_enc_t::anchor

the count the still time is held to

◆ anchor_ms

uint64_t sense_enc_t::anchor_ms

when it was set

◆ anchored

bool sense_enc_t::anchored

an anchor is set

◆ have_angle

bool sense_enc_t::have_angle

raw holds a reading of this set-up

◆ have_mag

bool sense_enc_t::have_mag

whether magnitude holds a reading

◆ magnitude

uint16_t sense_enc_t::magnitude

magnet magnitude, as last read

◆ raw

uint16_t sense_enc_t::raw

RAW ANGLE, 0 to 4095

◆ samples

uint16_t sense_enc_t::samples

angle reads taken, modulo 65536

◆ slots

uint32_t sense_enc_t::slots

encoder slots taken

◆ status

uint8_t sense_enc_t::status

STATUS as last read


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