- Posts: 1891
HontaiTec Quadcopters (HT F801, HT F803,...)
- hexfet
- Offline
Please Log in or Create an account to join the conversation.
- greenfly
- Offline
Please Log in or Create an account to join the conversation.
- Durete
- Topic Author
- Offline
- Posts: 610
Since we are in different time zones, is difficult to continue the test as I would like, is morning at this side of the planet.
For me the throttle channel at first test works totally smooth also, from zero to full throttle.
@Greenfly.
Any chance you could capture your SPI traces?
It's weird in my SPI traces the picture function doesn't do anything, and my manual doesn't mention picture function. How works your picture/video functions at your stock TX?
@Hexfet. I will test your latest changes when return home from work. I do the hardware mods at work, but the software needs to be at home.
Please Log in or Create an account to join the conversation.
- greenfly
- Offline
I actually happen to be on vacation this week so who needs sleep!
Anyway, to take pictures I depress the left stick on the controller. I have not received my logic analyzer from Banggood yet. I expect it tomorrow or the next day. It's somewhere between California and here (Texas).
I think I'll spend tomorrow setting up the build environment. I'm a software dev by trade so maybe I'll be able to help. It's been an age since I worked in C, but I'm willing to look.
Please Log in or Create an account to join the conversation.
- Durete
- Topic Author
- Offline
- Posts: 610
I'm totally noob at mercurial and programming stuff. I'm a hardware guy
Your help could be great for Deviation project.
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1891
Is it possible to get SPI captures at the receiver on the aircraft? We'll likely need that capability to crack the txid to address/channels mapping anyway.
Current thoughts...
Seems like incorrect data is arriving in the packet, at least in bytes 4-6. The AER data is in the lower six bits of those bytes, with the high bits used for special functions (flip, rth, etc). greenfly gets some strange reactions when making stick movements that should be changing these bytes (including flips and pics), while Durete does not. Durete's tx may be different since it doesn't have a pic function.
Throttle is in byte 3 and seems to be received correctly. At least the first 5 bytes of the bind packet (containing the txid) are received correctly. Binding and throttle response means receiver is accepting packets so crc is correct and received correctly.
Not sure what it all means
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.
- Durete
- Topic Author
- Offline
- Posts: 610
Throttle, rudder, pitch and roll are working perfect!
The pitch channel needs to be reversed, the other channels are working good. Probably I wronged the order when took the captures.
We are on the way guys!
@Greenfly. Here is the 7e build.
dl.dropboxusercontent.com/u/14941708/dev...n-devo7e-Unknown.zip
Don't forget to reverse the pitch controls.
You did it Hexfet !!!!
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1891
I've pushed an update that fixes the pitch direction and restores the special function flags. Let's see what happens with that. Also added picture control, guessing it goes in the last bit available.
If this works then the driven trims would likely be the problem. Any issues with adjusting the trims while in flight with the stock tx? Or maybe I got their direction wrong.
Please Log in or Create an account to join the conversation.
- Durete
- Topic Author
- Offline
- Posts: 610
is it necessary to modify this protocol also?
Please Log in or Create an account to join the conversation.
- greenfly
- Offline
Hexfet you are definitely on the right track. Thanks!
BTW: I should have my logic analyzer in a few hours. I'll have some captures soon after that.
@Durete: What software did you use for you capture?
Please Log in or Create an account to join the conversation.
- Durete
- Topic Author
- Offline
- Posts: 610
Controls working just fine. Flips working, RTH working. Headless not working (channel 9 at 100% value).
Camera controls, can't test yet, probably Greenfly could test better than me since he has the camera version.
The only weird thing I can see is an small right-rudder output. With rudder at neutral the quadcopter turns slowly to the right
@Greenfly. Did you see this weird thing?
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1891
No, i didn't mean to commit that.but it wont hurt anything. Just used it to verify scale_channel worked the way i thought it did.Durete wrote: I can see an update at yd717_nrf24l01.c file also under hontai branch
is it necessary to modify this protocol also?
Please Log in or Create an account to join the conversation.
- Durete
- Topic Author
- Offline
- Posts: 610
greenfly wrote: @Durete: What software did you use for you capture?
Drop a PM to Hexfet. I know he will explain you better
Please Log in or Create an account to join the conversation.
- greenfly
- Offline
I haven't got my build setup yet.
Please Log in or Create an account to join the conversation.
- Durete
- Topic Author
- Offline
- Posts: 610
@Greenfly, if you need to add yaw trim, something is not working perfect. should be hover without any trim.
Please, download again, should be updated.
dl.dropboxusercontent.com/u/14941708/dev...n-devo7e-Unknown.zip
Please Log in or Create an account to join the conversation.
- Durete
- Topic Author
- Offline
- Posts: 610
Don't forget to reverse again the elevator I crashed mine because I forgot it
Please Log in or Create an account to join the conversation.
- greenfly
- Offline
Flip mode works... and the camera video start/stop works. I'm not sure about headless mode and RTH... not enough switches.
Oh... and I had to switch the ELE back to NOT reversed.
Please Log in or Create an account to join the conversation.
- Durete
- Topic Author
- Offline
- Posts: 610
greenfly wrote: OK. I do have a slight yaw drift... but mine is to the left.
Flip mode works... and the camera video start/stop works. I'm not sure about headless mode and RTH... not enough switches.
Oh... and I had to switch the ELE back to NOT reversed.
Sorry, I mean NORMAL not reversed. You are right
Weird you have the yaw drift to the left My drift is to the right, so I should correct with left trim.
About the Headless mode, I'm going to test more in depth but I'm confident is not working.
The RTH for sure works, but not sure how to implement at model file, because stock TX reset this flag after you move the right stick to any side.
What camera controls are working? Video or picture?
Please Log in or Create an account to join the conversation.
- greenfly
- Offline
Durete wrote: What camera controls are working? Video or picture?
Video.
The funny thing is that something during normal flight is causing it to take pictures. I cleared the SD card, flew it for a few seconds and had a dozen pictures!
I will have my SPI captures in a little bit, so maybe that can shed some light on the problem.
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Protocol Development
- HontaiTec Quadcopters (HT F801, HT F803,...)