mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 16:43:34 +08:00
use trim values to set mixer:scaler.offset
clamp mixer output offset to [-.2,.2] ([-2000, 2000] in mixer file) add 8 main PWM trim parameters add long desc to parameters and bump minor parameter version
This commit is contained in:
committed by
Lorenz Meier
parent
619efa7b45
commit
a0c8a78a14
@@ -212,6 +212,13 @@ mixer_tick(void)
|
||||
r_status_flags &= ~(PX4IO_P_STATUS_FLAGS_FAILSAFE);
|
||||
}
|
||||
|
||||
/*
|
||||
* Set simple mixer trim values
|
||||
* (there should be a "dirty" flag to indicate that r_page_servo_control_trim has changed)
|
||||
*/
|
||||
mixer_group.set_trims(r_page_servo_control_trim, PX4IO_SERVO_COUNT);
|
||||
|
||||
|
||||
/*
|
||||
* Run the mixers.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user