Search found 69 matches

by planger
Tue Apr 03, 2018 8:21 pm
Forum: ersky9x
Topic: Script Language
Replies: 217
Views: 11724

Re: Script Language

Mike, I can't display within the script a correct value of A1. I can get the radio to display the correct value in Config->Telemetry -> A1 channel 13.5v 7.6 <= 7.6V is my 2S lipo voltage. This value is displayed correctly on the telemetry screen A1=7.6,RX=.., TX=... But within the script if I do: tm...
by planger
Fri Mar 30, 2018 4:55 pm
Forum: ersky9x
Topic: Script Language
Replies: 217
Views: 11724

Re: Script Language

...
by planger
Fri Mar 30, 2018 3:16 pm
Forum: ersky9x
Topic: Script Language
Replies: 217
Views: 11724

Re: Script Language

I confirm at least that r222a3 is solving the off grid inverse issue on my 9XR Pro.
I haven't tried r222a4...
Pascal
by planger
Wed Mar 28, 2018 8:18 pm
Forum: ersky9x
Topic: Script Language
Replies: 217
Views: 11724

Re: Script Language

My script is attached and also a picture of the screen. If you load it, you should see T-CUT blinking at the top if the throttle cut switch is by default. If you push some other switches(AIL,ELE,...), you'll see other texts going blinking or not depending on the switch position. I'm using the screen...
by planger
Wed Mar 28, 2018 2:14 pm
Forum: ersky9x
Topic: Script Language
Replies: 217
Views: 11724

Re: Script Language

Mike, Is there a way to improve the rendering of "Blink" and "Invers"?
When you use these features each letter is inverted indepently meaning that there is a space inbetween the caracters not inverted. It makes the text readibility quite hard.

Pascal
by planger
Mon Jan 29, 2018 9:01 pm
Forum: ersky9x
Topic: Script Language
Replies: 217
Views: 11724

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: 217
Views: 11724

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: 217
Views: 11724

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: 217
Views: 11724

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: 217
Views: 11724

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: 217
Views: 11724

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: 217
Views: 11724

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: 217
Views: 11724

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: 217
Views: 11724

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: 217
Views: 11724

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: 217
Views: 11724

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: 217
Views: 11724

Re: Script Language

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

Re: Script Language

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

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: 217
Views: 11724

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: 217
Views: 11724

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: 172
Views: 6810

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: 172
Views: 6810

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: 217
Views: 11724

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: 172
Views: 6810

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: 172
Views: 6810

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: 172
Views: 6810

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: 172
Views: 6810

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: 172
Views: 6810

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.

Go to advanced search