ERSKY9X Coding

erskyTx runs on many radios and upgrade boards
ersky9x was a port of er9x for use on the sky9x board.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

Mike, in the voice alarm menus I think we will need an option to erase/delete.. It can be a pain when we want to delete one of the voice alarms, and go deleting all fields one by one :)
2 options?
1 - "delete" at the end of the edit voice alarm menu
2 - And my favorite, when we click on a voice switch to edit it, we get a popup window with EDIT and DELETE. easier to find and more user friendly in my opinion..

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

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

Re: ERSKY9X Coding

Post by MikeB »

KAL wrote:while playing a bit with GVARs and rotary encoder an idea came to my mind.
Would it be possible in the Global Vars menu to add a switch for rotary encoder
just to change a GVAR only if a certain switch is active?
I understand what you want to do. Currently, I don't think even adding a switch to the GVARS will work. This is because, internally I have a value for the rotary encoder position for use with GVARS, it doesn't "adjust" the GVAR value, just set it to the 'current' encoder position. So, if you adjust one GVAR, controlled by a switch from the encoder, as soon as you switch to another GVAR, this second GVAR will take on the same value as the first GVAR.

So, first, I'll need to change the operation so the encoder adjusts the value of a GVAR, rather than set it to an internal value.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
MikeB
9x Developer
Posts: 18010
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

Posted some new test versions.
I've changed the rotary encoder so it now adjusts GVARs instead of using its own position value.
I've added a switch to enable GVAR sources.
I've added a 'Blank' option at the end of the voice alarm menu.

I've attempted to do something about voice messages getting 'chopped', due to an underrun. If I detect an underrun, I attempt to restart the voice message. I haven't managed to create an underrun to test if this works!

Mike.

Edit: The number of underruns is still counted and displayed in the STAT2 menu.
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 »

Till now didn't manage to get a chopped voice message.. Will need more testing.
Mike sorry, maybe is my bad English, but I think many people will ask what "blank entry" means?? Why not use something simple that everyone understand like "erase all fields", "erase all", "Delete"; "Delete All", etc?? I do find it easier to understand. This is from a Portuguese point of view of course :) :D

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
KAL
Posts: 552
Joined: Thu Oct 10, 2013 4:36 pm
Country: Germany
Location: somewhere near Rothenburg ob der Tauber

Re: ERSKY9X Coding

Post by KAL »

Hi Mike,

the new feature with rotary encoder and GVARs works wonderful.
Can also be used to set flaperons/spoilerons with 2 separate rates that can be adjusted at once.
Or as a flight mode trim with much more throw as standard trims ...
Or just as max. 7 virtual pots for whatever ...

Thank you so much :D .

Klaus
( TH9X / 9XTreme / FrSky DHT / Spektrum / Multi / RotEnc )
( 9XR PRO / erSKY9x  / FrSky DHT / Spektrum / Multi / RotEnc / P3 as Slider )

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

Re: ERSKY9X Coding

Post by MikeB »

Changing option to "Delete" then.
Also I'm adding an extra option: "On no Telemetry" with values of 'Play' and 'Mute', so you can choose what you want to do.

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, is that on the voice alarm itself? Thanks..
By the way, I just finished flying my models and I had no voice underruns. That problem might be solved.

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: 18010
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

Yes, an extra option on each voice alarm.
When you say you had no underruns, is that from just what you heard, or did you check the underrun count?
The code is, I think, back to what it was with 3 buffers, just includes an attempt to restart from where we had got to.

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's from what I heard.. No chopped voice files.. I didn't know I had to continue to check the underruns value.. will do it from now on, every time before turning the tx off after flying..
Sorry..

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: 18010
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

No problem. If it sounded OK, then it may be fixed. If the underrun count is not zero, then the new code is working!

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 »

Another question. New voice alarms.
When using a function I am not able to select a switch. I would like to combine the logical function from the voice alarm with a custom switch.. like an AND switch. The field flashes but I'm not able to select a sw with left or right key. .

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
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

Please disregard my last post.. For some reason I wasn't able to select a switch on the voice alarm.. tried everything.. now, it just works.. Go figure :o :o :(

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
wombat67
Posts: 25
Joined: Wed Aug 07, 2013 12:07 pm
Country: Australia

Re: ERSKY9X Coding

Post by wombat67 »

Hi Mike and Co.
First up just want you all to know that I am in no way up to your 'pay grade' wrt to all the coding that you all do. Just involved in simple edits of ER9X to suit land/water vehicles rather than flying thingies. As such most of my edits are of terminology, changing aeronautical terms to a more terrestrial/aquatic flavour. Hence as you have pointed out Mike these edits are then in the multi-language support arena.

I have been happily editing ER9X for a while now and I am pleased with my end results BUT land thingies really do need 16 channels of operation so FrSky is the way to go and consequently that means ERSKY9X.

All I am trying to do at present is transfer my ER9X edits over to ERSKY9X. Nothing new, just what I have done in ER9X. I have compiled using the latest release r210.

First thing I have to ask is what has happen to the BIND option for the PXX setting? I can select PXX and a RXNum however the BIND option does not appear. How then do you bind a X8R to that particular Model number? The option is there in r202.

Here is my list of quirks I have found whilst trying to edit some of the names in the en.h file. Though the terms are renamed in the en.h file the changes are not carried through to the compiled FW.

1. Renaming of the sticks
#define ISTR_STICK_NAMES

2. Renaming of the templates
#define ISTR_T_S_4CHAN (etc.)

3. The switches can be renamed and the changes are there in the FW. However, with respect to the Switch Warning setup I now get 2 lines on the setup page and each switch is referred to as its new 3 character name. Not a big deal - probably a good thing but has this extra line pushed to BIND option off the setup page?
I figured an edit of this line in the en.h file would fix
#define ISTR_TRE012AG "TRE012AG"
But as before an edit of this line is not shown in the compiled FW.

Now I know there is something going on with the SETUP01 page as if I edit
#define ISTR_PPM2_START "PPM2 StartChan" to just "PPM2 StartCh" The line appears as
PPM2 StartChberFollow
Obviously " Send Rx Number [MENU]" is hiding there underneath.

Those are the three most important things. Just one other edit of the en.h file that I might mention for completeness sake. Editing of
#define ISTR_Trainer "Trainer"
Will see the change carried through to the actual Title of the Trainer menu but not on the SETTINGS 1/3 page. (No biggie as I can edit menus.cpp to fix)

Finally is there (can there be) an option to remove the HELI menu?

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

Re: ERSKY9X Coding

Post by MikeB »

I'm working on some of these problems, I have fixes for most of them!
I assume you are trying to use a FrSky XJT in a 9XR-PRO. The bad news is because FrSky have patented PXX and SPort, and I have a NDA with them due to the Taranis development, support for these is NOT currently available on the 'PRO as it is a commercial radio with full hardware support. The good news is HK and FrSky have agreed to allow these to be used, but I'm waiting for 'official' permission from FrSky before I can enable them in erksy9xr.

I'll try to update the googlecode repository later today. The problem is I have some major changes in test, (see: viewtopic.php?f=7&t=4676#p65894), and I don't want to commit these yet as they significantly change the menu configuration and that makes the manuals out of date. I don't want to confuse users.

Mike.

Edit: The PXX option on the 'PRO is the PXX implemented for a custom version of the DJT module long before the Taranis or XJT was thought of!
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 »

Yon can confuse this user, no problem at all :mrgreen:
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: 18010
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

It's taking me longer than I expected to sort a commit, I'll need a day or so to get there.

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 »

Please take your time Mike.. We all do this for fun..

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: 18010
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

The attempted fix for a "chopped" voice message doesn't appear to work! I got a "chopped" 'Data Logging Started' while flying today, and after that no audio at all, no voice, no beeps!

I'll look into it of course.

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 »

strange, I didn't have any problem till now..
What files were you using?

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
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

So, I just came back from The field and when I turned the motor and datalogging switch on, I had a continuous sound coming out of the radio. Only turning it off made it go away. I was using my new files that I didn't release yet. With the others I never had a problem. I do think I heard some little variation in the sound sometimes when playing the "motor enabled" file. But I thought it could be my ears..

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: 18010
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

I reckon I have sorted the voice problems. 2 or 3 minor interractions that were not quite right, but difficult to find.
I've tested it with a deliberate delay if 150mS in the voice generation (controlled by a switch). You get a slight 'hiccup' in the voice but it no longer gets chopped. Just need to tidy the code up (removing all the test and debug code) and check it also works correctly on the Taranis.

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 »

Thank you Mike, just fixing a plane to go fly in a while.. An Hitec metal gear mini servo gone bad the other day. Lucky that it was just before takeoff.. Maybe showing it's age.. It might have shorted as it brought the BEC voltage down and caused a brownout on everything else :)
Now top see if i have a servo the same size ;) :D

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
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

Mike, regarding the HC-05, do we have to do something? does it set the baudrate every time we turn the radio on?
Sorry, I don't understand how it works..
I think with the HC-06, it changed the Baudrate once and then we had to turn the radio off and on again.. I don't remember what I did to say the truth.. :( So many things happened since then :)

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
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

Mike, please have a look at the picture. the timers in C.Switches seem to have the values shifted to the right..

Thanks,

João
Image
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: 18010
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

Both the HC-05 and HC-06 remember the baudrate they are set to use. On power on, the firmware checks it can communicate. If it fails, it searches through the settable baudrates to find what the module is using, then changes it to the required baudrate.
Currently, changing BT parameters will most likely need the radio powered off and on to make sure they are properly set in the BT module.

I'll check the CS menu.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
SkyNorth
Posts: 958
Joined: Tue Dec 27, 2011 11:40 am
Country: -
Location: Mansfield , Ontario

Re: ERSKY9X Coding

Post by SkyNorth »

Mike:
Could you Re do the USB screen?
the 2 different USB modes, are confusing.
could you change the text to explain things better? , maybe explain how to get into boot loader mode on the screen as well.

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

Re: ERSKY9X Coding

Post by MikeB »

Is that the screen in the bootloader?
Are you referring to the bootloader and maintenance mode?

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 »

I think he means the USB screen for using with samba? Some people don't read the manuals and try to connect the radio to the computer that way.

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: 18010
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

jhsa wrote:Mike, please have a look at the picture. the timers in C.Switches seem to have the values shifted to the right..
It's more the "AND" switches are shifted left, the timer values have to be where they are in order to get everything to fit.

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 »

I think the custom swithes might need the same treatment as the voice switches :D

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

Post Reply

Return to “erskyTx (was ersky9x)”