- Posts: 610
HontaiTec Quadcopters (HT F801, HT F803,...)
- Durete
- Topic Author
- Offline
I will compile the build with latest code in a while
Great job Hexfet!!!
Please Log in or Create an account to join the conversation.
- Durete
- Topic Author
- Offline
- Posts: 610
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1891
Would you like to revisit the driven trims and see if there's an effect on pitch and roll? Durete, probably would be quickest if you could do the same code changes you did with the rudder channel to check the trim direction on roll and pitch. Then see if they have the desired effect on the copter. Some channel captures at 8MHz sample rate or higher would be nice to confirm the previous ones that had the shifted data.
There's still the mystery of the yaw drift, which seemed to be present even in the build that sent the exact same center values as the stock tx.
Y'all are doing the hard work!
Please Log in or Create an account to join the conversation.
- Durete
- Topic Author
- Offline
- Posts: 610
I will assembly now my quadcopter, remove the logic analyzer from the RX and attach again to stock TX to capture Hi Res captures (16mhz is ok?) from sticks, since the functions are working perfect.
Later will start to compile a build including the driving trims to figure out the right direction.
Could be related to previous faulty captures (shifted data) the yaw drift issue? Our yaw is perfectly stable with stock TX and Greenfly and me have drift to one side using Deviation.
We all are doing the hard work!
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1891
I'd suggest going ahead with the roll and pitch tests now. After we settle that we can revisit the drift - maybe start with retrying forcing the same center values as the stock tx.
mildly interesting: the unused first three bytes of the txid in ascii are "LK:". Developer's initials? "Lookup Key"?
Please Log in or Create an account to join the conversation.
- greenfly
- Offline
- I have installed and checked all of the requirement for building on my (Windows) PC.
- I have confirmed my environment by downloading a zip of the latest branch under bitbucket.org/deviationtx/deviation and building devo7e.dfu with no errors.
- I get make errors when I do the same with bitbucket.org/hexfet/deviation (See attached screenshot)
Any ideas what I am doing wrong?
Thanks.
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1891
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
launchpad.net/gcc-arm-embedded/4.8/4.8-2...1-20140314-win32.exe
Please Log in or Create an account to join the conversation.
- greenfly
- Offline
OK, I am not a bitbucket user so getting a copy of the latest is a mystery to me. I was planning on learning mercurial later when I might actually have something to contribute... but for now... I just want to get the latest source to build when you check in your changes. Like Durete.
I guess I could pose many of my questions to him as well.
Anyway, thanks for any assistance you can provide.
Please Log in or Create an account to join the conversation.
- greenfly
- Offline
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1891
Bitbucket has a good intro to mercurial.
Please Log in or Create an account to join the conversation.
- greenfly
- Offline
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Offline
- Posts: 1016
Please Log in or Create an account to join the conversation.
- Durete
- Topic Author
- Offline
- Posts: 610
... and GreenflySeByDocKy wrote: Great team job HexFet & Durete
Thanks!
I will start to test pitch/roll trims packets when return home from work.
Please Log in or Create an account to join the conversation.
- Durete
- Topic Author
- Offline
- Posts: 610
I have a question about your script posted some pages ago (spi_format.rb).
According the file extension, seems to be a Ruby Language file.
Should I install the Ruby environmet to use?
Can I use from my DeviationTx environment?
Thanks!
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1891
Filter just the data packets with the -m option: -m A0 for tx captures, -m 61 for rx. Output file is in csv format. For example:
ruby path/to/spi_format.rb -m A0 "input csv filename" "output filename"
Please Log in or Create an account to join the conversation.
- Durete
- Topic Author
- Offline
- Posts: 610
Please Log in or Create an account to join the conversation.
- greenfly
- Offline
BTW: Until I get familiar with the source, can you tell me which file(s) you are working in for all of this testing?. I'm sure it must be evident somehow, but for this old Microsoft developer I have not learned enough yet.
Thanks
Please Log in or Create an account to join the conversation.
- Durete
- Topic Author
- Offline
- Posts: 610
packet[7] = scale_channel(CHANNEL1, -32, 32); // Aileron Trims
packet[8] = scale_channel(CHANNEL4, -32, 32); // Rudder Trims
packet[9] = scale_channel(CHANNEL2, -32, 32); // Elevator Trims
And checked the trim captures:
Aileron Left. Fromm FF->DF
Aileron neutral 00
Aileron Right. From 00->20
Pitch Forward. From FF->DF
Pitch neutral 00
Pitch Backward. From 00->20
Rudder right. From FF->DF
Rudder central 00
Rudder left. From 00->20
According the captures, every channel is starting to one side from 0 to 20. OK.
But the other side, is starting reversed. At first trim pulsation the trim value starts from FF and finish at DF.
I don't know if this could be the problem, since my skills are very limited, but when you reach almost the stick limit at every channel (only in one side), the quadcopter suddenly change to the other side.
I recorded a video trying to show you the behaviour.
Please Log in or Create an account to join the conversation.
- Durete
- Topic Author
- Offline
- Posts: 610
packet[7] = scale_channel(CHANNEL1, -32, 32); // Aileron Trims
packet[8] = scale_channel(CHANNEL4, -32, 32); // Rudder Trims
packet[9] = scale_channel(CHANNEL2, -32, 32); // Elevator Trims
dl.dropboxusercontent.com/u/14941708/dev...n-devo7e-Unknown.zip
Please, try to explain with your good English the behaviour
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Protocol Development
- HontaiTec Quadcopters (HT F801, HT F803,...)