Skip to content

Conversation

@shellixyz
Copy link
Collaborator

Current sensor offset was not taken into account in BB log so if current_sensor_offset was different from 0 logged current was always wrong.

@shellixyz shellixyz force-pushed the fix_current_bb_loggin_improve_battery_code branch from af93c55 to 0e676c3 Compare July 3, 2018 15:33
@fiam
Copy link
Member

fiam commented Jul 5, 2018

@shellixyz looks like this conflicted with the isAmperage() changes. Can you please rebase?

@shellixyz shellixyz force-pushed the fix_current_bb_loggin_improve_battery_code branch from 0e676c3 to 784c1b8 Compare July 5, 2018 14:13
@shellixyz
Copy link
Collaborator Author

Rebased

@fiam fiam added this to the 2.0 milestone Jul 7, 2018
amperageLatestADC = adcGetChannel(ADC_CURRENT);
amperageLatestADC = pt1FilterApply4(&amperageFilterState, amperageLatestADC, AMPERAGE_LPF_FREQ, timeDelta * 1e-6f);
amperage = currentSensorToCentiamps(amperageLatestADC);
case CURRENT_SENSOR_ADC:;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra ';'

@shellixyz shellixyz force-pushed the fix_current_bb_loggin_improve_battery_code branch from 784c1b8 to e311f4a Compare July 7, 2018 21:48
@fiam fiam merged commit 9043a95 into iNavFlight:development Jul 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants