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
Added tests for mount / fsync / reboot
Auto-restarting mount test if config file present
Fixed tests config
Create test config for FMUv1
Improved mount test
Do not require suffixed constants
Merge branch 'mount_tests' of github.com:PX4/Firmware into mount_tests