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
Merged origin/master into batt_fixes
Added missing file close on test command
Added support for N MTD / ramtron partitions / files
Support for better param printing
Merge branch 'mtd' into mtd_multi
Enabled MTD partitions, successfully tested params
Compile / bugfixes on MTD commandline tool