|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
The modelled pack, motor and propeller, see telemetry_sim.h. More...
Functions | |
| void | telemetry_sim_init (telemetry_sim_t *s, const telemetry_sim_cfg_t *cfg) |
| Sets up the model from its configuration. | |
| void | telemetry_sim_step (telemetry_sim_t *s, float throttle_pct, float dt_s, bench_state_t *out) |
Advance by dt_s at throttle_pct and fill out. | |
The modelled pack, motor and propeller, see telemetry_sim.h.
SPDX-License-Identifier: MIT
| void telemetry_sim_init | ( | telemetry_sim_t * | s, |
| const telemetry_sim_cfg_t * | cfg ) |
Sets up the model from its configuration.
| s | The model to set up. |
| cfg | The configuration, or NULL for the default. |
| void telemetry_sim_step | ( | telemetry_sim_t * | s, |
| float | throttle_pct, | ||
| float | dt_s, | ||
| bench_state_t * | out ) |
Advance by dt_s at throttle_pct and fill out.
Peaks are accumulated into out as the IOmcu accumulates them for the BENCH page, so the screen sees the same behaviour from both sources.
| s | The model. |
| throttle_pct | The throttle, in percent. |
| dt_s | The time step, in s. |
| out | Receives the readings. |