Skip to content

File syn_rc_curve.c

FileList > control > syn_rc_curve.c

Go to the source code of this file

Zero-Heap RC Stick Exponential (Expo) & Deadband Curve Mapper Implementation.

  • #include "syntropic/control/syn_rc_curve.h"

Public Functions

Type Name
uint16_t syn_rc_curve_apply (uint16_t input_us, const SYN_RCCurve_Config * config)
Apply deadband, exponential response, and dual-rate scaling to raw RC channel (1000..2000 us).

Public Functions Documentation

function syn_rc_curve_apply

Apply deadband, exponential response, and dual-rate scaling to raw RC channel (1000..2000 us).

uint16_t syn_rc_curve_apply (
    uint16_t input_us,
    const SYN_RCCurve_Config * config
) 

Parameters:

  • input_us Raw input pulse width in microseconds (1000..2000 us).
  • config Pointer to RC curve configuration.

Returns:

Scaled & shaped output in microseconds (clamped 1000..2000 us).



The documentation for this class was generated from the following file src/syntropic/control/syn_rc_curve.c