HontaiTec Quadcopters (HT F801, HT F803,...)

More
15 Jun 2015 19:16 #34130 by Durete
Yes, yes, I confirm, channels 5, 19 and 28 at every sample :)
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.

More
15 Jun 2015 19:43 #34132 by Durete

Please Log in or Create an account to join the conversation.

More
15 Jun 2015 20:11 #34133 by hexfet
Nice! Please try a few random fixed id values (and 256) to spot check the algorithm. The txid is still tied directly to the fixed id in this build.

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.

More
15 Jun 2015 20:36 #34134 by Durete
Yep, I tested before my previous post using some random Fixed id's, including 256 . Not problem at all :)

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.

More
15 Jun 2015 22:07 - 15 Jun 2015 22:12 #34139 by hexfet
The higher sample rate is only needed for the receiver captures. Looks like the tx SPI bus clock is about 650kHz. No worries if you've already re-assembled - even the shifted captures indicate we're sending the right data and it's being received correctly. No need for any more tx captures :)

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"?
Last edit: 15 Jun 2015 22:12 by hexfet.

Please Log in or Create an account to join the conversation.

More
16 Jun 2015 00:34 - 16 Jun 2015 00:40 #34143 by greenfly
Replied by greenfly on topic HontaiTec Quadcopters (HT F801, HT F803,...)
Since Durete is going to work on testing the roll and pitch, I had a couple of questions myself. I am trying to get set up to pull your latest changes and build what Durete does.

  1. I have installed and checked all of the requirement for building on my (Windows) PC.
  2. 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.
  3. 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.
Attachments:
Last edit: 16 Jun 2015 00:40 by greenfly.

Please Log in or Create an account to join the conversation.

More
16 Jun 2015 01:56 #34145 by hexfet
Not sure what code you got in step 2 but it must be somewhat older. It's failing because the current default branch is too large for the 7e when built with the 4.9 toolchain. You'll need to install the 4.8 version of the ARM toolset and build with that. I don't know how to do that on Windows.

Please Log in or Create an account to join the conversation.

More
16 Jun 2015 01:59 #34146 by goebish
Replied by goebish on topic HontaiTec Quadcopters (HT F801, HT F803,...)
Uninstall your current GNU Tools ARM Embedded, then install this one instead:
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.

More
16 Jun 2015 02:13 #34148 by greenfly
Replied by greenfly on topic HontaiTec Quadcopters (HT F801, HT F803,...)
I must have missed that little detail about version 4.8. I think I can just uninstall the 4.9 and then install the 4.8. I knew I should have done this on a virtual machine.

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.

More
16 Jun 2015 02:14 #34149 by greenfly
Replied by greenfly on topic HontaiTec Quadcopters (HT F801, HT F803,...)
@goebish ---- Thanks!

Please Log in or Create an account to join the conversation.

More
16 Jun 2015 02:26 #34150 by hexfet
On Windows I've used TortoiseHg before. Easiest way to start would be to clone my repository ( bitbucket.org/hexfet/deviation ). You'll need a bitbucket account I think. Use TortoiseHg to update to the hontai branch, which sets the directory contents to that changeset. Then make any changes you want and build.

Bitbucket has a good intro to mercurial.

Please Log in or Create an account to join the conversation.

More
16 Jun 2015 03:15 #34151 by greenfly
Replied by greenfly on topic HontaiTec Quadcopters (HT F801, HT F803,...)
Thanks everyone... I'm am able to build the hontai branch of hexfet's repo. I still have some learning to do, but it is a start. It's fun!

Please Log in or Create an account to join the conversation.

More
16 Jun 2015 05:09 #34159 by SeByDocKy
Replied by SeByDocKy on topic HontaiTec Quadcopters (HT F801, HT F803,...)
Great team job HexFet & Durete :)

Please Log in or Create an account to join the conversation.

More
16 Jun 2015 05:36 #34164 by Durete

SeByDocKy wrote: Great team job HexFet & Durete :)

... and Greenfly :)

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.

More
16 Jun 2015 06:06 #34166 by Durete
@Hexfet.
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.

More
16 Jun 2015 11:55 #34170 by hexfet
Yes, you'll need Ruby . Should work with any version 1.9.3 or later. If it's in your path you can run it anywhere.

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.

More
16 Jun 2015 12:08 #34172 by Durete
Thanks, I will take a look :)

Please Log in or Create an account to join the conversation.

More
16 Jun 2015 17:58 #34176 by greenfly
Replied by greenfly on topic HontaiTec Quadcopters (HT F801, HT F803,...)
OK, what kind of roll and pitch testing did we need to do? Is that something Durete was just going to do with the code base?

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.

More
16 Jun 2015 18:00 #34177 by Durete
Ok, just checked the trims packet. The right order seems to be:
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.

More
16 Jun 2015 18:08 - 16 Jun 2015 18:09 #34178 by Durete
@Greenfly, this build is compiled with latest version from Hexfet's code (at hontai_nrf24l01.c file), with only this changes:
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 :P
Last edit: 16 Jun 2015 18:09 by Durete.

Please Log in or Create an account to join the conversation.

Time to create page: 0.116 seconds
Powered by Kunena Forum