File NeedleGauge.h
FileList > Firmware > Libraries > PanelGroup > Outputs > NeedleGauge > NeedleGauge.h
Go to the source code of this file
Pointer-gauge output: maps one DCS-BIOS value to a motor position. More...
#include <PanelGroup.h>#include <Drivers/MotorDriver/MotorDriver.h>
Namespaces
| Type | Name |
|---|---|
| namespace | OpenSkyhawk |
Classes
| Type | Name |
|---|---|
| struct | GaugeCal Value → position calibration for one gauge. |
| class | NeedleGauge DCS-driven pointer gauge over any MotorDriver backend. |
Detailed Description
A thin OutputBase that composes a MotorDriver (StepperMotor today; a servo or step/dir driver later) and does only the gauge semantics — decode the 16-bit DCS-BIOS value, map it to a driver-native position (linear or piecewise-calibrated), and command the motor. All low-level drive, acceleration, and homing live in the MotorDriver, so 119 A-4E pointer gauges share one class over any backend.
Usage (per-sketch wiring):
StepperMotor driftMotor(PinRef(PA0), PinRef(PA1), PinRef(PA4), PinRef(PA5), DRIFT_CFG);
NeedleGauge drift(A_4E_C_APN153_DRIFT_GAUGE, A_4E_C_APN153_DRIFT_GAUGE_AM,
driftMotor, DRIFT_CAL);
Version:
0.1.0
Copyright:
GPL-2.0-only — see Firmware/LICENSE
The documentation for this class was generated from the following file Firmware/Libraries/PanelGroup/Outputs/NeedleGauge/NeedleGauge.h