mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-02 19:53:57 -04:00
SITL: fixed unselection bitmask bug in XPlane
This commit is contained in:
parent
538410205b
commit
eaf5676636
@ -287,8 +287,13 @@ bool XPlane::receive_data(void)
|
||||
|
||||
if (data_mask != required_mask) {
|
||||
// ask XPlane to change what data it sends
|
||||
select_data(data_mask & ~required_mask, required_mask & ~data_mask);
|
||||
goto failed;
|
||||
uint64_t usel = data_mask & ~required_mask;
|
||||
uint64_t sel = required_mask & ~data_mask;
|
||||
usel &= ~unselected_mask;
|
||||
if (usel || sel) {
|
||||
select_data(usel, sel);
|
||||
goto failed;
|
||||
}
|
||||
}
|
||||
position = pos + position_zero;
|
||||
update_position();
|
||||
|
Loading…
Reference in New Issue
Block a user