Volantex V761-1 Firestar Mini protocol

More
06 May 2018 12:45 #69080 by goebish
Replied by goebish on topic Volantex V761-1 Firestar Mini protocol
Ok, I've added the protocol into this branch:
github.com/goebish/deviation/tree/protocol_volantex
github.com/goebish/deviation/blob/protoc.../volantex_nrf24l01.c

Let me know if you want a test build (for which transmitter ?).
This is only test protocol for now, only to check if it works, it only has your tx ID hardcoded as there are still a few uncertainties.

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

More
06 May 2018 17:15 #69081 by Kill_Switch
Replied by Kill_Switch on topic Volantex V761-1 Firestar Mini protocol
Thank you !!

I will use the code and upload to my multi-module in taranis(only real option for now).
still need to decide on new jumper or not....still pissed it is gone
should be able to get is done tomorrow , then report back

Many thx !!

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

More
08 May 2018 14:18 #69116 by Kill_Switch
Replied by Kill_Switch on topic Volantex V761-1 Firestar Mini protocol
I'm done with the port to multi-protocol( based on pascals project)
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module/compare/master...KillSwitch422:V761

My coding skills are seriously rusty, so would be good to review, that and this is my first attempt at git-hub and fork and and and :sick: :sick: :sick:
I will try update my module tonight and test, might need to wait for a day or so to get out to field to do flight tests.

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

More
08 May 2018 16:05 #69118 by goebish
Replied by goebish on topic Volantex V761-1 Firestar Mini protocol
Seems fine, hope it works :p

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

More
09 May 2018 08:11 #69120 by Kill_Switch
Replied by Kill_Switch on topic Volantex V761-1 Firestar Mini protocol
first test no joy, having a second go with some changes.
there is no successfully bind and tx seems to continue the bind attempt indefinitely( displays "binding" and gives the bind "chirp")

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

More
09 May 2018 08:18 - 09 May 2018 08:18 #69121 by goebish
Replied by goebish on topic Volantex V761-1 Firestar Mini protocol
Could be that bind_counter has to be signed, I'm not sure it is in your code, just declare and use another int16_t instead.
Last edit: 09 May 2018 08:18 by goebish.

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

More
09 May 2018 08:35 #69122 by Kill_Switch
Replied by Kill_Switch on topic Volantex V761-1 Firestar Mini protocol
Its alive!!! :woohoo: :woohoo: :woohoo:
I have all 3 channels and gyro function
latest commit
github.com/pascallanger/DIY-Multiprotoco.....KillSwitch422:V761

massive thanks to you!

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

More
09 May 2018 08:39 #69123 by goebish
Replied by goebish on topic Volantex V761-1 Firestar Mini protocol
Cool!
Please let me know once you have a Deviation compatible transmitter so you can check if my code is working before merging it :)

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

More
09 May 2018 08:39 #69124 by Kill_Switch
Replied by Kill_Switch on topic Volantex V761-1 Firestar Mini protocol
was missing the BIND_DONE command
and the initial send packets was changed from if( bind) to if (phase != V761_DATA)
also reshuffled the gyro setup to before packet was send
and bind period set to return 50( in place of 15730)

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

More
09 May 2018 08:41 #69125 by goebish
Replied by goebish on topic Volantex V761-1 Firestar Mini protocol
I wouldn't use 50 in place of 15730, I'm not sure the packet can be sent in 50µs ;)
But if it works like that ....

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

More
09 May 2018 08:42 #69126 by Kill_Switch
Replied by Kill_Switch on topic Volantex V761-1 Firestar Mini protocol

goebish wrote: Cool!
Please let me know once you have a Deviation compatible transmitter so you can check if my code is working before merging it :)


Will let you know.

Hope some more can test this that we can get additional TXID and the frequency hops

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

More
09 May 2018 08:45 #69127 by Kill_Switch
Replied by Kill_Switch on topic Volantex V761-1 Firestar Mini protocol

goebish wrote: I wouldn't use 50 in place of 15730, I'm not sure the packet can be sent in 50µs ;)
But if it works like that ....

I must say I'm not sure what the exact implication is.( the next phase of my learning curve will be to start understanding the code better rather that copy from examples)
Although the bind is achieved must sooner on the Taranis that with the stock one.

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

More
09 May 2018 08:48 - 09 May 2018 10:49 #69128 by goebish
Replied by goebish on topic Volantex V761-1 Firestar Mini protocol
You can try to set txid to an arbitrary value (4 bytes) and also rf_channel[1] & [2].

edit: constrain rf_channels to 0x00 - 0x50, higher frequencies don't always work well when emulating the xn297 with the nrf24.
Last edit: 09 May 2018 10:49 by goebish.

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

More
09 May 2018 10:06 - 09 May 2018 10:07 #69129 by goebish
Replied by goebish on topic Volantex V761-1 Firestar Mini protocol
If you want to set beginner mode:
flags = 0x08;

But I think that's not required, only implement "mid" mode then decrease your endpoints if required, that's what most protocols do.
Last edit: 09 May 2018 10:07 by goebish.

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

More
09 May 2018 10:37 #69130 by Kill_Switch
Replied by Kill_Switch on topic Volantex V761-1 Firestar Mini protocol
ok thanks, I think there is a change at rx end, but will need to do test flight first,
I suspect there is a max roll and pitch that is set in beginner mode, with the stock tx, I cannot loop in beginner, but I can in midd

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

More
09 May 2018 10:39 #69131 by goebish
Replied by goebish on topic Volantex V761-1 Firestar Mini protocol
Ah Ok, maybe that's the same than Angle/Horizon/Acro modes in betaflight, better implement all 3 modes then.

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

More
10 May 2018 12:14 #69160 by Kill_Switch
Replied by Kill_Switch on topic Volantex V761-1 Firestar Mini protocol

goebish wrote: You can try to set txid to an arbitrary value (4 bytes) and also rf_channel[1] & [2].

edit: constrain rf_channels to 0x00 - 0x50, higher frequencies don't always work well when emulating the xn297 with the nrf24.


I plan to test this as soon as possible , first I want to get my STM32 version module setup with the code before I start to play again on the PCB one.
that and my wings are clipped due to other priorities for about a week.

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

More
06 Sep 2018 09:29 #70681 by goebish
Replied by goebish on topic Volantex V761-1 Firestar Mini protocol
Any news ?

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

More
06 Sep 2018 11:08 #70683 by planger
Replied by planger on topic Volantex V761-1 Firestar Mini protocol
I know it's still WIP but I looked at the code. I see a couple of things:
- bind_counter could become negative but should not. So I advice to protect it by replacing bind_counter-- with if(bind_counter) bind_counter--;
- return 50; <- this is way too small and appears many times, I don't know what's the original value but this can't be correct
- NRF24L01_SetPower(); is not called in the transmit loop so it will stay on bind power
- convert_channel_16b_limit(THROTTLE,0,0xff); should be convert_channel_8b(THROTTLE);
- convert_channel_16b_limit(RUDDER, 0, 0x7f); should be convert_channel_8b(RUDDER)>>1; same for the other channels
- packet[5] = (packet_count++ / 3) * 0x40; might be quicker to do packet[5] = (packet_count++ / 3)<<6;

Pascal

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

More
06 Sep 2018 11:16 #70684 by goebish
Replied by goebish on topic Volantex V761-1 Firestar Mini protocol
I suppose 50 should be replaced with 15730, and 100 with 7060 (the lower values are for the deviation emulator).
I'm almost sure the deviation implementation is fine ( github.com/goebish/deviation/blob/protoc.../volantex_nrf24l01.c ) but I'd like Kill_Switch to check if arbitraries txid and rf channels can be used.

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

Time to create page: 0.075 seconds
Powered by Kunena Forum