Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simulator_mavlink: take care of battery percentage rounding errors
In 5bb9bab I made MAVLink send a rounded up integer instead of rounded down. This makes sense in practice because the low battery reactions happen exactly when the reported number switches in the UI. But here we want to provoke an exact 50% in the UI so we stop counting at 49.9%, it get's rounded up and we see the expected result.
- Loading branch information