ERSKY9X Coding

erskyTx runs on many radios and upgrade boards
ersky9x was a port of er9x for use on the sky9x board.
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

That's left over from when trainer profiles and sources were being developed. The displayed value changes when the currently selected trainer source changes. You may ignore it.
The polarity setting under it does still affect the polarity of a SBUS signal input to the trainer input. I still need to sort that out.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

ozphoenix
Posts: 404
Joined: Fri Oct 28, 2016 11:51 am
Country: Australia

Re: ERSKY9X Coding

Post by ozphoenix »

Ok, understood - thanks.

I haven't had time today to re-check the 'missing audio' example sent in by 'playlet', but will try to get to that tomorrow. That's probably separate of the issues I was having on the QX7, anyway, so I'll now work on other checking of telemetry on the QX7 as soon as I can.

regards,
ozphoenix
MikeB wrote: Tue Jul 25, 2017 8:07 am That's left over from when trainer profiles and sources were being developed. The displayed value changes when the currently selected trainer source changes. You may ignore it.
The polarity setting under it does still affect the polarity of a SBUS signal input to the trainer input. I still need to sort that out.

Mike.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: RE: Re: ERSKY9X Coding

Post by jhsa »


ozphoenix wrote:
I just checked with my OpenTx-QX7 friend and my recollection of events on Sunday was faulty - the OpenTx-QX7, unlike all of his other radios and also mine, DOES need to be manually powered on to use Slave mode - my apologies for the misinformation. It's sad, because the DXe is a much less sophisticated radio and it can do that automatically :(
I do prefer that the radio enters slave mode while powered by its power switch. But that's me :)

Sent from my thor using Tapatalk

My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
ozphoenix
Posts: 404
Joined: Fri Oct 28, 2016 11:51 am
Country: Australia

Re: RE: Re: ERSKY9X Coding

Post by ozphoenix »

I really don't care which way it is, I would like all of my radios to act in a consistent manner, which they don't at present. But, that's me :D
jhsa wrote: Tue Jul 25, 2017 11:20 am
ozphoenix wrote:
I just checked with my OpenTx-QX7 friend and my recollection of events on Sunday was faulty - the OpenTx-QX7, unlike all of his other radios and also mine, DOES need to be manually powered on to use Slave mode - my apologies for the misinformation. It's sad, because the DXe is a much less sophisticated radio and it can do that automatically :(
I do prefer that the radio enters slave mode while powered by its power switch. But that's me :)

Sent from my thor using Tapatalk
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

That will never happen because you have different radios with different hardware :)
Even if Mike always tries to make all work the same, with different hardware that might not be possible.

João


Sent from my thor using Tapatalk

My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

Indeed, unlike the original 9X and the 9XR-PRO, None of the FrSky transmitters include hardware to detect the trainer is plugged in and enable power, they just have a status signal to indicate the trainer is plugged in.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
ozphoenix
Posts: 404
Joined: Fri Oct 28, 2016 11:51 am
Country: Australia

Re: ERSKY9X Coding

Post by ozphoenix »

Sad....but true :(
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

But why sad? Both systems should disconnect the RF module power. The only difference as far as I know is the way the radio is powered. With the power switch on the frsky radios, and using the trainer jack on the 9x radio.
Ok you need to set a trainer profile to "Slave" and use it on the trainer model. The advantage of this is that you won't use a wrong model for trainer, as far as I know, while with the cable powering the radio, the radio would enter trainer mode with any of the models loaded.. And this is definitely not good..

João

Sent from my thor using Tapatalk


My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
ozphoenix
Posts: 404
Joined: Fri Oct 28, 2016 11:51 am
Country: Australia

Re: ERSKY9X Coding

Post by ozphoenix »

Sad only because it is one more thing for an old brain to remember and I am inherently lazy and/or stupid (or both) :D

And, yes, I basically solved it by using a 'Trainer' model on the Slave and profiles to match, etc. And, since the only 'student' I have is my 6 year-old daughter (soon 7 - ok, I'm a late-life dad), I am VERY careful about what the set-up is before we walk out to the flight line :) but, thanks for the suggestion - it was the right one :)

So, no valid complaints, just belly-aching :D

ozphoenix
jhsa wrote: Wed Jul 26, 2017 9:51 am But why sad? Both systems should disconnect the RF module power. The only difference as far as I know is the way the radio is powered. With the power switch on the frsky radios, and using the trainer jack on the 9x radio.
Ok you need to set a trainer profile to "Slave" and use it on the trainer model. The advantage of this is that you won't use a wrong model for trainer, as far as I know, while with the cable powering the radio, the radio would enter trainer mode with any of the models loaded.. And this is definitely not good..

João

Sent from my thor using Tapatalk
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

Ha, look, :) I am also a late-life dad and I am also teaching my 7 year old Son to fly.. :D
But I have a DIY receiver installed in all my radios for wireless trainer. Ersky9x is fantastic as far as hardware support is concerned.. :)

João

Sent from my thor using Tapatalk

My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

Mike, just had a look at e1, protocol menu. It looks good and it seems to work good. I like what you did with the range check options. What about changing the names of the modules to "External RF" and "Internal RF"? Do you think it would make them even more clear? Best would be "Internal Module" and "External Module". Perhaps " Int RF Module" and "Ext RF Module"?
Just a few choices to make it even clearer.. :)
Anything else I could test? I have a DIY receiver with me but forgot to bring an oXs :(

Thanks for all.

João

Sent from my thor using Tapatalk

My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
ozphoenix
Posts: 404
Joined: Fri Oct 28, 2016 11:51 am
Country: Australia

Re: ERSKY9X Coding

Post by ozphoenix »

Hi Mike,
Something you might look into, please.

I was working with the 'trainer' mode in the r221 version dated 15.07.2017 ErSky9x on a 9XRPro and setting up a slave/trainer QX7 as the student unit (however, I have traced the following issue to exist when a slave/trainer Tx is not physically connected, so that unit is irrelevant, I think).

If I go to the Trainer Profile Setup in the main (Master) radio and set the Trainer Src to be 'Slave' (and regardless of whether I had the Master's 'trainer' switch activated or not), I immediately lose the Master's bind with a models receiver if that Trainer Profile is referenced in the Master's model setup (I tried several models and several receivers, including XR4 and D8R-XP) and I cannot re-bind that receiver to the Tx. If, instead or subsequently, I re-set the Src of the subject Trainer Profile to be 'Jack PPM', the bind automatically returns.

This seemed to be the case whether or not I had a Slave Tx connected, but I would think that you should not lose Master-bind based on what the source of a referenced Trainer profile is set to (or not).

Can you comment, please?

Regards,
ozphoenix
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

That problem was fixed on July 25th. Please update the firmware to the latest test version (1st of August).

viewtopic.php?f=7&t=4676

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
ozphoenix
Posts: 404
Joined: Fri Oct 28, 2016 11:51 am
Country: Australia

Re: ERSKY9X Coding

Post by ozphoenix »

Ok, thanks João -- been away from updating a little bit lately so will look into that correction and re-check it - many thanks for the pointer.

Regards,
ozphoenix

EDIT: Aarkh!! I hate it when that happens - I had updated my QX7 but not the 9XRPro - if I had been using the QX7, this wouldn't have happened (until I picked up the 9XRPro :D ) Updated the 9XRPro now - will test it tomorrow in daylight when I am back with my models :)
jhsa wrote: Thu Aug 10, 2017 11:04 am That problem was fixed on July 25th. Please update the firmware to the latest test version (1st of August).

viewtopic.php?f=7&t=4676

João
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

I think that problem was only with the QX7.. But I'm not sure.. I never seen it in any of my radios.. I have the PRO, 9Xtreme, skyboard and Ar9x..

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

The current implementation is that if the radio is configured to be operating in "slave" mode, then RF outputs are disabled (and often powered off if possible).
So if you configure a model to have an active trainer profile, and that profile is "slave", then the controls to the RF modules are stopped. "Slave" mode is also automatically enabled on those radios (9XR-PRO is one) where plugging in a trainer jack with the power switch off, powers up the radio. In these cases, the RF module is usually not powered anyway.
The "slave" option in a profile is often only needed on those radios that don't automatically power on when the trainer jack is plugged in.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
ozphoenix
Posts: 404
Joined: Fri Oct 28, 2016 11:51 am
Country: Australia

Re: ERSKY9X Coding

Post by ozphoenix »

Ok - thanks, Mike - makes sense now that you explain it that way - much appreciated.
regards,
ozphoenix
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

Guys, the latest test version (e3) has a little functionality that you can test if you which.. :)
Go to the Logical switches menu and highlight one of the switches.
Now press the left key once. The line will start blinking. Press the menu key long, and you will enter a menu where you can view all the settings for that switch and edit them. It also includes a Delay option. This is being tested for any bugs before Mike makes this the default Logical switch editing, the same way as some other menus do in ersky9x. This could allow for adding more functionality and options to the logical switches in the future.
Until this is made the default logical switch editing, the old way still works as before..
Enjoy testing and please report if you find any problems.. ;) :)

Thanks

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
ReSt
Posts: 1581
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: ERSKY9X Coding

Post by ReSt »

r220 (and compiled from actual download from github)

In the Mixer, when the source is a (2-position) switch, the weight is always highlighted, independent of the switch position.
CHx 100 sGea

Shouldn't it only be highlighted,when the mix is active ?

Reinhard
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

Confirmed on the latest test version.

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

When a switch is the SOURCE, the mix is active. It is only when you have a switch in the switch setting the mix may become inactive.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

Mike, that is true, but it is still giving the wrong Indication :)

João

Sent from my thor using Tapatalk

My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

What's wrong? With just a switch as source, the mix is always active, so the 100 is in bold indicating this. A 2-position switch causes the output to swap between -100% and +100%.
If you add a switch on the switch line (e.g. RUDder), then when the switch is off, the 100 is no longer bold as the mix is NOT active.
All seems correct to me.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

It is correct the way it works, but if you are actually controlling something with that mix, you will think that this same thing is ON when it actually isn't. That will lead us to try to troubleshoot something that doesn't exist..
So, the mix is showing us something as ON when in reality it is not. This is what I meant by "wrong indication" :)
In this case, it makes the indication useless and misleading, as the weight is ON whether the switch is ON or OFF. I can understand why we thought it was a bug. :)

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

The weight is in bold if the mix is ACTIVE. Possibly the thing that is incorrect is the weight is not always in bold when the source is FULL or HALF, since these are, in fact, always active.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

Yes, but isn't this supposed to have some indication to us of what is happening in reality on the model? Because if it is not than it is better not to have it at all as it is misleading, and only creates confusion in my opinion..
My English is not so good and I have the feeling that I am not expressing myself very well :(

The problem here is not the code being correct or not. It is the real behavior of the mix that is misleading. For example, if I have a switch on that channel controlling an RC switch with some LEDs.
The mix will tell me that the LEDs are ON whether the switch is ON or OFF. If I don't have the model in front of me, I will think that there is a problem..

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

The bold on the weight indicates the mix is being processed (is active) when calculating the channel to which it applies.
If you want to know what the channel as a whole is doing, move the reverse highlighting to that channel and look at the bar on the top line.

If you just have a switch as the source (no switch on the switch line and nothing on the flight modes options), then the mix will be processed (is active).
If you disable a mix by using a switch on the switch line, or by making it disabled on the current flight mode, then the mix will not be processed (is NOT active).
Sources of FULL and HALF are special cases as they are always processed. There is an argument that they are no longer needed! Just use a switch as the source and configure the weight and offset to get the required result.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

MikeB wrote: Wed Aug 23, 2017 2:34 pm
Sources of FULL and HALF are special cases as they are always processed. There is an argument that they are no longer needed! Just use a switch as the source and configure the weight and offset to get the required result.

Mike.
I have found some cases where they are needed. It didn't work with a switch as source and I had to use one of them.. Don't ask me what I was doing, it was a while ago. But I do remember this happening. I didn't report as I thought it was something normal, but now I see I should have done :(

Highlighting the mix in question to see the output at the top is wonderful, but sometimes we just need an overall view of what is happening, specially when what we are doing depends on several mixes.
Just had an idea, a crazy one, maybe hitting a key or selecting an option on a menu, we could call a screen where only the mixes (with source and weight) were shown, along with the output graphic for all of them.. Settings for delay and slow wouldn't need to be shown on this screen anyway. It would be just a view screen.

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
ReSt
Posts: 1581
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: ERSKY9X Coding

Post by ReSt »

I'm afraid, we are talking from apples and beans

Mike tells us, that the bold indication shows that a MIX is actively used

and we are expecting (when the mix contains a switch - as source or as aditional switch -) that the SWITCH and therefore the complete mixerline is active, giving it's corresponding output.

According to Mike's definititon, it is working correctly. But we, or at least I was/were expecting something different.

btw, I found a way to show the bold weight (for 2-pos and logical switches) depending on the status of the switch (for my personal compilation).

Reinhard
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

If a mix is NOT active, then the result of that mix is always 0% (whatever the other settings are), and the mix is NOT processed.
If a mix is active, with a 2-pos (or logical) switch as source, then (with offset of 0 and weight of 100), the result of the mix is either -100% or +100%.
If a mix is active, with a 3-pos switch as source, then (with offset of 0 and weight of 100), the result of the mix is either -100% or 0% or +100%, but the 0% may be something different if you have an offset set.
Also an active mix giving a result of 0% is still different from an inactive mix, particularly if it is a MULTIPLY mix. When active, a multiply mix of 0% will "zero out" all preceeding mixes, while an inactive mix (of 0% therefore) will not.

So the bold indicates the mix is being processed.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

Post Reply

Return to “erskyTx (was ersky9x)”