Search found 64 matches

by planger
Mon Jan 29, 2018 9:01 pm
Forum: ersky9x
Topic: Script Language
Replies: 202
Views: 6287

Re: Script Language

Mike, I've tested version g6 and everything seems to work fine from what I can see.
Thanks, Pascal
by planger
Sun Jan 28, 2018 8:00 pm
Forum: ersky9x
Topic: Script Language
Replies: 202
Views: 6287

Re: Script Language

Cool. Are you thinking about implementing the telemetry script as I described using killevents(Event) to suppress the event from the queue that the radio fw should not interpret? The LONG EXIT press could also be an event that you could not supress from the queue (ie killevents can't suppress it) so...
by planger
Sun Jan 28, 2018 7:20 pm
Forum: ersky9x
Topic: Script Language
Replies: 202
Views: 6287

Re: Script Language

Hummm, I will retry in which case it exit indicating a "false" error in the code.
For sure I always add either a model script or a telemetry script running in background. Usually the same script since I just wanted to get a display...
by planger
Sun Jan 28, 2018 6:47 pm
Forum: ersky9x
Topic: Script Language
Replies: 202
Views: 6287

Re: Script Language

The main problem with that is the script could block ALL events, then you would never be able to leave the script's screen. Just intercept before launching the script the exit press long event and kill the script if it's the case. This way you can get out if really needed. That's what you are alrea...
by planger
Sun Jan 28, 2018 9:09 am
Forum: ersky9x
Topic: Script Language
Replies: 202
Views: 6287

Re: Script Language

OK, I can get the main popup menu to appear over the Telemetry script display, if you press either MENU LONG or the encoder button LONG. It will mean these two button presses can't really then be used within the telemetry script. Is there a solution to do something like this: the telemetry script t...
by planger
Sat Jan 27, 2018 9:49 pm
Forum: ersky9x
Topic: Script Language
Replies: 202
Views: 6287

Re: Script Language

I would say that not having access to the menu from the custom script telemetry page is really what would make me not using this method. If you are only visiting this page time to time then it might be fine, but if you want it to be your main landing page then to do anything on the radio you need to...
by planger
Sat Jan 27, 2018 9:10 pm
Forum: ersky9x
Topic: Script Language
Replies: 202
Views: 6287

Re: Script Language

Sounds good. Have you been able to include in g5 the trim switches fix? The custom telemetry page is exactly what I was looking for. But the only thing is that it does not react like the other pages. Only left and right do something but up/down/menu/exit do not work. I think you've done that to enab...
by planger
Fri Jan 26, 2018 8:30 pm
Forum: ersky9x
Topic: Script Language
Replies: 202
Views: 6287

Re: Script Language

Thanks Mike! I'm nearly done with my script. It's quite cool :D If there could be a way for a background script to take control of the screen that would be awesome. Something like you flick a switch the screen appears (like if it was launched from the menu) or you go to a special page or... Today I'...
by planger
Fri Jan 26, 2018 1:18 pm
Forum: ersky9x
Topic: Script Language
Replies: 202
Views: 6287

Re: Script Language

One more question: How can I access trim switches? I've tried "Atu" and "Atd" with no luck. I've checked and they are not set in the AIL mixer.

Pascal
by planger
Thu Jan 25, 2018 3:02 pm
Forum: ersky9x
Topic: Script Language
Replies: 202
Views: 6287

Re: Script Language

Is there a way to empty the play queue? or a parameter to playfile to either queue the file or play it immediately (=empty queue+play).
by planger
Thu Jan 25, 2018 2:57 pm
Forum: ersky9x
Topic: Script Language
Replies: 202
Views: 6287

Re: Script Language

Note: you shouldn't put the extension .wav in playfile...
by planger
Thu Jan 25, 2018 2:51 pm
Forum: ersky9x
Topic: Script Language
Replies: 202
Views: 6287

Re: Script Language

...
by planger
Thu Jan 25, 2018 10:28 am
Forum: ersky9x
Topic: Script Language
Replies: 202
Views: 6287

Re: Script Language

simple and working :D
by planger
Thu Jan 25, 2018 8:00 am
Forum: ersky9x
Topic: Script Language
Replies: 202
Views: 6287

Re: Script Language

Mike, what about haptic?
Can we get a haptic/vibrate instruction?
by planger
Wed Jan 24, 2018 8:21 pm
Forum: ersky9x
Topic: Script Language
Replies: 202
Views: 6287

Re: Script Language

That's not the idea... I woud like my script to run when my model is loaded. It should work in background all the time and display information when you request it. I could use a switch and only display when it is pushed but I was thinking of a better integration within the radio. I don't know if tha...
by planger
Wed Jan 24, 2018 7:21 pm
Forum: ersky9x
Topic: Script Language
Replies: 202
Views: 6287

Re: Script Language

Thanks Mike, I've got other questions: - Can we set haptic? example vibrate(x) with x in ms. - Can there be an overlay on the existing display? I'm thinking of replacing for example the low part of the main screen where the channels are displayed with the script output. It could be an additional pag...
by planger
Wed Jan 24, 2018 3:48 pm
Forum: Turnigy 9XR PRO radio
Topic: Banggood 4in1 module, Flysky AFHDS2A and Telemetry
Replies: 152
Views: 2354

Re: Banggood 4in1 module, Flysky AFHDS2A and Telemetry

MikeB wrote:
Fri Jan 05, 2018 1:32 pm
New (test) versions of ersky9x will have the option byte with the 0x80 bit always set when in AFHDS2A protocol.
Mike, Is this available?
As far as I can see 221g2 still needs to select T-Rate to get the telemetry running.

Pascal
by planger
Wed Jan 24, 2018 3:46 pm
Forum: Turnigy 9XR PRO radio
Topic: Banggood 4in1 module, Flysky AFHDS2A and Telemetry
Replies: 152
Views: 2354

Re: Banggood 4in1 module, Flysky AFHDS2A and Telemetry

I've setup my module to use your ID 7375be3b. From there I've power cycled at least 30 times my receiver with a servo sweep running on the radio. I haven't got a single issue where you usually get one in less than 10 tries... This is pointing in my eyes to an issue on the RX(s). Do you have the hard...
by planger
Wed Jan 24, 2018 1:25 pm
Forum: ersky9x
Topic: Script Language
Replies: 202
Views: 6287

Re: Script Language

Is there a way to write a value to a channel?
Like for the Logical switches if they are unused?
by planger
Tue Jan 23, 2018 8:30 am
Forum: Turnigy 9XR PRO radio
Topic: Banggood 4in1 module, Flysky AFHDS2A and Telemetry
Replies: 152
Views: 2354

Re: Banggood 4in1 module, Flysky AFHDS2A and Telemetry

Could you also dump the ID of your second module?
by planger
Mon Jan 22, 2018 6:49 pm
Forum: Turnigy 9XR PRO radio
Topic: Banggood 4in1 module, Flysky AFHDS2A and Telemetry
Replies: 152
Views: 2354

Re: Banggood 4in1 module, Flysky AFHDS2A and Telemetry

This is only going to work if you are using the "Upload via USB" method from the arduino environement which I supposed you were doing but now I have a doubt...
by planger
Mon Jan 22, 2018 6:43 pm
Forum: Turnigy 9XR PRO radio
Topic: Banggood 4in1 module, Flysky AFHDS2A and Telemetry
Replies: 152
Views: 2354

Re: Banggood 4in1 module, Flysky AFHDS2A and Telemetry

No, with the USB cable plugged at the back of the module.
by planger
Mon Jan 22, 2018 6:19 pm
Forum: Turnigy 9XR PRO radio
Topic: Banggood 4in1 module, Flysky AFHDS2A and Telemetry
Replies: 152
Views: 2354

Re: Banggood 4in1 module, Flysky AFHDS2A and Telemetry

So in Multiprotocol.ino, uncomment the line #define DEBUG_SERIAL
Flash the firmware with this line changed ;)
The module will not start (led off) which is normal. In the Arduino IDE, open the "Serial monitor" (ctrl+shift+M).
On the monitor you'll see the module starting and printing it's ID.
by planger
Mon Jan 22, 2018 6:09 pm
Forum: Turnigy 9XR PRO radio
Topic: Banggood 4in1 module, Flysky AFHDS2A and Telemetry
Replies: 152
Views: 2354

Re: Banggood 4in1 module, Flysky AFHDS2A and Telemetry

What module type do you have? We can extract the ID. It's really easy if they are on USB.
by planger
Mon Jan 22, 2018 5:55 pm
Forum: Turnigy 9XR PRO radio
Topic: Banggood 4in1 module, Flysky AFHDS2A and Telemetry
Replies: 152
Views: 2354

Re: Banggood 4in1 module, Flysky AFHDS2A and Telemetry

Sterling101 wrote:
Mon Jan 22, 2018 5:45 pm
Pascal, do you mean when I have the connection live and stable if I change the RX_Num to a different one does it still stay connected?
Forget it was to demonstrate that you were not forcing the global ID because what RX_Num is doing in the background is to change slightly the global ID.
by planger
Mon Jan 22, 2018 5:37 pm
Forum: Turnigy 9XR PRO radio
Topic: Banggood 4in1 module, Flysky AFHDS2A and Telemetry
Replies: 152
Views: 2354

Re: Banggood 4in1 module, Flysky AFHDS2A and Telemetry

That's what I thought - seems strange it still links up??? I'll re-bind anyway and re-test... Really? Are you sure you are forcing the global ID? That sounds really strange but worse investigating further. Can you answer this question: after changing RX_Num, does your RX still establish a connectio...
by planger
Mon Jan 22, 2018 5:32 pm
Forum: Turnigy 9XR PRO radio
Topic: Banggood 4in1 module, Flysky AFHDS2A and Telemetry
Replies: 152
Views: 2354

Re: Banggood 4in1 module, Flysky AFHDS2A and Telemetry

How does the link actually establish when the receiver is powered up? Is the module always sending a packet out and when the receiver is powered up it communicates with the packet that's been received and establishes the link at that point? With the latest code, you have a one way conversation only...
by planger
Mon Jan 22, 2018 4:12 pm
Forum: Turnigy 9XR PRO radio
Topic: Banggood 4in1 module, Flysky AFHDS2A and Telemetry
Replies: 152
Views: 2354

Re: Banggood 4in1 module, Flysky AFHDS2A and Telemetry

Then I don't know what to do else. Like I said the protocol is really at the bear minimum with just the TX sending a packet every 3850µs. I think you already did it but can you try different RX_Num numbers? (you need to rebind the RX for each different RX_Num). The goal of this test is to generate d...
by planger
Mon Jan 22, 2018 2:56 pm
Forum: Turnigy 9XR PRO radio
Topic: Banggood 4in1 module, Flysky AFHDS2A and Telemetry
Replies: 152
Views: 2354

Re: Banggood 4in1 module, Flysky AFHDS2A and Telemetry

Can you try the attached version?
This is the bear minimum to get the protocol going...

Go to advanced search