std.math.control
The module module std.math.control, read from deploy/std/math/control.rho. This page is generated from the source, so it describes what the code declares.
Functions
complementary_init()
fn complementary_init(alpha: f64) Complementary
complementary_update()
fn complementary_update(filter: Complementary, accelerometer_angle: f64, gyro_rate: f64, dt: f64) Complementary
kalman1d_init()
fn kalman1d_init(initial: f64, process_noise: f64, measurement_noise: f64) Kalman1D
kalman1d_update()
fn kalman1d_update(filter: Kalman1D, measurement: f64) Kalman1D
lowpassinit()
fn low_pass_init(alpha: f64, initial: f64) LowPass
lowpassupdate()
fn low_pass_update(filter: LowPass, sample: f64) LowPass
movingaverage4init()
fn moving_average4_init() MovingAverage4
movingaverage4update()
fn moving_average4_update(filter: MovingAverage4, sample: f64) MovingAverage4
movingaverage4value()
fn moving_average4_value(filter: MovingAverage4) f64
pid_init()
fn pid_init(kp: f64, ki: f64, kd: f64, output_min: f64, output_max: f64) PID
pid_output()
fn pid_output(pid: PID, setpoint: f64, measurement: f64) f64
pidsetderivative_filter()
fn pid_set_derivative_filter(pid: PID, alpha: f64) PID
pid_update()
fn pid_update(pid: PID, setpoint: f64, measurement: f64, dt: f64) PID
Structs
| Struct | Fields |
|---|---|
| Complementary | alpha: f64, angle: f64 |
| Kalman1D | estimate: f64, covariance: f64, processnoise: f64, measurementnoise: f64 |
| LowPass | alpha: f64, value: f64, initialized: bool |
| MovingAverage4 | a: f64, b: f64, c: f64, d: f64, count: u32, index: u32 |
| PID | kp: f64, ki: f64, kd: f64, integral: f64, previouserror: f64, derivative: f64, derivativealpha: f64, outputmin: f64, outputmax: f64, integralmin: f64, integralmax: f64 |