er9x development
Re: er9x development
I didn't even know about it.. I don't need it
Last edited by jhsa on Mon Jun 18, 2012 6:27 pm, edited 1 time in total.
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
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
- Rob Thomson
- Site Admin
- Posts: 4543
- Joined: Tue Dec 27, 2011 11:34 am
- Country: United Kingdom
- Location: Albury, Guildford
- Contact:
er9x development
Can't see why you would want to know that?
Sent from my iPhone using Tapatalk
Sent from my iPhone using Tapatalk
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
Re: er9x development
I've never used it. I'm not sure what it would be useful for.
-Gohst
-Gohst
- cre8tiveleo
- Posts: 1434
- Joined: Tue Dec 27, 2011 6:13 pm
- Country: -
- Location: Ontario,(GTA North)
- Contact:
Re: er9x development
I knew about it, but wondered what use it was...
Re: er9x development
I can't say that I ever use the stat screen
- ShowMaster
- Posts: 4327
- Joined: Thu Dec 29, 2011 3:44 am
- Country: -
- Location: Los Angeles, CA USA
Re: er9x development
I don't look at it? Ok with me.
SM
SM
- Rob Thomson
- Site Admin
- Posts: 4543
- Joined: Tue Dec 27, 2011 11:34 am
- Country: United Kingdom
- Location: Albury, Guildford
- Contact:
er9x development
Why not remove the whole screen?
Sent from my iPhone using Tapatalk
Sent from my iPhone using Tapatalk
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
Re: er9x development
what is the other stuff there anyway?
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
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
Re: er9x development
I didn't know that it existed, don't use it (obviously) and can't think of any useful purpose for anything I do.
Ted
Ted
-
- 9x Developer
- Posts: 2764
- Joined: Fri Dec 30, 2011 11:11 pm
- Country: -
Re: er9x development
Yes. Should be an option. a lot of RAM there!
Bertrand.
Bertrand.
Re: er9x development
The timers are useful, you can see everything without explicitly programming a timer to do so. I've used it several times with a new model, you do a flight, check the stats screen and directly see throttle time and TH%. Then jsut take those values, remove a bit, and set your timers and alarms.
Throttle graph (which is what uses RAM), no use for me.
Throttle graph (which is what uses RAM), no use for me.
Last edited by Kilrah on Mon Jun 18, 2012 10:33 pm, edited 1 time in total.
Re: er9x development
so, how many people use this to set timers? well I didn't and will never do..my timers I set according to readings I take from the batteries themselves.. and I never fly with the same throttle setting, so for me is pretty much useless as Lipos charge vary a lot with temperature for example. And, since I have telemetry I stopped relying on timers. just listen to the battery alarm. On my tricopter for example in summer I fly 5 and half minutes and in winter about a minute less. Anyway, what do you say guys? remove? don't remove?
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
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
- MikeB
- 9x Developer
- Posts: 17990
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: er9x development
If I remove anything, it would only be the throttle trace graph, that is what uses up lots of RAM (over 120 bytes). The timer values would still be left.
Mike.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: er9x development
Wow, I had no idea that those throttle timers were even there. They could have come in handy a few times. However I am not against removing them since I have gotten along without them.
I do agree that the graph on the bottom seems largely unnecessary.
I do agree that the graph on the bottom seems largely unnecessary.
Re: er9x development
Hypothetical scenario:
Background:
* suppose I have a desire for "long range" ( think FPV etc)
* suppose my TX/RX are all stock hardware ( ie no FrSky etc )
* suppose I'm interested in having a failsafe, but don't care for digitial telemetry ( I have also a video downlink and OSD gives me this data)
* suppose I'm an embedded systems programmer
Plan:
I therefore want to implement an on-board microcontroller that can listen to data coming from RC ( eg, on a specific channel like channel 8 ), and all I want it to do is "trigger a failsafe" into my other on-board computer systems ( ArduPilot ) - which I can do by outputting a specific PWM value on a single channel. The ArduPilot can then switch mode/s, and turn the plane around , and fly it back to me.
Idea:
I already know that in the event of signal loss, the stock turning RX "holds" the last known position of the servo/s, so following on from an idea got elsewhere [*], I want to make the TX ( running er9x) output a constantly varying stream of data on channel 8 ( eg, flipping constantly from PWM1000, to PWM2000 ). In the planned microcontroller that I'll plug into channel 8, it will simply watch for changing data, and if the incoming stream of data doesn't *keep changing* ( within a time limit of say 1 or 2 seconds), then it will change the output value to the appropriate fixed PWM value to signal RC link loss.
For other user/s without onboard flight-stabilisation, it could be as simple as connecting the PWM output to a servo that opens a parachute ( to prevent fly-aways), or the PWM output could be connected to the rudder,flap,aileron or whatever, so that the plane starts to "turn around", and hopefully come back into radio range.
I'm quite comfortable with building the in-air part of this ( microcontroller, software etc ) , but I'm not familiar with the insides of er9x, so I want to know if
(a) is this do-able
(b) would the existing formware be able to be made to do it?
(c) how much re-programming effort would it take?
(d) any volunteers? ( I'll send you one of my prototype failsafe units if you need to write actual code! )
* http://eastbay-rc.blogspot.com.au/2011/ ... gy-9x.html
Background:
* suppose I have a desire for "long range" ( think FPV etc)
* suppose my TX/RX are all stock hardware ( ie no FrSky etc )
* suppose I'm interested in having a failsafe, but don't care for digitial telemetry ( I have also a video downlink and OSD gives me this data)
* suppose I'm an embedded systems programmer
Plan:
I therefore want to implement an on-board microcontroller that can listen to data coming from RC ( eg, on a specific channel like channel 8 ), and all I want it to do is "trigger a failsafe" into my other on-board computer systems ( ArduPilot ) - which I can do by outputting a specific PWM value on a single channel. The ArduPilot can then switch mode/s, and turn the plane around , and fly it back to me.
Idea:
I already know that in the event of signal loss, the stock turning RX "holds" the last known position of the servo/s, so following on from an idea got elsewhere [*], I want to make the TX ( running er9x) output a constantly varying stream of data on channel 8 ( eg, flipping constantly from PWM1000, to PWM2000 ). In the planned microcontroller that I'll plug into channel 8, it will simply watch for changing data, and if the incoming stream of data doesn't *keep changing* ( within a time limit of say 1 or 2 seconds), then it will change the output value to the appropriate fixed PWM value to signal RC link loss.
For other user/s without onboard flight-stabilisation, it could be as simple as connecting the PWM output to a servo that opens a parachute ( to prevent fly-aways), or the PWM output could be connected to the rudder,flap,aileron or whatever, so that the plane starts to "turn around", and hopefully come back into radio range.
I'm quite comfortable with building the in-air part of this ( microcontroller, software etc ) , but I'm not familiar with the insides of er9x, so I want to know if
(a) is this do-able
(b) would the existing formware be able to be made to do it?
(c) how much re-programming effort would it take?
(d) any volunteers? ( I'll send you one of my prototype failsafe units if you need to write actual code! )
* http://eastbay-rc.blogspot.com.au/2011/ ... gy-9x.html
Re: er9x development
There is a servo test template in the er9x firmware that moves a servo back and forth on a single channel. I don't see why this couldn't be implemented on channel 8 to give you your constantly changing info.
Re: er9x development
This seemed like it deserves it's own thread.buzz wrote:Hypothetical scenario:
viewtopic.php?f=35&t=1054
-Gohst
- MikeB
- 9x Developer
- Posts: 17990
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: er9x development
Having added the voice option, er9x is now back under svn on the er9x site. It is also compiled using a newer compiler that saved some flash. It has been tested, but just double check all seems OK before flying.
Mike.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: er9x development
I have searched but did not find yet... if someone could please help me find:
How to connect a er9x to Hitec Optic6 in trainer port?
How to share channels 10, 11 and 12 of er9x so that they can be controlled with Hitec Optic 6 sticks at the same time has er9x uses channels 1-9?
How to connect a er9x to Hitec Optic6 in trainer port?
How to share channels 10, 11 and 12 of er9x so that they can be controlled with Hitec Optic 6 sticks at the same time has er9x uses channels 1-9?
Re: er9x development
So the 9x is the master or the slave? From your post I seem to understand the 9X should be the master, but not sure.
You need to find out what the pinout of the Aurora's trainer output is. Connect the 2 so that the PPM out of the Aurora goes to the PPM in/out of the 9x (tip of the 3.5mm jack), and ground goes to ground (sleeve on the 9x jack).
Then you can get the Aurora's channels on er9x as PPM1-8 in the mixer sources. To assign channel 4 of the Aurora to channel 10 of the 9x for example, create a mixer line on CH10 that has 100% PPM4.
You need to find out what the pinout of the Aurora's trainer output is. Connect the 2 so that the PPM out of the Aurora goes to the PPM in/out of the 9x (tip of the 3.5mm jack), and ground goes to ground (sleeve on the 9x jack).
Then you can get the Aurora's channels on er9x as PPM1-8 in the mixer sources. To assign channel 4 of the Aurora to channel 10 of the 9x for example, create a mixer line on CH10 that has 100% PPM4.
Re: er9x development
9x should be master and Hitec should be slave.
the 12ch from 9x should be controlled from 1-9 by 9x and from 10-12 from Hitec simultaneously
the 12ch from 9x should be controlled from 1-9 by 9x and from 10-12 from Hitec simultaneously
Re: er9x development
You are right Kilrah it worked Thanks!!
- MikeB
- 9x Developer
- Posts: 17990
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: er9x development
Having switched to the 4.7.0 version of the compiler I found the following compile option:
CPPFLAGS += -mstrict-X
This restricts how the X register (R26,R27) is used. The result was a saving of 640 bytes of flash!
Still to test the compiled code, but looks rather useful.
Mike.
CPPFLAGS += -mstrict-X
This restricts how the X register (R26,R27) is used. The result was a saving of 640 bytes of flash!
Still to test the compiled code, but looks rather useful.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
-
- 9x Developer
- Posts: 1109
- Joined: Sat Dec 31, 2011 12:11 am
- Country: -
- Location: Massa (MS), Tuscany, Italy
Re: er9x development
It really saves a lot of flash also on open9x, 776 bytes over 62826, it's indeed worth of a check to the compiled code.MikeB wrote:Having switched to the 4.7.0 version of the compiler I found the following compile option:
CPPFLAGS += -mstrict-X
This restricts how the X register (R26,R27) is used. The result was a saving of 640 bytes of flash!
Still to test the compiled code, but looks rather useful.
Mike.
-
- 9x Developer
- Posts: 2764
- Joined: Fri Dec 30, 2011 11:11 pm
- Country: -
Re: er9x development
Indeed, thanks Mike!
Bertrand.
Bertrand.
- MikeB
- 9x Developer
- Posts: 17990
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: er9x development
I have just committed r767 of er9x. This is the FIRST time I have actually committed the HEX files, previously Erazz has always done the compile and commit of them.
I don't expect any problems.
Mike.
I don't expect any problems.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
- MikeB
- 9x Developer
- Posts: 17990
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: er9x development
Just committed r768 of er9x. Changes:
FAS100 voltage added - assumes 100K/10K resistors, I think these are the correct ones.
Splash marker moved - the later compiler put it in the wrong place.
Voice welcome message bug fixed - shouldn't get chopped now.
Individual cell voltages summed for total battery voltage - available on custom telemetry screen and for custom switch comparison.
Custom Switches, extra AND facility added.
At the end of each custom switch line in the menu is an extra option, defaults to -- meaning no change/effect. The option may be selected to be S1 to SA. If selected then the specified custom switch must be ON as well as the rest of the switch configuration (extra AND function).
Mike.
FAS100 voltage added - assumes 100K/10K resistors, I think these are the correct ones.
Splash marker moved - the later compiler put it in the wrong place.
Voice welcome message bug fixed - shouldn't get chopped now.
Individual cell voltages summed for total battery voltage - available on custom telemetry screen and for custom switch comparison.
Custom Switches, extra AND facility added.
At the end of each custom switch line in the menu is an extra option, defaults to -- meaning no change/effect. The option may be selected to be S1 to SA. If selected then the specified custom switch must be ON as well as the rest of the switch configuration (extra AND function).
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: er9x development
Good stuff Mike, thanks!
I know I said I didn't mind swapping a couple of resistors in my FAS-100,
stupid me!
I just had a look at them, they're really tiny! (pin head size)
Think I'll wait a bit to see which version of it prevails, mine has 20k/1k
Clive
P.s. Having had another beer, I think I could tackle it
Does anyone know the size to order from R.S. please?
Thanks
I know I said I didn't mind swapping a couple of resistors in my FAS-100,
stupid me!
I just had a look at them, they're really tiny! (pin head size)
Think I'll wait a bit to see which version of it prevails, mine has 20k/1k
Clive
P.s. Having had another beer, I think I could tackle it
Does anyone know the size to order from R.S. please?
Thanks
- MikeB
- 9x Developer
- Posts: 17990
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: er9x development
I don't really want to add an option for scaling this voltage, it uses up too much flash. Just silly that FrSky have produced two different versions. As you say, we need to wait to see which version really is the 'correct' one. I can't think of an easy way to support both scalings.
Mike.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: er9x development
I don't think there's an alternative.
Even if the 100k/10k is the "final" value, it doesn't change the fact that the vast majority of those who have one of these sensors today have the "wrong" version...
Actually I checked yesterday, and with FrSky equipment (DHT-U with latest firmware) my 20k/1k version is the one that gives the correct value. Wonder how they'll handle that on their side...
Even if the 100k/10k is the "final" value, it doesn't change the fact that the vast majority of those who have one of these sensors today have the "wrong" version...
Actually I checked yesterday, and with FrSky equipment (DHT-U with latest firmware) my 20k/1k version is the one that gives the correct value. Wonder how they'll handle that on their side...