Open albfan opened 4 years ago
If you are using the nightly after 1 mar 2019:
Find the code:
elif value == 0x7e:
self.model = "Devo7e"
inp = ["AIL", "ELE", "THR", "RUD", "HOLD0", "HOLD1", "FMODE0", "FMODE1"]
rtc = ["Clock"]
else:
and replace with
elif value == 0x7e:
self.model = "Devo7e"
inp = ["AIL", "ELE", "THR", "RUD", "HOLD0", "HOLD1", "FMODE0", "FMODE1"]
rtc = ["Clock"]
elif value == 0x18:
self.model = "Devo7e"
inp = ["AIL","'ELE", "THR", "RUD", "AUX4", "AUX5", "HOLD0", "HOLD1", "FMODE0", "FMODE1", "SW_A0", "SW_A1", "SW_A2",
"SW_B0", "SW_B1", "SW_B2", "SW_C0", "SW_C1", "SW_C2", "SW_D0", "SW_D1", "SW_D2","SW_E0", "SW_E1", "SW_F0", "SW_F1",
"SW_G0", "SW_G1", "SW_H0", "SW_H1"]
rtc = ["Clock"]
else:
If you are using stock or eariler nightly:
Replace the line: inp = ["AIL", "ELE", "THR", "RUD", "HOLD0", "HOLD1", "FMODE0", "FMODE1"]
with
inp = ["AIL","'ELE", "THR", "RUD", "AUX4", "AUX5", "HOLD0", "HOLD1", "FMODE0", "FMODE1", "SW_A0", "SW_A1", "SW_A2",
"SW_B0", "SW_B1", "SW_B2", "SW_C0", "SW_C1", "SW_C2", "SW_D0", "SW_D1", "SW_D2","SW_E0", "SW_E1", "SW_F0", "SW_F1",
"SW_G0", "SW_G1", "SW_H0", "SW_H1"]
Than give it a try.
You should maintain adequate tabs, as they are meaningfull in Python, simple copy-paste of above code might not work.
As I am not a Python programmer I ported that script to Delphi and made GUI for it. These changes was backported back to Python. Not tested, use at your own risk ;-)
Signature on your file shows that you are using the older firmware, so use the second solution. Find
elif value == 0x7e:
And replace the next inp= line according to previous post.
Will give it a try, and if works try to generalize the existing script and make a PR
Tygrys-1 no changes with your suggestion, seems all my data goes trhough 0x7e
. I will make small test and see if results match my actions. If so I will do a MR.
Any initiative to record this as a blackbox log (data each millisecond or so?)
Using deviationtx on a jumper t8sg v2 plus I cannot parse any helpful info with datalog2csv.py
From this file:
datalog.zip
After looking around and fix things here and there I came out with:
which for this command:
./datalog2csv.py -b datalog.bin -o datalog.csv -w1
gives me:
I'm just interested in AIL,ELE,THR,RUD, and I can take a look into
datalog.c
but if someone sees how to fix this from this input file it would be quicker and fixed for everyone.The final goal is to log something as blackbox, for what a rate of 1s seems not enough, is there any limit to log this at 0,1s or so?
With that log would be great to create an overlay with sticks for fpv videos:
https://www.youtube.com/watch?v=NrJ4TcIT_h4