-
Notifications
You must be signed in to change notification settings - Fork 23
RadioPreset
Talbot edited this page Nov 28, 2021
·
1 revision
RadioPresetT
A extremely specific control for using a 4 pin BCD device to control a DCS radio frequency in a very specific and hardcoded way.
NOT recommended for use. If you think you need this, please raise an Issue so we can come up with a more universal solution.
Each increment of the BCD counter increments the DCS frequency by 0.05, and only supports positions 0 through 20 covering frequencies 0.00 through 1.00 in 0.05 increments.
RadioPreset
RadioPresetT(const char* msg, char pinA, char pinB, char pinC, char pinD, char pinE)
- msg - The message to send to DCS when the value is changed.
- pinA - The pin connected to the Least Significant Digit.
- pinB - The pin connected to the second Least Significant Digit.
- pinC - The pin connected to the third Least Significant Digit.
- pinD - The pin connected to the fourth Least Significant Digit.
- pinE - The pin connected to the Most Significant Digit.
template <unsigned long pollIntervalMs = POLL_EVERY_TIME>
- pollIntervalMs - Time in milliseconds between times this control should be sampled. Increase for less time sensitive controls to lower the CPU load required for this control.
Use case for this control is not known.