137 float slew_us_per_ms;
#define s
Short name for esc_stick_s inside the five stick-class files.
Definition esc_stick_panel_int.h:295
void servo_pair_defaults(servo_pair_cfg_t *cfg, uint16_t centre_us)
Defaults for two servos on one surface.
Definition servo_sim.c:144
void servo_pair_init(servo_pair_t *p, const servo_pair_cfg_t *cfg)
Start the two-servo model with both servos at the centre.
Definition servo_sim.c:160
float servo_sim_step(servo_sim_t *s, uint16_t cmd_us, uint32_t now_ms)
Advance the model to now_ms with the servo commanded to cmd_us, and return the current its sensor wou...
Definition servo_sim.c:55
float servo_pair_step(servo_pair_t *p, uint16_t cmd_a_us, uint16_t cmd_b_us, uint32_t now_ms)
Advance both servos to now_ms with the commands given, and return the total current the pair draws.
Definition servo_sim.c:215
void servo_sim_defaults(servo_sim_cfg_t *cfg)
A standard servo on a well-set-up surface, binding at 1150 and 1880 us.
Definition servo_sim.c:12
float servo_pair_disagreement(const servo_pair_t *p, uint16_t cmd_a_us, uint16_t cmd_b_us)
How far apart the two hold the surface, in microseconds. Hardware cannot report this; the search is b...
Definition servo_sim.c:172
void servo_sim_init(servo_sim_t *s, const servo_sim_cfg_t *cfg)
Start the single-servo model at the middle of its stops.
Definition servo_sim.c:28
A pair, coupled through the surface they both drive.
Definition servo_sim.h:122
float travel_a
What the pair draws while either of them is still travelling.
Definition servo_sim.h:136
int16_t offset_us
How far servo B's real centre sits from where it is commanded.
Definition servo_sim.h:125
float travel
B's real throw as a multiple of what it is commanded. 1.0 is right.
Definition servo_sim.h:128
float free_a
What the pair draws with nothing to fight about.
Definition servo_sim.h:130
float fight_a_per_us
Extra total current per microsecond of disagreement.
Definition servo_sim.h:132
Definition servo_sim.h:141
Definition servo_sim.h:23
float travel_a
What the servo draws while it is slewing.
Definition servo_sim.h:47
uint16_t stiff_lo_us
A stiff patch: a band of travel that costs more to hold than the rest without being the end of anythi...
Definition servo_sim.h:59
uint16_t bind_us
How far past the stop the current takes to go from free to stall.
Definition servo_sim.h:37
float stall_a
Definition servo_sim.h:33
uint16_t limit_lo_us
The servo's own travel limits, as the pulse widths they stop it at: a command past one moves the horn...
Definition servo_sim.h:72
float slew_us_per_ms
Definition servo_sim.h:63
uint16_t stop_lo_us
Where the linkage binds, as a pulse width.
Definition servo_sim.h:29
float noise_a
Definition servo_sim.h:64
float free_a
Definition servo_sim.h:32
Definition servo_sim.h:76
uint32_t seed
Definition servo_sim.h:80
uint32_t last_ms
Definition servo_sim.h:79
bool started
Definition servo_sim.h:81
float position_us
Definition servo_sim.h:78