You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All components are plugins (see flapsim plugins). They exchange named
signals: a sensor publishes imu/gyro, a controller reads it and publishes
cmd/stroke/frequency_hz, the stroke actuator consumes the command. Plugins
run in insertion order within each phase (pre_control for sensors,
control for controllers, actuate for actuators, forces for aero).
Actuators
Plugin
What it does
Commands
Signals
actuator/sinusoidal_stroke
Kinematic q = d A sin(2 pi f t) on stroke joints (kinematic writes velocities, position_only does not)
frequency_hz, amplitude_rad
frequency_hz, amplitude_rad, phase
actuator/pd_position
Gravity-compensated PD with torque limit, or kinematic hold; joints carry a role label
<joint> target
<joint>
actuator/servo
pd_position with a rate-limited, first-order lagged target
<joint> desired
<joint>, <joint>/desired
actuator/dc_motor_crank
DC motor (i = (V - k_e w)/R, tau = k_t i), gearbox N, crank q = d A sin(theta_c); loaded by the aero torque about the stroke joints
Every sensor samples at rate_hz through a Conditioner: first-order
low-pass tau, pure delay delay_s, Gaussian noise_std, a bias drawn per
episode from bias_range, and quantisation resolution.
Plugin
Measures
Defaults
sensor/imu
euler (low-passed attitude), gyro (body rates), accel (specific force R^T (a - g)), quat