Eachine or JJRC H8 mini ?

More
24 Jul 2015 12:25 #35903 by hexfet
Replied by hexfet on topic Eachine or JJRC H8 mini ?
Yes, each of the protocols in my repo is in its own branch for future pull requests.

Might want to check greenfly's work . Or I'll make a combined build after things are done and pull requests made.

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

More
24 Jul 2015 12:29 #35904 by Zaphod
Replied by Zaphod on topic Eachine or JJRC H8 mini ?
No worries dude. Happy just to see it work. Will wait until its all implemented :)

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

More
24 Jul 2015 18:22 - 24 Jul 2015 18:29 #35923 by czajunia
Replied by czajunia on topic Eachine or JJRC H8 mini ?
Wow that's awesome. I've just tried this (I know, very late... totally inexcusable) and H8 has just become my favourite indoor flier. (And I haven't even tried the dynamic trim option yet).

Thanks a lot hexfet

EDIT: I have just tried the DynTrims. Didn't expect that at all. Unbelievable. It is super fast for a toy quad.
Last edit: 24 Jul 2015 18:29 by czajunia.

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

More
25 Jul 2015 00:01 #35933 by Richard96816
Replied by Richard96816 on topic Eachine or JJRC H8 mini ?
Once a protocol is complete and tested it would be really nice to create a reference build model.ini, with comments, to define how everything is supposed to work. All the pertinent data seems way too scattered otherwise.

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

More
25 Jul 2015 00:08 #35934 by Zaphod
Replied by Zaphod on topic Eachine or JJRC H8 mini ?
That's a great idea. Make the information easier to find and implement.

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

More
25 Jul 2015 00:11 #35935 by Richard96816
Replied by Richard96816 on topic Eachine or JJRC H8 mini ?
Has headless mode calibration been assigned to a channel?

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

More
25 Jul 2015 03:38 - 25 Jul 2015 03:39 #35942 by Phillycopter8
Replied by Phillycopter8 on topic Eachine or JJRC H8 mini ?
Here's my model ini for the devo 7e with 2x3 switch. Using 60/80/125 for pitch and roll on swB and 40/70/125 for rudder on swA. Still playing with the mixer but I mostly fly it with rudder 60 and pitch/roll at 125 and it's working well for me. Hold1 is flip for channel 6 and using fmode1 for headless mode channel 9. So fun! Thanks again Hexfet!
Attachments:
Last edit: 25 Jul 2015 03:39 by Phillycopter8.

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

More
25 Jul 2015 03:56 #35943 by vasiliy_gr
Replied by vasiliy_gr on topic Eachine or JJRC H8 mini ?
As far I can see in source code (bayang_nrf24l01.c) in this fragment
#define CHAN_RANGE (CHAN_MAX_VALUE - CHAN_MIN_VALUE)
static u16 scale_channel(u8 ch, u16 destMin, u16 destMax)
{
    s32 chanval = Channels[ch];
    s32 range = destMax - destMin;

    if      (chanval < CHAN_MIN_VALUE) chanval = CHAN_MIN_VALUE;
    else if (chanval > CHAN_MAX_VALUE) chanval = CHAN_MAX_VALUE;
    return (range * (chanval - CHAN_MIN_VALUE)) / CHAN_RANGE + destMin;
}
channel values are reduced when they are used this way
        chanval.value = scale_channel(CHANNEL1, 0x3ff, 0);   // aileron
        packet[4] = chanval.bytes.msb + dyntrim(chanval.value);
        packet[5] = chanval.bytes.lsb;
        chanval.value = scale_channel(CHANNEL2, 0, 0x3ff);   // elevator
        packet[6] = chanval.bytes.msb + dyntrim(chanval.value);
        packet[7] = chanval.bytes.lsb;
        chanval.value = scale_channel(CHANNEL3, 0, 0x3ff);   // throttle
        packet[8] = chanval.bytes.msb + 0x7c;
        packet[9] = chanval.bytes.lsb;
        chanval.value = scale_channel(CHANNEL4, 0x3ff, 0);   // rudder
        packet[10] = chanval.bytes.msb + dyntrim(chanval.value);
        packet[11] = chanval.bytes.lsb;
So if I correctly understand constant values - there is no need to set channel values above 100 as they will be reduced to 100 in this protocol. So there is no actual 125 value for rudder or pitch as this 125 is equal to 100.

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

More
25 Jul 2015 04:23 - 25 Jul 2015 05:20 #35944 by Zaphod
Replied by Zaphod on topic Eachine or JJRC H8 mini ?

Phillycopter8 wrote: Here's my model ini for the devo 7e with 2x3 switch. Using 60/80/125 for pitch and roll on swB and 40/70/125 for rudder on swA. Still playing with the mixer but I mostly fly it with rudder 60 and pitch/roll at 125 and it's working well for me. Hold1 is flip for channel 6 and using fmode1 for headless mode channel 9. So fun! Thanks again Hexfet!


Thank you kind sir :)

Based on Phillycopter8's ini file for the 7e - here is my Devo 10 version with mods.

Ail, Ele and Rud all work off the FMOD switch:

Fmod 0 - expo 25, scale 60
Fmod 1 - expo 25, scale 80
Fmod 2 - expo 25, scale 100

Elev D/R 1 is channel 6 - flip mode
Ail D/R 1 is channel 9 - headless mode

This is probably pretty rough and not done according to how it should or could be done for optimal usage but it seems to work quite well for me.

Cheers :)
Attachments:
Last edit: 25 Jul 2015 05:20 by Zaphod.

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

More
25 Jul 2015 06:40 #35945 by Richard96816
Replied by Richard96816 on topic Eachine or JJRC H8 mini ?
Thanks for the model files guys.

I have a collection of model files. I rename them from the modelxx.ini to something like Eachine_H8_mini.ini. Then I grab the notes from your post and add them to the top of the file as comments, along with the date, the aircraft and the poster's name. They seem much more useful and accessible that way.

I respectfully suggest this might be a better way to post such files in the future.

Thank you!

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

More
27 Jul 2015 01:20 #36112 by hexfet
Replied by hexfet on topic Eachine or JJRC H8 mini ?
I've uploaded new test builds that set the dynamic trims on all the time and removes the protocol option. Thanks for the testing.

I'm going to combine the fy326, bayang, and mjxq protocols in one pull request. It avoids merge conflicts and is easier to review, plus will be based on the latest default.

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

More
27 Jul 2015 04:05 #36119 by shaunb
Replied by shaunb on topic Eachine or JJRC H8 mini ?
I was about to post a question but instead decided to test an assumption as I was typing and will now post an answer instead in case someone else has the same issue.

To run the test build you need to use the filesystem from a nightly build (perhaps the latest build I am not sure).

I was installing the test build firmware and using the 4.0.1 release file system. This results in a successful boot, everything appears to be ok until you press "ENT" to access the menu and it is blank.

Anyway my goal was to test the H8 mini so looking forward to doing that now! Thanks hexfet

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

More
27 Jul 2015 04:55 #36122 by SeByDocKy
Replied by SeByDocKy on topic Eachine or JJRC H8 mini ?

hexfet wrote: I've uploaded new test builds that set the dynamic trims on all the time and removes the protocol option. Thanks for the testing.

I'm going to combine the fy326, bayang, and mjxq protocols in one pull request. It avoids merge conflicts and is easier to review, plus will be based on the latest default.



Great :)

out of topic, PB seems away since several days.... probably in vaccations

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

More
28 Jul 2015 22:15 #36273 by btoschi
Replied by btoschi on topic Eachine or JJRC H8 mini ?
Just wanted to confirm that my JJRC H10 quadcopter binds and throttle works as expected with protocol_bayang on my Devo 8S
(incorporated latest changes from hexfet's repo, fixing merge issue manually).

Cannot test more yet, as one of the motors is damaged (I suspect its brushes were damaged during shipping) and I'm waiting for spare part.

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

More
29 Jul 2015 07:45 - 24 Aug 2015 00:03 #36290 by Durete
Replied by Durete on topic Eachine or JJRC H8 mini ?
Great to know!
I have the hunch the JJRC H12C and others will bind also with this protocol... ;)

Edit. I was wrong. The H12C is using LT8910 RF transceiver.
Last edit: 24 Aug 2015 00:03 by Durete.

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

More
29 Jul 2015 11:59 #36301 by Durete
Replied by Durete on topic Eachine or JJRC H8 mini ?
Just received my BayangToys X9 :)
@ Hexfet, do you need any specific capture from this model?
I guess no, but just in case...

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

More
29 Jul 2015 15:20 #36309 by hexfet
Replied by hexfet on topic Eachine or JJRC H8 mini ?
No, nothing more required unless there are new controls on your model. Thanks.

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

More
30 Jul 2015 08:24 #36347 by Durete
Replied by Durete on topic Eachine or JJRC H8 mini ?
Just tested outdoor the X9 using the Bayang protocol, and WOW! :woohoo:
Amazing pitch and roll angles using the dynamic trims!
Will upload a short video ASAP.
Thanks Hexfet!

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

More
30 Jul 2015 11:27 #36351 by Durete
Replied by Durete on topic Eachine or JJRC H8 mini ?
A short demo :)
Sorry for the video quality, didn't have my Mobius Hatcam here and was recorded by a coworker with his cell (receiving a lot of messages :P )

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

More
30 Jul 2015 12:40 #36355 by hexfet
Replied by hexfet on topic Eachine or JJRC H8 mini ?
Nice flying! Fun to watch :)

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

Time to create page: 0.074 seconds
Powered by Kunena Forum