er9x development

er9x is the best known firmware. It has a superb range of features and is well supported by the community. Well worth trying out.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: er9x development

Post by jhsa »

ReSt wrote: The channel value jumps back to the position where you left the slow motion mode the last time and from there it slowly moves to its new endposition.
This looks like that very known problem that happens when we have more than 1 mix with the slow feature. The solution for this I think is to use a virtual channel or create a mix with "THIS" as source as the last mix on the channel..

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

Re: er9x development

Post by MikeB »

I understand the problem. I'm not sure exactly what the solution is, it is quite complicated. I think openTx has the same problem!

For your specific requirement, where you just wish to switch slow on and off, try:
CH3: +100% THR curve 1
R +100% THIS Switch(AIL) slow (u10:d10)

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: er9x development

Post by jhsa »

I guess this is the oldest problem of these firmwares that was still not solved. I suppose it would take a complete rewrite of the mixer to fix this 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: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x development

Post by MikeB »

Almost certainly! Delay and slow only apply to a single mix. It is actually very difficult to decide what should happen, particularly with slow, when you enable and disable a mix that has slow active.
Currently, when you have a mix disabled, it is ignored, but remembers where it was!

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
ReSt
Posts: 1581
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: er9x development

Post by ReSt »

MikeB wrote: For your specific requirement, where you just wish to switch slow on and off, try:
CH3: +100% THR curve 1
R +100% THIS Switch(AIL) slow (u10:d10)

Mike.
Tried THIS with your last supplied test version and it seems to be the best compromise in the moment.
It does no irregular jumps when switching back and forth

But

the slow function seems to ignore the curve of the first mix line. The channel output changes with a constant speed all over the full range.

Reinhard

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

Re: er9x development

Post by MikeB »

I don't think there is an easy solution. When you enable a "replace" mix that has slow or delay enabled, it picks up the current CHANNEL position from the last time the mixer code ran and uses that as the position from which this replace mix starts so it moves slowly from that position to the new position. Unfortunately, this is done before any curve is applied to the replace mix, so the curve, sort of, gets applied twice. This is the cause of the jump.

To solve your requirement, you need to separate the curve from the slow. You need to use a virtual channel to do this:
CH09: +100% THR
R +100% THIS switch(AIL) Slow(u10:d10)

CH03: +100% CH9 Curve(c9)

Does do, I think, what you want.

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: er9x development

Post by jhsa »

Wouldn't using a flight mode also work? Somehow the slow function seem to work properly with them..

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

Re: er9x development

Post by MikeB »

Actually, in this case, no. It would work in the same way as my previous idea/code. It would NOT follow the curve to make it slower still.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
ReSt
Posts: 1581
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: er9x development

Post by ReSt »

MikeB wrote:
To solve your requirement, you need to separate the curve from the slow. You need to use a virtual channel to do this:
CH09: +100% THR
R +100% THIS switch(AIL) Slow(u10:d10)

CH03: +100% CH9 Curve(c9)

Does do, I think, what you want.

Mike.
Mike, you got it. :mrgreen:
This is exactly what I was looking for, and it even runs on r813

Thanks

Reinhard
User avatar
Malapell
Posts: 56
Joined: Tue Mar 18, 2014 7:25 pm
Country: -

Re: er9x development

Post by Malapell »

I found in this last test version a posible bug in the CustomSwichtes screen
Scrolling down is not posible to reach the last SI, the end actually is SC and returns to the top list

I used the posted versión for 128 on my 9XR.
er9x-Frsky-128-2561.zip11-Sep_2014 16:00
Second test fix for mix with replace/curve/slow bug fix(230.6 KiB) Downloaded 3 times

SUN: er9x-r814
VERS: V1.3-Mike
Date: 11.09.2014
TIME: 14:21:14
MOD: FRSKY 128

Jordi
Last edited by Malapell on Sun Sep 14, 2014 2:13 pm, edited 1 time in total.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: er9x development

Post by jhsa »

Confirmed :)

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
Malapell
Posts: 56
Joined: Tue Mar 18, 2014 7:25 pm
Country: -

Re: er9x development

Post by Malapell »

but they works in the background
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x development

Post by MikeB »

A slightly odd bug this one. If you go to the model index menu (14/14), and select C.SWITCHES from there, you get all the switches available for editing!

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: er9x development

Post by jhsa »

Maybe just a display thing?
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
Malapell
Posts: 56
Joined: Tue Mar 18, 2014 7:25 pm
Country: -

Re: er9x development

Post by Malapell »

Is a pointer ussage at screen

Enviado desde mi GT-I9100 mediante Tapatalk
User avatar
Malapell
Posts: 56
Joined: Tue Mar 18, 2014 7:25 pm
Country: -

Re: er9x development

Post by Malapell »

This afternoon i spend some time playing with the new Voice Alarms....

I have a doubt with the available functions:
v > val OK
v < val OK
|v| > val OK
|v| < val OK
v`= val this one is not clear for me

Can i get a example with this...

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

Re: er9x development

Post by jhsa »

It means "approximately" :) ;)
And I would love to have it on the custom switches also ;)

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

Re: er9x development

Post by MikeB »

I have exactly ONE spare possibility for custom switch functions, only 4 bits for the code.
IF I put this in, that is used up, and there will be nothing spare for anything other possible custom switch functions.
The question is, therefore, is this function the best to put in this one spare option?

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
DLONE
Posts: 11
Joined: Sun Mar 04, 2012 9:45 pm
Country: -

Re: er9x development

Post by DLONE »

Hi Guys,

Was away from the hobby a while, but back again. May I ask somthing for sure bothering question?

What is the actual development enwironment you use? Toolchain, IDE?
Is there any doc, which is up to date, and reflect the actual environment?

Thanks a lot in advance,

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

Re: er9x development

Post by jhsa »

MikeB wrote:I have exactly ONE spare possibility for custom switch functions, only 4 bits for the code.
IF I put this in, that is used up, and there will be nothing spare for anything other possible custom switch functions.
The question is, therefore, is this function the best to put in this one spae option?

Mike.
Wouldn't this make it easier to detect a single position? Example, the positions of a 6 position switch.. Another example, divide a pot in several parts (positions), etc, etc.. I can see much use for it.. we have functions to detect when a value is greater than/smaller than, etc.. But as far as I know we have none to detect a single position.. that would have to be achieved using at least 2 custom switches..

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

Re: er9x development

Post by MikeB »

I (partly) lied. On the 128/2561, the extra custom switches (CSD to CSI) do have 8 bits for the function (I obviously planned ahead, these also have a ful set of 'and' switches available). This means I should be able to add in this function on those six custom switches. The 128/2561 also have the flash to allow this to be added.

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

Re: er9x development

Post by MikeB »

DLONE wrote:What is the actual development enwironment you use? Toolchain, IDE?
Is there any doc, which is up to date, and reflect the actual environment?
For er9x, the compiler I'm using is avr-gcc version 4.8.0. I personally use an editor called Multiedit. While not an IDE, it is a very powerful editor, and allows integration into the compiler anyway.

I don't think there is any specific doc. but there are a few posts around describing the compiler install.
eepe is generated using QTCreator.

What OS are you using? (Windows, Linux etc.).
You might read this thread: viewtopic.php?f=5&t=1165&hilit=winavr.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
Kilrah
Posts: 11109
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: er9x development

Post by Kilrah »

DLONE wrote: What is the actual development enwironment you use? Toolchain, IDE?
All you need is avr-gcc and your favorite text editor.
DLONE
Posts: 11
Joined: Sun Mar 04, 2012 9:45 pm
Country: -

Re: er9x development

Post by DLONE »

MikeB wrote:
DLONE wrote:What is the actual development enwironment you use? Toolchain, IDE?
Is there any doc, which is up to date, and reflect the actual environment?
For er9x, the compiler I'm using is avr-gcc version 4.8.0. I personally use an editor called Multiedit. While not an IDE, it is a very powerful editor, and allows integration into the compiler anyway.

I don't think there is any specific doc. but there are a few posts around describing the compiler install.
eepe is generated using QTCreator.

What OS are you using? (Windows, Linux etc.).
You might read this thread: viewtopic.php?f=5&t=1165&hilit=winavr.

Mike.
Mike,
Thanks for your answer! I using Linux (ok, using is a bit too much, I installed it only for er9X development), Ubuntu 14.04.
avr-gcc is 4.8.2
I will give a try to the editor you recommendend.

The toolchain installation was not a problem, I used the description from er9x wiki, while it was a bit errous (perhaps outdated), I got it work.

In fact, I was able to compile the firmware... but...
Some years ago, I tried the same think on windows, Then I hade a big - big concern.... and it looks like the same under Linux.
Call me maniac, or anything.... but the code generated on my system is not the same as the binaries in the repository. It is for sure only my maredream, but I simply not thrust in the whole comiling etc, until I do not get the same binary.... (ok, as the stamp file different so it can be a bit different), or until i do not underestand the secret / reason why it is different.

If you have any idea, what to check etc, it would be highly appreciated!

Laszlo
DLONE
Posts: 11
Joined: Sun Mar 04, 2012 9:45 pm
Country: -

Re: er9x development

Post by DLONE »

Kilrah wrote:
DLONE wrote: What is the actual development enwironment you use? Toolchain, IDE?
All you need is avr-gcc and your favorite text editor.

Thanks Kilrah,
The avr-gcc is not a problem, being relative new to Linux, do not have any favorite text editor. :-) So I will try out the editor Mike recommended.
I'm a bit surprised, you guys not using any IDE... Probably I will give a try to Eclipse after I able to compile as I want...

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

Re: er9x development

Post by MikeB »

You probably might as well go straight to Eclipse. You can get that for free, MultiEdit will cost!

The different compiler (you 4.8.2, me 4.8.0) is probably enough to make the difference. If I get a bit of time, I'll try installing 4.8.2!
I'm using Windows.

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

Re: er9x development

Post by MikeB »

Looks like I've slipped the v1~=ofs custom switch function in for the extra custom switches in the 128/2561 versions. I've also changed the character (in the font file) from ` to ~. I had done this on ersky9x but forgot to do this in er9x.

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: er9x development

Post by jhsa »

Mike, what about changing "ofs" to "val" the same as the audio logical functions. I think value makes more sense than offset, don't you think?

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
DLONE
Posts: 11
Joined: Sun Mar 04, 2012 9:45 pm
Country: -

Re: er9x development

Post by DLONE »

MikeB wrote:You probably might as well go straight to Eclipse. You can get that for free, MultiEdit will cost!

The different compiler (you 4.8.2, me 4.8.0) is probably enough to make the difference. If I get a bit of time, I'll try installing 4.8.2!
I'm using Windows.

Mike.

Thanks Mike,

I will definitelly try Eclipse. I found it very nice, using for little Android stuff.
I'm a bit surprised, you use windows :D
Will try to locate V4.8.0 too but I find it very difficult to find things in OpenSource Word, especially older versions... but that is an other story.

Will give a feedback, as my time allows to play around.

BR,

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

Re: er9x development

Post by MikeB »

Yes, I've been trying to locate a build of avr-gcc 4.8.2 for windows, but failed so far.

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

Post Reply

Return to “er9x”