- Posts: 2633
Bayangtoys x16 new version (altitude hold)
- goebish
-
- Offline
- NRF Weirdo
Less
More
19 Oct 2017 20:03 #65136
by goebish
Replied by goebish on topic Bayangtoys x16 new version (altitude hold)
Ok, I'll take a look into that.
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
19 Oct 2017 21:44 - 19 Oct 2017 21:51 #65137
by goebish
Replied by goebish on topic Bayangtoys x16 new version (altitude hold)
@cosmos, I added the X16_AH format to the Bayang protocol into the MM source code, here's my work branch:
github.com/goebish/DIY-Multiprotocol-TX-.../protocol_bayang_x16
diff only: github.com/goebish/DIY-Multiprotocol-TX-...3918c7c2fb4976a4b019
Of course you'll have to build and install it by yourself, I can't provide help, I don't have an iRangeX module but I checked that the code compiles fine.
Protocol: bayang
sub protocol ID: 2 (or 3, I'm not sure the index starts at 0).
Take off / Landing is AUX7 (channel 11)
github.com/goebish/DIY-Multiprotocol-TX-.../protocol_bayang_x16
diff only: github.com/goebish/DIY-Multiprotocol-TX-...3918c7c2fb4976a4b019
Of course you'll have to build and install it by yourself, I can't provide help, I don't have an iRangeX module but I checked that the code compiles fine.
Protocol: bayang
sub protocol ID: 2 (or 3, I'm not sure the index starts at 0).
Take off / Landing is AUX7 (channel 11)
Last edit: 19 Oct 2017 21:51 by goebish.
- cosmos
-
- Offline
Less
More
- Posts: 9
19 Oct 2017 23:10 - 19 Oct 2017 23:14 #65139
by cosmos
Replied by cosmos on topic Bayangtoys x16 new version (altitude hold)
@goebish : Thank your help.
I will study and try import the protocol to my MM.
@Moeder : And thank also your effort.
I will study and try import the protocol to my MM.
@Moeder : And thank also your effort.
Last edit: 19 Oct 2017 23:14 by cosmos.
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
19 Oct 2017 23:16 - 19 Oct 2017 23:22 #65140
by goebish
Replied by goebish on topic Bayangtoys x16 new version (altitude hold)
If you've already flashed your own firmware to your module previously then it should be pretty straightforward.
Just something: I've a Taranis X9D + a STM32 module (not iRangeX though) and I've no idea how to set sub protocol to 2 in serial mode as I can only select the sub protocols that are already hardcoded into OpenTX (Bayang, H8S3D).
If you're using PPM mode then just select X16_AH as sub protocol in _Config.h
eg:
Just something: I've a Taranis X9D + a STM32 module (not iRangeX though) and I've no idea how to set sub protocol to 2 in serial mode as I can only select the sub protocols that are already hardcoded into OpenTX (Bayang, H8S3D).
If you're using PPM mode then just select X16_AH as sub protocol in _Config.h
eg:
/*14*/ {MODE_BAYANG, X16_AH, 0, P_HIGH , NO_AUTOBIND, 0},
Last edit: 19 Oct 2017 23:22 by goebish.
- cosmos
-
- Offline
Less
More
- Posts: 9
20 Oct 2017 02:17 #65142
by cosmos
Replied by cosmos on topic Bayangtoys x16 new version (altitude hold)
@goebish: Thank for your advice.
I will try edit header file and compile. If it will success, I try to import to my MM.
I will try edit header file and compile. If it will success, I try to import to my MM.
- cosmos
-
- Offline
Less
More
- Posts: 9
20 Oct 2017 05:03 #65143
by cosmos
Replied by cosmos on topic Bayangtoys x16 new version (altitude hold)
@goebish:
1. Unfortunertly, I can't select "X16_AH" in sub_protocol.
The sub_protocol menu show "BAYANG" and "H8S3D". My TX is QX7.
2. And below editing is not work also.
/*14*/ {MODE_BAYANG, X16_AH, 0, P_HIGH , NO_AUTOBIND, 0},
3. In addition, I edit multiprotocol.h as below, that also not work in sub_protocol_menu.
//##############################################
enum BAYANG
{
BAYANG = 0,
X16_AH = 1, // edit by cosmos 20171020
H8S3D = 2,
};
//##############################################
Thank you.
1. Unfortunertly, I can't select "X16_AH" in sub_protocol.
The sub_protocol menu show "BAYANG" and "H8S3D". My TX is QX7.
2. And below editing is not work also.
/*14*/ {MODE_BAYANG, X16_AH, 0, P_HIGH , NO_AUTOBIND, 0},
3. In addition, I edit multiprotocol.h as below, that also not work in sub_protocol_menu.
//##############################################
enum BAYANG
{
BAYANG = 0,
X16_AH = 1, // edit by cosmos 20171020
H8S3D = 2,
};
//##############################################
Thank you.
- cosmos
-
- Offline
Less
More
- Posts: 9
20 Oct 2017 09:03 - 20 Oct 2017 09:04 #65146
by cosmos
Replied by cosmos on topic Bayangtoys x16 new version (altitude hold)
@goebish:
It's good news. I success binding of X16 and QX7.
I edit your code as below.
filename : mutiprotocol.h
//###########################################
enum BAYANG
{
BAYANG = 0,
X16_AH = 1, // edit by cosmos 20171020
H8S3D = 2,
};
//###########################################
But still display "H8S3D" and chanel mapping is something wrong, so I try to set TARE/ARTE/....
I think that it need many try and error.
Thank your effort
It's good news. I success binding of X16 and QX7.
I edit your code as below.
filename : mutiprotocol.h
//###########################################
enum BAYANG
{
BAYANG = 0,
X16_AH = 1, // edit by cosmos 20171020
H8S3D = 2,
};
//###########################################
But still display "H8S3D" and chanel mapping is something wrong, so I try to set TARE/ARTE/....
I think that it need many try and error.
Thank your effort
Last edit: 20 Oct 2017 09:04 by cosmos.
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
20 Oct 2017 10:12 - 20 Oct 2017 10:48 #65147
by goebish
Replied by goebish on topic Bayangtoys x16 new version (altitude hold)
Great, I'll check with the OpenTX guys, I suppose there's a way for devs to test their protocols in serial mode.
Channel mapping should be as you set it in _Config.h (default=AETR), I didn't change anything here.
edit: asked on rcgroups
www.rcgroups.com/forums/showthread.php?2...page674#post38484765
Channel mapping should be as you set it in _Config.h (default=AETR), I didn't change anything here.
edit: asked on rcgroups
www.rcgroups.com/forums/showthread.php?2...page674#post38484765
Last edit: 20 Oct 2017 10:48 by goebish.
- cosmos
-
- Offline
Less
More
- Posts: 9
20 Oct 2017 11:00 #65149
by cosmos
Replied by cosmos on topic Bayangtoys x16 new version (altitude hold)
@goebish:
I edit my QX7 chanel map. and it work very good(in situation : remove prop). the function takeoff/land key works good.
I will try to fly add prop's next Monday, and reply more contents here.
I edit my QX7 chanel map. and it work very good(in situation : remove prop). the function takeoff/land key works good.
I will try to fly add prop's next Monday, and reply more contents here.
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
20 Oct 2017 11:05 - 20 Oct 2017 11:06 #65150
by goebish
Replied by goebish on topic Bayangtoys x16 new version (altitude hold)
Ok, this is the first time I add a protocol to MM (I got a STM32 4-in-1 module only for that ...), I've to check what's the procedure to have it added into OpenTX.
Last edit: 20 Oct 2017 11:06 by goebish.
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
20 Oct 2017 19:07 #65152
by goebish
Replied by goebish on topic Bayangtoys x16 new version (altitude hold)
@cosmos, Kilrah has replied:
So, select custom + ID 14 (MODE_BAYANG) + subID 2 (X16_AH).
OpenTX has "Custom" which lets you select both ID and subID by number.
So, select custom + ID 14 (MODE_BAYANG) + subID 2 (X16_AH).
- cosmos
-
- Offline
Less
More
- Posts: 9
20 Oct 2017 22:56 #65154
by cosmos
Replied by cosmos on topic Bayangtoys x16 new version (altitude hold)
@goebish,
Thank you.
I understand and try this way.
Thank you.
I understand and try this way.
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
22 Oct 2017 11:00 #65192
by goebish
Replied by goebish on topic Bayangtoys x16 new version (altitude hold)
@Moeder, looks like the protocol is working fine:
www.deviationtx.com/forum/protocol-devel...297lbx-capture#65191
Can you make a pull request ?
I'm asking because I added yet another sub-protocol over X16 AH (IRDRONE) and I don't want to make a PR for your work
www.deviationtx.com/forum/protocol-devel...297lbx-capture#65191
Can you make a pull request ?
I'm asking because I added yet another sub-protocol over X16 AH (IRDRONE) and I don't want to make a PR for your work
- Moeder
-
- Offline
Less
More
- Posts: 796
22 Oct 2017 15:00 #65202
by Moeder
Replied by Moeder on topic Bayangtoys x16 new version (altitude hold)
@goebish: First thing after returning from vacation was adding Arduino-based lighting to my son's RC boat
PR has been made, although I did it from only one set of captures, but since it is very similar to the original one I'm pretty sure it should be alright.
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
22 Oct 2017 15:05 #65204
by goebish
Replied by goebish on topic Bayangtoys x16 new version (altitude hold)
Yes, seems that's fine, even if you missed some details that's not a big deal.
I'm working on 2 sub protocols that are pretty similar but not exactly the same (IRDRONE & VISUO).
I'm working on 2 sub protocols that are pretty similar but not exactly the same (IRDRONE & VISUO).
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
22 Oct 2017 15:09 #65205
by goebish
Ahah yesterday a friend of mine asked me if he could add lighting to his electric skateboard, 15 minutes later he was happy
Replied by goebish on topic Bayangtoys x16 new version (altitude hold)
Moeder wrote: @goebish: First thing after returning from vacation was adding Arduino-based lighting to my son's RC boat
Ahah yesterday a friend of mine asked me if he could add lighting to his electric skateboard, 15 minutes later he was happy
- cosmos
-
- Offline
Less
More
- Posts: 9
23 Oct 2017 04:03 #65211
by cosmos
Replied by cosmos on topic Bayangtoys x16 new version (altitude hold)
@goebish,
I test binding X16=QX7 by "custom + ID 14 (MODE_BAYANG) + subID 2 (X16_AH)" with your original protocol code.
It works well, but I can not test when adding prop on my X16.
Thank you.
I test binding X16=QX7 by "custom + ID 14 (MODE_BAYANG) + subID 2 (X16_AH)" with your original protocol code.
It works well, but I can not test when adding prop on my X16.
Thank you.
- goebish
-
- Offline
- NRF Weirdo
Less
More
- Posts: 2633
23 Oct 2017 11:20 #65216
by goebish
Replied by goebish on topic Bayangtoys x16 new version (altitude hold)
No problem, just tell me once you've tested with propellers on, I'll make a pull request to the MM repo then.
I don't know when (if?) it get merged though as it seems Pascal is taking a break from the project.
I don't know when (if?) it get merged though as it seems Pascal is taking a break from the project.
- Moeder
-
- Offline
Less
More
- Posts: 796
23 Oct 2017 14:56 #65219
by Moeder
Replied by Moeder on topic Bayangtoys x16 new version (altitude hold)
Protocol is now available in nightlies and Vlads custom 5.0.0 build. Manual and supported model list in the wiki are updated accordingly.
- cosmos
-
- Offline
Less
More
- Posts: 9
24 Oct 2017 08:16 #65225
by cosmos
Replied by cosmos on topic Bayangtoys x16 new version (altitude hold)
@goebish,
I test flying on prop by X16=QX7 binding.
It works well and move gentle.
Thanks for your support .
I test flying on prop by X16=QX7 binding.
It works well and move gentle.
Thanks for your support .
Time to create page: 0.711 seconds
-
Home
-
Forum
-
Development
-
Protocol Development
- Bayangtoys x16 new version (altitude hold)