-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Flight mode column to the CSV file #23
Conversation
…lable since it's a Main field
Please fix the following compilation warning:
The ISO C standard defines that an enum is of width int. We prefer to be both warning free and standard compliant. Where do the values after MANUAL_MODE come from (they are off by one compared to firmware So we have the situation with a log including a waypoint flight, we have:
It would also be preferable if the new column as not called |
As discussed on TG previously, the actual blackbox variable that is stored in the BBL is only 32 bits wide, so defining non-standard enums beyond (1<<31) is pointless (as well as non-standard). From a BBL with 3D criuse:
|
Thanks the feedback Jonathan. I just fixed the problems. |
Daniel, much better. May I suggest a couple more small improvements:
|
So part of the problem is nomenclature. What's called homeDirection is relative bearing and azimuth is the reciprocal bearing (and incorrect). |
Daniel, I've been playing around with another approach to the geodetics that for my examples gives somewhat (IMO) resutls, such that especially for flights involving lots of turns, it gets more accurate total distances and energy usage. Let me know when you've got as far as you're content with your current PR, and I'll rebase an experimental branch for you to try on what you've done so far plus my experiment. |
…ust the simplifiedMode to correctly use the enums and failsafe state.
Hello Jonathan, thanks again for your valuable feedback. I fixed this points today. It's already on the branch. You can merge if you like. Regarding the problems with the homeDirection and azimuth, I can reproduce using the two log files you provided, but with my log file everything works as expected... Today was a busy day and I could not give this problem the needed attention. Let me know if you'll take a look on this or if you like I try to fix. |
Daniel, tomorrow I'll merge your PR "as is" and rebase my experiential geodetics on top of it. Then you can test that branch on your files and maybe we reach a consensus. |
To be continued ... |
Daniel, please try #24, in particular whether its idea of relative home direction (clockwise from the vehicle) is what you expect. |
Add a text column "simplifiedMode" to the CSV file.
It's a 4-character active flight mode indicator, almost identical to the INAV Flight Mode OSD element.
Possible values are:
!FS!
MANU
RTH
A+PH
3CRS
CRS
PH
AH
WP
ANGL
HOR
It'll be useful to display the active flight mode on a overlay tool that I'm planning to publish soon (a command-line dashware-like tool)
Also, this change:
--dashware
command line option.Distance (m)
,homeDirection
,mAhPerKm
,cumulativeTripDistance
andazimuth
available on the CSV file when the--merge-gps
command line option is used.rssi (%)
andThrottle (%)
always available, since this fields are not related to GPS data.