Repository navigation
Replies: 3 comments
|
Blackbox records current (and power) as logged by the FC. The sensor is irrelevant. |
|
For me, this line of code from the blackbox.c file excludes all current sensors except CURRENT_SENSOR_ADC. case FLIGHT_LOG_FIELD_CONDITION_AMPERAGE: Among others, my CURRENT_SENSOR_ESC is excluded from logging by BlackBox because of this code. I wonder why. |
|
You read the code correctly. Up to and including 9.x, the case FLIGHT_LOG_FIELD_CONDITION_AMPERAGE:
return feature(FEATURE_CURRENT_METER) && batteryMetersConfig()->current.type == CURRENT_SENSOR_ADC;The value itself comes from It is fixed by PR #11902 (merged into case FLIGHT_LOG_FIELD_CONDITION_AMPERAGE:
return isAmperageConfigured(); // FEATURE_CURRENT_METER && current.type != NONEOptions:
To check: after flashing, record a short log and open it in Blackbox Explorer. The field list (and the CSV export) should now contain |
Uh oh!
There was an error while loading. Please reload this page.
My configuration:
When my F405 Wing is connected to a PC with iNavConfigurator, I can see the correct current and voltage readings from the ESC in the 'Configuration' tab. I've selected 'ESC' as the source for both measurements. Up to this point, everything is working correctly.
In the "Blackbox" tab, I enabled all logging options and reduced the recording frequency to 1/5 (20%).
My problem is that in the BlackBox logs, I can see escTemperature, escRPM, and vbat (which is read from the ESC), but I can't find the current value anywhere.
So as in the topic - can 'BlackBox' record motor current if this measurement comes from ESC (KISS)?
Witold
All reactions