- Posts: 2631
Bayangtoys x16 new version (altitude hold)
- goebish
- Offline
- I Void Warranties
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
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)
Please Log in or Create an account to join the conversation.
- cosmos
- Offline
- Posts: 9
I will study and try import the protocol to my MM.
@Moeder : And thank also your effort.
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
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},
Please Log in or Create an account to join the conversation.
- cosmos
- Offline
- Posts: 9
I will try edit header file and compile. If it will success, I try to import to my MM.
Please Log in or Create an account to join the conversation.
- cosmos
- Offline
- Posts: 9
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.
Please Log in or Create an account to join the conversation.
- cosmos
- Offline
- Posts: 9
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
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
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
Please Log in or Create an account to join the conversation.
- cosmos
- Offline
- Posts: 9
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.
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
OpenTX has "Custom" which lets you select both ID and subID by number.
So, select custom + ID 14 (MODE_BAYANG) + subID 2 (X16_AH).
Please Log in or Create an account to join the conversation.
- cosmos
- Offline
- Posts: 9
Thank you.
I understand and try this way.
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
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
Please Log in or Create an account to join the conversation.
- Moeder
- Offline
- Posts: 796
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
I'm working on 2 sub protocols that are pretty similar but not exactly the same (IRDRONE & VISUO).
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
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
Please Log in or Create an account to join the conversation.
- cosmos
- Offline
- Posts: 9
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.
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
I don't know when (if?) it get merged though as it seems Pascal is taking a break from the project.
Please Log in or Create an account to join the conversation.
- Moeder
- Offline
- Posts: 796
Please Log in or Create an account to join the conversation.
- cosmos
- Offline
- Posts: 9
I test flying on prop by X16=QX7 binding.
It works well and move gentle.
Thanks for your support .
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Protocol Development
- Bayangtoys x16 new version (altitude hold)