mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 10:13:33 +08:00
px4iofirmware: only set mixer trims when they got updated
This commit is contained in:
committed by
Lorenz Meier
parent
5500dfc550
commit
e0dc5ae7f4
@@ -58,6 +58,8 @@ static int registers_set_one(uint8_t page, uint8_t offset, uint16_t value);
|
||||
static void pwm_configure_rates(uint16_t map, uint16_t defaultrate, uint16_t altrate);
|
||||
|
||||
bool update_mc_thrust_param;
|
||||
bool update_trims;
|
||||
|
||||
/**
|
||||
* PAGE 0
|
||||
*
|
||||
@@ -405,6 +407,8 @@ registers_set(uint8_t page, uint8_t offset, const uint16_t *values, unsigned num
|
||||
values++;
|
||||
}
|
||||
|
||||
update_trims = true;
|
||||
|
||||
break;
|
||||
|
||||
case PX4IO_PAGE_DISARMED_PWM: {
|
||||
|
||||
Reference in New Issue
Block a user