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

Re: ERSKY9X Coding

Post by jhsa » Sun May 22, 2016 8:13 pm

Thanks Mike.. Looking forward to seeing the custom telemetry 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


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

Re: ERSKY9X Coding

Post by jhsa » Sun May 22, 2016 9:15 pm

Mike, there might be a problem with the throttle check at startup?
I select P4 as source in the safety switches, but the radio still looks for the throttle stick and doesn't check P4.

I think I had a version where this worked?? Ar9x board

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

Re: ERSKY9X Coding

Post by jhsa » Sun May 22, 2016 9:25 pm

Also, P4 cannot be selected in "Custom Check". It doesn't show up in the list

Just to confirm my last post, the radio still warns of throttle not at idle on startup, even if the throttle source in safety switches is set to something else..

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

Re: ERSKY9X Coding

Post by MikeB » Sun May 22, 2016 10:19 pm

No I don't think I had a version where that worked. What is working is the use of the specified control as in a safety switch.
No, I haven't included any extra pots in the custom check (yet).
The throttle stick is still specifically checked regardless of the safety switch setting. You may have a (sticky) safety switch set for some other reason so we should not use that instead of the throttle check. What we might want is a model specific option to disable the throttle check.

Thinking about the possibility of a background voice output, there are a number of questions.
1. What should happen if the background is playing and another voice message needs to be played.
Options:
(a) Pause the background and play the voice message.
(b) Merge the two together, both at reduced volume to prevent clipping.
2. How should the background be controlled:
(a) Need a method to select an item to play (or perhaps a list of items to play in sequence), possibly with a "repeat" option.
(b) Functions to start, stop and pause the background (maybe rewind?).
(c) Some method to activate the functions in (b), e.g. assign to switches and/or a menu to activate them directly.

1(a) Is the easiest to implement, and I think might be best to ensure the voice message is heard clearly.

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

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

Re: ERSKY9X Coding

Post by jhsa » Sun May 22, 2016 11:15 pm

MikeB wrote:No I don't think I had a version where that worked. What is working is the use of the specified control as in a safety switch.
You're right, that setting only controls the sticky function..
No, I haven't included any extra pots in the custom check (yet).
That would be nice because if you are going to control the throttle with a Pot, a slider is a very good candidate if you have one ;)
The throttle stick is still specifically checked regardless of the safety switch setting. You may have a (sticky) safety switch set for some other reason so we should not use that instead of the throttle check. What we might want is a model specific option to disable the throttle check.
Good idea, that would work I think.
The thing is, we must not forget to also define a custom check. Possible more than one? Another idea, could we give it a name that would show together with the warning??
Thinking about the possibility of a background voice output, there are a number of questions.
1. What should happen if the background is playing and another voice message needs to be played.
Options:
(a) Pause the background and play the voice message.
(b) Merge the two together, both at reduced volume to prevent clipping.
Definitely 1(a). After the voice message stopped playing, resume the background. Voice message would include all voice alarms (alarms and voice controlled by switches)

2. How should the background be controlled:
(a) Need a method to select an item to play (or perhaps a list of items to play in sequence), possibly with a "repeat" option.
Create a BG menu. maybe something like you did on the globals. Two options. "Voice" and "BG Player" (Name is just an example).

In case you think that is better to make this menu a General setting, then allow for a option on every model to control it. Maybe some setting in the voice alarms to tell that that one controls the BG player. So, we would just create a voice alarm and control the player. This way we wouldn't lose a switch.. This menu could maybe be accessed from that first popup that comes up when you press menu long from the main screens as it is neither a model setup menu nor a radio setup menu.. So the best place for it is probably in the menu selection popup, just like the "Help" or "Notes"menus.

You could create a folder in the SD Card named for example "music", to keep these separate from the actual voice events files, and avoid confusion. Maybe inside the music folder you could create sub-folders, with text or numbers as the folder name , where you could put some files in each sub-folder.. This would work as Playlists or Albums. You could select the Album (folder) to be played in a drop down menu in the "BG Player" menu.
(b) Functions to start, stop and pause the background (maybe rewind?).
Definitely.
Also in the "BG Player menu"?? Allow the functions to be controlled by switches? We would also need "Next" and "Previous"?
(c) Some method to activate the functions in (b), e.g. assign to switches and/or a menu to activate them directly.
Yess as I mentioned Above. Maybe for "start stop/Pause continue", a switch could be selected. Maybe also "next/Previous". This could be important if you have some recorded memos to practice Acro flying for example, in case you need to repeat part of a flight sequence.
If we want to navigate lists (folders), rewind, etc, it could be done in the menu itself

The skyboard, Ar9x, 9XR-PRO, and 9xtreme, all can can have extra switches/push buttons installed. And as far as I know it is not so difficult. I for example have 4 push buttons installed on the back of my radios, and it was very easy to do it, specially on the 9XT and Ar9x, as all the pins are available on pin headers. these could be used for controlling the player.
If you need the switches for flying, then you can just use one to start or stop the player, and do the rest on the player menu.

And Mike, THANK YOU VERY MUCH for looking into this.. This was always my dream feature..

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
bob195558
Posts: 2128
Joined: Sun Dec 16, 2012 7:24 pm
Country: United States
Location: New England, Vermont
Contact:

Re: ERSKY9X Coding / 9 place Telemetry Screen

Post by bob195558 » Mon May 23, 2016 12:56 pm

MikeB wrote:OK, the Taranis custom telemetry screens will have 9 items you may select instead of 6.
Mike.
Thank You Mike, it looks great ! :D
New 9 place Telemetry Screen_b.jpg
New 9 place Telemetry Screen with erSky9x on Taranis
Bob B.
Er9x on 9x radio, with Smartieparts Programmer and TelemetrEZ Board.
ErSky9x on Taranis, Sky9x, 9Xtreme radios.

3D Printing upgrades with (CR10 3D Printer): (http://openrcforums.com/forum/viewforum.php?f=85).

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

Re: ERSKY9X Coding

Post by jhsa » Sat Jun 04, 2016 2:52 pm

New findings concerning SD Cards.
While helping testing some new features in ErSky9x I have noticed some strange problems on all my radios. (9xtreme, 9xR-PRO and Ar9x). The Ar9x radio didn't show the problems so much, but maybe due to the SD Card it has installed.
My 9Xtreme radio had a 1Gb sd card installed. It would fail to connect to the computer very often, and sometimes even freeze when doing so, with me having to remove the battery. I never found out what was causing the problem and I thought I had some kind of hardware problem.
I also had voice underruns when playing voice files and logging at the same time.

My 9XR-PRO radio sometimes would lose the voice completely if i would start a voice event when the timer was counting down and announced the 30, 20 and 10 seconds, and also the last 5 seconds.. It didn't happen always. but the new feature we are testing made it show more often..

All this apparently was caused by bad formatting of the SD Card..
Windows defaults to 4Kb cluster size when formatting in FAT32 file system. At least mine does. This is not enough.. The culster size should be at least 32Kb
I think this is only possible on cards bigger than 2Gb apparently, according to some research I have made on google.
So, new recommendation about SD Cards , at least if using ErSky9x.
USE AT LEAST 4Gb SD CARDS, and make sure you format them with a 32kb cluster size.. Forget windows. Get some good tool like the one linked below and format your cards with it..

https://www.sdcard.org/downloads/formatter_4/

João

You will need a bigger card soon anyway ;) :D
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: 16609
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB » Mon Jun 06, 2016 6:02 pm

New feature - Background Music.
You may play a music file. Both this, and normal voice files allow beeps (e.g. trims) to sound while the audio is playing.
Any voice message will cause the music to pause to make sure you hear the voice message clearly.
This has been tested fairly well on the SKY, AR9X, 9XR-PRO and 9Xtreme boards, with more limited testing on the Taranis/plus.
Test versions posted on the Test Versions thread.

Background Music feature on ersky9x.

On the root of the SD card, create a directory called "Music".
In this directory you place individual music files. The maximum length of the filenames is 14 characters, not including the ".wav".
The format of the files should be:
16-bit .wav, sample rate 16kHz, Mono.
(A sample rate of 32kHz is supported, but you may get occasional breaks in the output).

In the "Music" directory, you may also put sub-directories, again a maximum length of 14 characters, but this includes any extension they may have. These are "Play Lists". In these directories you may put up to 16 .wav files. If you put more than 16 files, only the first 16 will be used.

You access the music from a menu. This is UP LONG from the main screen, then RIGHT three times.
This looks like:

Code: Select all

Music            4/12
Type          List
File  PlayList
Loop            OFF
Start
Prev<  Pause   >Next
Underneath this, the current file being played is displayed, along with a "Progress Bar" that shows how far through the file you are.

The Type may be "List", for a PlayList or "Name" for a single file.
The File is either the name of the file or the PlayList. Press MENU to choose what you want.
Loop may be either OFF or ON. If OFF, the file or playlist is just played once, if ON, then the file or PlayList repeats.
"Start" starts playing the selection. While playing this changes to "Stop" to stop the music.
The next line only appears while playing. You may Pause the music by selecting Pause. While paused, this option changes to "Resume".
"Prev<" and ">NEXT" only appear while a playlist is playing. Use LEFT and RIGHT to skip backwards or forwards through the PlayList.

When a PlayList is selected, going RIGHT from this menu (to 5/12) gives you a list of the files in that PlayList.

On the "Model Setup" menus there is a new sub-menu "Music".
Here you may assign switches to the functions "Start/Stop", "Pause/Resume", "Previous" and "Next". These enable you to control the music playing without going to the Music menu.
---------------

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

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

Re: ERSKY9X Coding

Post by jhsa » Mon Jun 06, 2016 9:18 pm

Thank you very much for this Mike. This is something I have been waiting for 2 or 3 years. It is a dream coming true. Specially the way it is done. It is absolutely fantastic..

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

Re: ERSKY9X Coding

Post by jhsa » Mon Jun 06, 2016 11:53 pm

Have a look:

https://www.youtube.com/watch?v=2-kZZPydQdw

On the 9xtreme radio, please stick to 16Khz 16 bit files.. As Mike said, there could be some problems at 32Khz.

On the 9XR-PRO and Ar9x boards you can try the 32Khz files.. I had no problems at all, but you never know..
Just don't forget this is still in test.. Please report any problems

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

Reacher10
Posts: 379
Joined: Tue Dec 27, 2011 7:46 pm
Country: -

Re: ERSKY9X Coding

Post by Reacher10 » Tue Jun 07, 2016 1:08 am

Can't wait to try this out. I think I'll have it turn on when I get above a certain throttle position so when the plane is airborne the music will play and when I come in for a landing the music will stop.

We're gonna need a bigger battery :roll:

Very Cool!!!

User avatar
flygear
Posts: 17
Joined: Thu Dec 31, 2015 11:45 am
Country: -

Re: ERSKY9X Coding

Post by flygear » Tue Jun 07, 2016 1:40 am

I must say this is one great feature!

Thanks.

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

Re: ERSKY9X Coding

Post by jhsa » Tue Jun 07, 2016 7:08 am

As I said before, it is very important that your SD Card is formatted with 32kb cluster sze. If you go to the SD Card status menu, you can now see the cluster size on the upper right corner.

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

Re: ERSKY9X Coding

Post by MikeB » Tue Jun 07, 2016 12:45 pm

I've found a small bug in the handling of switches assigned to "Prev" and "Next". If the switch is ON when you power on the radio (or change models possibly), it may be actioned, thus skipping to the previous or next track of a playlist when first starting playing.
I have the fix, but I won't post it in case there is anything else that needs looking at.

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

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

Re: ERSKY9X Coding

Post by jhsa » Tue Jun 07, 2016 1:02 pm

Thanks Mike.. I haven't noticed that one..

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

Re: ERSKY9X Coding

Post by jhsa » Tue Jun 07, 2016 3:21 pm

Soooo... :) what's next? Model transfer over Bluetooth? ;) :D :mrgreen:

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
Mutchy
Posts: 475
Joined: Wed Dec 28, 2011 3:26 am
Country: -
Location: Wollongong, Australia

Re: ERSKY9X Coding

Post by Mutchy » Thu Jun 09, 2016 7:47 am

MikeB wrote:I've found a small bug in the handling of switches assigned to "Prev" and "Next". If the switch is ON when you power on the radio (or change models possibly), it may be actioned, thus skipping to the previous or next track of a playlist when first starting playing.
I have the fix, but I won't post it in case there is anything else that needs looking at.

Mike.
Hi Mike.
Thanks very much for your efforts in coding this fantastic feature. I have loaded three music files and started testing. Each file plays nicely; starts stops and resumes. The loop feature also works properly. The music pauses while voice announcements are spoken. All these features work properly by highlighting the fields and pressing 'Menu" or by using the defined switches. Very nice.
The volume knob which Joao showed working in his video does not work for me. I suspect that this is something separate from the music feature and has to be programmed separately. No big deal for me as I always need full volume anyway.

Whilst the 'pause' button does show on the screen, the 'prev' and 'next' do not appear on my screen 4/12.
The sub menu MUSIC window has the fields to allow a switch to be defined to activate previous and next tracks but the switches do not work.

My Tx is a 9XR Pro. The software version loaded shows the following in the version window:
Vers: V. 81-Mike
Date: 06. 06. 2016
Time: 15:53:55
Sun: ersky9x-pr219
Mod: REVB-X

I notice that if you begin a track using the screen 4/12 with the switch in the stop position
1) The pause/resume switch works properly
2) Operation of the start/stop switch resets the screen to 'start' and, when start is selected, restarts the track at the beginning.
That appears logical to me; not an undesirable feature.

Steve

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

Re: ERSKY9X Coding

Post by jhsa » Thu Jun 09, 2016 8:53 am

Mutchy wrote:

The volume knob which Joao showed working in his video does not work for me. I suspect that this is something separate from the music feature and has to be programmed separately. No big deal for me as I always need full volume anyway.
Hi Steve, if you want to control the volume with a pot you need to define it in "Model Setup/General"
You need to do it for every model..
Whilst the 'pause' button does show on the screen, the 'prev' and 'next' do not appear on my screen 4/12.
The sub menu MUSIC window has the fields to allow a switch to be defined to activate previous and next tracks but the switches do not work.
"Prev" and "Next" only work when a track is playing AND if the selected "Type" is "List", not "name"
That means that you can only have prev and next if you select to play an album/playlist..
"Name" is for playing a single file..

For Albums/playlist", please create a sub-folder inside the "Music" folder, and give it a name with 14 characters maximum. Then put the files inside the folder. Files names can also have a maximum of 14 characters.
You can use max 16 files per album/playlist..
Once you hit "start" the radio will play the complete Album, and repeat if "Loop" is selected.
I notice that if you begin a track using the screen 4/12 with the switch in the stop position
1) The pause/resume switch works properly
2) Operation of the start/stop switch resets the screen to 'start' and, when start is selected, restarts the track at the beginning.
That appears logical to me; not an undesirable feature.
That is correct, and if you turn the radio OFF, it will remember the album and song the next time you use it ;) :)

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

Re: ERSKY9X Coding

Post by jhsa » Thu Jun 09, 2016 8:41 pm

Mike, could you please have a look at this log file, line 1076??

Flight from today. Plane about 20 metres in front of me flying low. Suddenly i had a rx signal lost alarm (I have one programmed on TX). I'm not sure I had a small loss of control also.. the plane did shake a bit,, but this was all very quick.

My question is, what does the 3rd column mean? Its value is zero on that line. Is it the number of packets received??
About 3 metres from me there was another club member with a Multiplex radio.. Could it be that it interfered with my radio? Find it strange..
Thanks

João
Attachments
Easystar-2016-06-09.csv
(225.49 KiB) Downloaded 152 times
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: 16609
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB » Thu Jun 09, 2016 9:20 pm

There is a counter that is set to 35 every time a telemetry packet is received. This is counted down every 10mS. If it goes to zero, then we have lost telemetry.m The value in column 3 is the value of this counter (plus 100 times another counter for sensor telemetry receipt). So all we know is that no telemetry packets were received for over 350mS, and lasted for less than 2 seconds!

Any chance the Tx antenna was pointing directly at the 'plane for a short while?

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

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

Re: ERSKY9X Coding

Post by jhsa » Thu Jun 09, 2016 11:14 pm

Thanks..
No.. The side of the antenna was pointing to the plane..

But this affected only telemetry only, not control, right? RSSI at that precise time showed over 80. or was that an old value??
I thought the plane also did something strange, but it didn't go to failsafe I think.. As i said , it all happened very quickly.. :(

On the next flight, and after a successful range test, I did point the antenna to the plane, but it did not happen again..
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
Kilrah
Posts: 10271
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: ERSKY9X Coding

Post by Kilrah » Fri Jun 10, 2016 8:48 am

Control may or may not be affected, can't know.
If no telemetry is received then RSSI is obviously showing something that was received before the drop...

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

Re: ERSKY9X Coding

Post by jhsa » Fri Jun 10, 2016 9:07 am

I made another flight afterwards, and no problem at all.. High, low, inverted... No problem.. It was just an 1 second thing, and that is what worries me..
I wonder if the Multiplex radio, even being at 3 or 4 meters from mine, swamped my radio's signal..
But, before, I already flew with the same radio and the same model much closer to the same Multiplex radio without problems. Really weird.

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

Re: ERSKY9X Coding

Post by jhsa » Wed Jun 15, 2016 1:39 pm

Mike, just saw your post about the templates on the other forum.
They are a bit hidden at the end of the mixer menu. Ok, if you go up once you can select the templates, but for that you must know that they are there.. I bet everybody tends to go DOWN when getting in any of the menus, not UP. So that makes them hard to find when you don't know where they are, or don't read the manual :D which I believe is the case of at least 80% of us ;)

I have a couple suggestions:
1 - enter the mixer menu, select a mix, click menu. A popup comes up. There is space for one more option?
2 - And this one is my favorite. Go to Model Setup index. Select Mixer and hit menu. Just like with the globals and telemetry menus, a popup comes up with Mixer and Templates. Mixer is obviously the first choice and is already highlighted. Need a template? Just click down once and hit menu.

We normally only use templates when working with the mixer. Like this it is impossible not to see them, and go back one level if we decide to use a template. I bet that people will even use them more. At the moment many of us don't even know they exist. another big step to make the firmware easier..
Just my opinion. :)
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: 16609
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB » Wed Jun 15, 2016 4:17 pm

I have (1) working, (2) will take more effort.

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

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

Re: ERSKY9X Coding

Post by jhsa » Wed Jun 15, 2016 4:46 pm

MikeB wrote:I have (1) working, (2) will take more effort.

Mike.
I understand, for (1) the popup menu is already there, for (2) it isn't ;)

We could try like that and see how it feels? I'm just not sure about having to select a mix first. A template normally affects more than one mix. I feel that the best place for it would be as in (2) :?
But if you already have it working we can try and see, unless you decide to try the other possibility.. There are a couple menus already following that logic.. :)

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: 1523
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: ERSKY9X Coding

Post by ReSt » Wed Jun 15, 2016 10:18 pm

I implemented a similar solution into my versions of Er9x and ErSky9x

I must state, that I never needed to use the Protocols menu, as I do not have any of the optional modules.

In Er9x I included the Protocols into the General option of the model setup menu, freeing up its entry and put the Templates selection in its place

In Ersky9x I added the Protocols option into the popup menu and added the templates option in the model setup menu.
And I removed the Templates option from the mixer.

I have modified and expanded the available templates to provide the following setups

Similar to the mixes I mark the templates with "R" or "+"
Templates that start with an "R" replace whatever was setup before for the model
Templates that start with a "+" add something into the existing model

R T-Tail
R V-Tail
R Delta with Differential
R Aileron with differential
+ Switches
+ Throttle cut
+ Sticky throttle cut
+ Trainer software setup
R Servotest
R Heli Setup
R Gyro Setup

Every model is set up for a motor on channel3 so you can fly a simple motor plane with a 3 channel receiver

Every model setup ("R") removes as much as I was able to do, from a previous model setup, e.g. old logic or safety/audio switches, trainer setup.

The switch setups ("+") are added into the existing model (overwriting possibly existing identical switches)


There are three templates of switches:

1.Switches:
-------------
a two position switch (immediately)
a three position switch (with slow up and down)
a latching switch (set with one switch, reset with another switch)
a latching switch (alternately set and reset with the activation of only one switch)

2.Throttle cut:
-----------------
activate the motor channel when switch is active

3.Sticky throttle cut:
------------------------
activate the motorchannel when switch is active but only if throttle is at minimum


Trainer software setup:
---------------------------
sets up the complete trainer menu and switches Trainer to "ON" in the model setup menu.
It also sets up several logical switches so that the student has control as long as the trainers sticks are in the neutral position (throttle low) and the trainer gets control as soon as he moves a stick out of the neutral position.
But that is my personal preference! :mrgreen:

For the servotest, I activate channel 1 because I find it confusing not to see any reaction on the display (because it works on channel 16 and that is not displayed by default)

Reinhard

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

Re: ERSKY9X Coding

Post by jhsa » Thu Jun 16, 2016 4:19 pm

Possible to implement this also in the radio firmware?? :mrgreen:

viewtopic.php?f=91&t=2835&p=115994#p115983

Thank you

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

Re: ERSKY9X Coding

Post by MikeB » Thu Jun 16, 2016 4:21 pm

Depends on how many of me there are working on it!

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

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

Re: ERSKY9X Coding

Post by jhsa » Thu Jun 16, 2016 4:25 pm

Good answer :mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen:

Well, obviously, if possible, if one of you feel like doing it, and when one of you has time for it :) :mrgreen:

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)”