ButterFlight / butterflight

GNU General Public License v3.0
106 stars 26 forks source link

Debug_Mode=Notch Reporting as Airmode in Cleanflight/Betaflight BlackBox Explorers #52

Closed spatzengr closed 6 years ago

spatzengr commented 6 years ago

Butterflight logs that are set to record a debug mode = Notch, is being recognized as Airmode in BBE. What I don't understand is that it works fine in Betaflight 3.3 RC1, RC2, RC3 and Stable for which I understand Butterflight was forked off sometime during that time period. One potential: I'm noting that the logs are being recognized by BBE as Cleanflight logs vs. Betaflight logs. Maybe if that were changed the downstream would work correctly? If my memory is serving me well, at some point, Notch and Airmode positions were swapped - or general reordering, etc... - made some old Betaflight logs do the same. But it was fixed in BBE, but maybe only or logs recognized as Beaflight logs?

See the attached logs for an example of the issue. Also note this is occurring with Cleanflight BBE 2.5.11, Cleanflight BBE 3.0.0-rc1 and Betaflight BBE 3.0.0-rc1.

Blackbox.zip

Edited: Ahhh, now i see Butter was forked from kidBrazel's fork of Betaflight, not direct from Betaflight/Betaflight. So, maybe just grab the Betaflight/Betaflight BB log recording code?

kidBrazil commented 6 years ago

Thanks @spatzengr we will be looking into the issue.

brucesdad13 commented 6 years ago

Debug modes are based on a enumerator and differ between releases and forks. Probably need a Butterflight specific fork of the Blackbox explorer also.

spatzengr commented 6 years ago

Can't it be baked into the existing BBE, like it is for Cleanflight, Betaflight, and iNAV?

Seems like a better use of human resource vs. splitting for such a utility tool that doesn't get that much attention as it stands.

EDITED: My take is that the existing BBE doesn't know what it is (?) so it goes to the default of Cleanflight (?) where the order of debug modes are not the same as Betaflight. We need it to be recognized as Betaflight as it is a fork (mostly) of Betaflight. OR have its own enumerator code in the existing BBE.

There is lots of resource on the Betaflight train. I would hitch my wagon to that and just focus on filtering and flight performance. Don't get bogged down with your own BBE, etc..., etc... (just my 2-cents of course and I don't know code detail like you guys, so probably only worth 1-cent ... or less).

kidBrazil commented 6 years ago

@spatzengr @brucesdad13 - Thanks for the info I think I will just fork BBE so I can make a PR to include BTTR as one of the enumerators. THat way we wont default to Cleanflight.

kidBrazil commented 6 years ago

@spatzengr This still an issue with the new configurator with BB built in?

wesk-ms commented 6 years ago

@kidBrazil, fwiw, I'm unable to open any Butterflight logs in the 10.4.0 configurator that have any debug settings enabled. Disable the debug settings in the CLI, go fly, and those logs open just fine. I'm using 3.5.0 on a Matek F722. Was trying to use the notch debug settings to fine tune some things.

When a debug level is configured and you try to open the log, the configurator becomes unresponsive and the log never opens. No error message is displayed and you have to close the app to switch back to the configurator.

wesk-ms commented 6 years ago

Update: Looks like this is the root cause of BBE hanging when opening certain logs: https://github.com/betaflight/betaflight/issues/5625 https://github.com/betaflight/betaflight/pull/5645

spatzengr commented 6 years ago

@kidBrazil It was working fine for the 1st edition of the configurator that had the built-in BBE. I have not checked subsequent versions of the configurator.

orneryd commented 6 years ago

this is coming after we finalize the release 3.5.1. I have already merged it up into the imuf_107_odin_bef_rebase branch