OpenXsensor Configurator

Development & General Chat for the superb openxvario project.

Moderator: rainer

mstrens
Posts: 1206
Joined: Fri Dec 27, 2013 7:49 pm
Country: -

Re: OpenXsensor Configurator

Post by mstrens » Sat Oct 15, 2016 6:47 am

oXs take care of 2 types of Arduino : 5V 16Mhz and 3.3V 8 Mhz.
The selection is done in the Arduino IDE as Kalle123 said.

RightRudder
Posts: 241
Joined: Tue Jan 15, 2013 9:41 pm
Country: -

Re: OpenXsensor Configurator

Post by RightRudder » Sun Oct 16, 2016 6:35 pm

so the compiler gets the information about the target board from the IDE and sets the right timer load values based on compile time switches set somewhere in the code?

mstrens
Posts: 1206
Joined: Fri Dec 27, 2013 7:49 pm
Country: -

Re: OpenXsensor Configurator

Post by mstrens » Mon Oct 17, 2016 8:28 am

In fact, based on your selected hardware, IDE defines some parameters that can be used/tested in the code.
E.g. in file oXs_out_frsky.h you have this code :

Code: Select all

  #if F_CPU == 20000000L   // 20MHz clock 
    // Sinan: Not tested                                                     
    #define TICKS2COUNTSPORT         348  // Ticks between two bits.
    #define TICKS2WAITONESPORT       348  // Wait one bit period.
    #define TICKS2WAITONE_HALFSPORT  520    // Wait one and a half bit period.
  #elif F_CPU == 16000000L  // 16MHz clock                                                  
    #define TICKS2COUNTSPORT         278  // Ticks between two bits.
    #define TICKS2WAITONESPORT       278  // Wait one bit period.
    #define TICKS2WAITONE_HALFSPORT  416    // Wait one and a half bit period.
  #elif F_CPU == 8000000L   // 8MHz clock
    // Assumes a 8MHz clock                                                   
    #define TICKS2COUNTSPORT         139  // Ticks between two bits.
    #define TICKS2WAITONESPORT       139  // Wait one bit period.
    #define TICKS2WAITONE_HALFSPORT  208    // Wait one and a half bit period.
  #else
    #error Unsupported clock speed
  #endif

RightRudder
Posts: 241
Joined: Tue Jan 15, 2013 9:41 pm
Country: -

Re: OpenXsensor Configurator

Post by RightRudder » Mon Oct 17, 2016 1:56 pm

Ahhh yes this is exactly what I was concerned about. This makes life so easy for us with limited knowledge. I was afraid I would have to go digging in the code for those definitions and change the timer load values to use a different clock speed. I see that even 20MHz is a possibility. Thanks for helping me learn more about how the arduino IDE works!

Joe

pierrotm777
Posts: 4
Joined: Mon Jun 02, 2014 5:03 pm
Country: France, Metropolitan

Re: OpenXsensor Configurator

Post by pierrotm777 » Sun Sep 30, 2018 4:44 pm

Nice idea. I follow this project.


User avatar
Kilrah
Posts: 9657
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: OpenXsensor Configurator

Post by Kilrah » Sun Sep 30, 2018 5:28 pm

It's been inactive for 2 years.

mstrens
Posts: 1206
Joined: Fri Dec 27, 2013 7:49 pm
Country: -

Re: OpenXsensor Configurator

Post by mstrens » Sun Sep 30, 2018 7:45 pm

I am sorry but the developper of the configurator has stopped supporting his tool.
So, the remaining solution is to edit manually the 2 files oXs_config_basic.h and oXs_config_advanced.h

If this is to difficult, you can explain which sensors/protocol you want and I can make the config files for you.

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

Re: OpenXsensor Configurator

Post by jhsa » Sun Sep 30, 2018 9:22 pm

Still, it is really a shame. I did love this tool :(

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
kalle123
Posts: 717
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: OpenXsensor Configurator

Post by kalle123 » Mon Oct 01, 2018 5:42 am

jhsa wrote:
Sun Sep 30, 2018 9:22 pm
Still, it is really a shame. I did love this tool :(

João
Get used to
... edit manually the 2 files oXs_config_basic.h and oXs_config_advanced.h
You will love that way too ;)

br KH (who could search on backup HDDs here for a copy of that Configurator and post it here :mrgreen: )

User avatar
kalle123
Posts: 717
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: OpenXsensor Configurator

Post by kalle123 » Mon Oct 01, 2018 6:37 am

Hi João.

Found a copy and it is still working ... :lol:

I bit obsolete, but never mind.

Image

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

Re: OpenXsensor Configurator

Post by MikeB » Mon Oct 01, 2018 7:38 am

Was the source code of this ever published?

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

User avatar
kalle123
Posts: 717
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: OpenXsensor Configurator

Post by kalle123 » Mon Oct 01, 2018 8:37 am

Mike, that is, what I found here.

Might have a look. It was written in java ...

br KH
Attachments
OXS_Configurator_v2.1_linux.zip
(4.53 MiB) Downloaded 3 times

Carbo
Posts: 336
Joined: Fri Aug 02, 2013 6:55 pm
Country: Germany
Location: Freinsheim RP

Re: OpenXsensor Configurator

Post by Carbo » Mon Oct 01, 2018 8:42 am


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

Re: OpenXsensor Configurator

Post by jhsa » Mon Oct 01, 2018 11:31 am

kalle123 wrote:
Mon Oct 01, 2018 5:42 am


Get used to
How do you think I do it?? :D
You will love that way too ;)
No I don't :mrgreen: I prefered the configurator by far.
And it would make life easier to users that never had contact with programming, and people like myself that can't do math :mrgreen:
The configurator did some of the calculations for us..

Editing the config file will NEVER be the same as inserting the values in a dedicated app. So, how can I love editing a config file? Easy answer, I don't.. :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
kalle123
Posts: 717
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: OpenXsensor Configurator

Post by kalle123 » Mon Oct 01, 2018 4:22 pm

So no use to cheer you up, then.

But João, I am used to do the configuration in the config file, but I hate it being split up in basic and advanced ;)

br KH

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

Re: OpenXsensor Configurator

Post by jhsa » Mon Oct 01, 2018 4:41 pm

kalle123 wrote:
Mon Oct 01, 2018 4:22 pm
So no use to cheer you up, then.
:mrgreen: looool :mrgreen:
But João, I am used to do the configuration in the config file, but I hate it being split up in basic and advanced ;)
Well, what I can say is that sometimes I do find myself switching from one to the other trying to find where the options I need are. I guess developers have a much different idea of what the expression "User Friendly" means :mrgreen:
So, we can always help them by suggesting improvements to the projects, and it is a nice way of participating in those projects as well.. ;) :) The configurator was actually an wonderful addition to the oXs. I hope someone pick the project up from where it was left.
Another great tool for both Ersky9x and OpenTX is the great voice files creator TTSAutomate.. This one is being maintained of course.. :)

I confess, it has been a while since last time I built an oXs, but I have a couple new gliders, and I will have to build a couple varios for them.
I have been busy with some other projects.. One of them is called WORK :shock: :o :evil: :twisted:

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 “OpenXVario - an open source vario supported by the open source firmwares!!”