Battery current reading implemented.
Workaround to compile on FMUv1.
sensors: fixed bug discharged battery current
sdlog2: log all low-level battery parameters in BATT message
Use discharged current to estimate remaining battery charge if capacity is known
Fix mavlink battery remaining scale
sdlog2: BATT message format fixed
sdlog2: BATT message bug fixed
mavlink battery current scale fix
sensors: minor cleanup, bugs fixed, use unsigned long for discharged integration to avoid rounding errors.
Track raw battery voltage and filtered battery voltage separately. Estimate remaining battery as min(voltage_estimate, discharged_estimate). Battery voltage LPF time increased.
Merge branch 'master' into batt_fixes
sensors: discharged current type changed to uint64
Add conversions and mixer tests. Work in progress
Merge branch 'master' of github.com:PX4/Firmware into unit_tests
Added missing HRT functionality, cleanup
Fixed pwm limit command to behave as originally designed. The initial hold time produced random values (e.g. 40000 instead of 1500) during the INIT_TIME (0.5s) phase
Turned the mixer test into a real test, now also cross checking post mix results
Missing line break at EOF
Testing disarming and rearming as well now, removed magic numbers in favor of constants