Current SPAD.neXt Release: 0.9.12.123

This forum has closed. Please join our Discord Community.

SPAD.neXt online services are no longer available for SPAD.neXt Versions < 0.9.11.5

Custom Expressions/Conditions

Discussions about new feature ideas.
To request a new feature please open a ticket
Locked

Expression Implementation

Poll ended at 21 Apr 2016, 19:06

Option A
2
33%
Option B
3
50%
Option C
1
17%
I don't care
0
No votes
 
Total votes: 6

User avatar
c0nnex
Site Admin
Posts: 5469
Joined: 10 Mar 2015, 21:52
Location: Munich, Germany
Contact:
Status: Offline

Custom Expressions/Conditions

Post by c0nnex » 18 Apr 2016, 19:06

While working on getting all Saitek default BIP Plates into SPAD.neXt i recognized that custom expressions and mixed AND/OR Conditions are needed.

So now the question is, how to implement this.
( As Example a condition that shall be true if percentage of fuel left > 10% or unlimited fuel is on )

Option A:
Create a "click" interface to create expressions by clicking them together with buttons. pretty much like the conditions right now. No manual edit possible.
editopt1.PNG
Option B:
Implement a full fledged editor where you can type the expressions and stuff. With Syntax highlighting and the possibility to create real complex expressions and programmings. Databrowser for selection of data included of course.
editopt2.PNG
Option C:
Option B + Option A: Implement editor, but add buttons for inserting stuff.

Option B is less code to write (as i can rely on existing tools), but more complex and harder for non IT-pro's. But after all that would be an "expert" option anyway.
You do not have the required permissions to view the files attached to this post.

User avatar
Oz Flyer
Betatester
Posts: 741
Joined: 23 Sep 2015, 10:10
Location: YMMB, Melbourne, Australia
Contact:
Status: Offline

Re: Custom Expressions/Conditions

Post by Oz Flyer » 19 Apr 2016, 10:05

My vote is for C (Both) as this give you point and click to get you started and then gives you time to learn scripting.
Good for the newbie.
David
OZ Flyer
Near YMMB
40+ year of Flight Siming.
Sim: subLOGIC/Microsoft Flight Sim's/DTG FSX, Microsoft Flight, DTG Filght School/FSW/Train Sim/TSW, ETS2 & ATS.
Hardware: Logitech, Saitek, Arduino 2560's & Leo's, BBI-32, PAC LED.

User avatar
Oz Flyer
Betatester
Posts: 741
Joined: 23 Sep 2015, 10:10
Location: YMMB, Melbourne, Australia
Contact:
Status: Offline

Re: Custom Expressions/Conditions

Post by Oz Flyer » 23 Apr 2016, 03:32

Hi Ulrich,
Will you be looking at upgrading all panels/controls to this?
David
OZ Flyer
Near YMMB
40+ year of Flight Siming.
Sim: subLOGIC/Microsoft Flight Sim's/DTG FSX, Microsoft Flight, DTG Filght School/FSW/Train Sim/TSW, ETS2 & ATS.
Hardware: Logitech, Saitek, Arduino 2560's & Leo's, BBI-32, PAC LED.

User avatar
c0nnex
Site Admin
Posts: 5469
Joined: 10 Mar 2015, 21:52
Location: Munich, Germany
Contact:
Status: Offline

Re: Custom Expressions/Conditions

Post by c0nnex » 23 Apr 2016, 04:08

Yes it will be a general implementation

User avatar
thedazman
Betatester
Posts: 1808
Joined: 28 Mar 2015, 10:47
Location: United Kingdom
Contact:
Status: Offline

Re: Custom Expressions/Conditions

Post by thedazman » 23 Apr 2016, 10:33

Guess I'm the only one who selected A) lol.

Just don't break the FIP's/BML's :-)

Daz
"theDAZman" aka "theGFXguy"
Image
https://fipgauges.com

User avatar
c0nnex
Site Admin
Posts: 5469
Joined: 10 Mar 2015, 21:52
Location: Munich, Germany
Contact:
Status: Offline

Re: Custom Expressions/Conditions

Post by c0nnex » 28 Jul 2016, 02:43

Custom Expressions are coming ....
You do not have the required permissions to view the files attached to this post.

User avatar
thedazman
Betatester
Posts: 1808
Joined: 28 Mar 2015, 10:47
Location: United Kingdom
Contact:
Status: Offline

Re: Custom Expressions/Conditions

Post by thedazman » 28 Jul 2016, 19:57

God, just when I got used to adding AND and OR to the end of each evaluation! (FIP xml).

This is of course more logical than the FIP coding rubbish!

:-)

Daz
"theDAZman" aka "theGFXguy"
Image
https://fipgauges.com

User avatar
c0nnex
Site Admin
Posts: 5469
Joined: 10 Mar 2015, 21:52
Location: Munich, Germany
Contact:
Status: Offline

Re: Custom Expressions/Conditions

Post by c0nnex » 28 Jul 2016, 22:21

thedazman wrote:God, just when I got used to adding AND and OR to the end of each evaluation! (FIP xml).
This is of course more logical than the FIP coding rubbish!
:-)
You will be able to use that format for FIP-Coding as well (beta available tonight).
(An Expression Converter will be part of the GaugeDesigner License)

User avatar
thedazman
Betatester
Posts: 1808
Joined: 28 Mar 2015, 10:47
Location: United Kingdom
Contact:
Status: Offline

Re: Custom Expressions/Conditions

Post by thedazman » 29 Jul 2016, 00:40

I'm assuming this conversion is optional and FIP xml will work programmed either way?

Daz
"theDAZman" aka "theGFXguy"
Image
https://fipgauges.com

User avatar
c0nnex
Site Admin
Posts: 5469
Joined: 10 Mar 2015, 21:52
Location: Munich, Germany
Contact:
Status: Offline

Re: Custom Expressions/Conditions

Post by c0nnex » 29 Jul 2016, 03:40

thedazman wrote:I'm assuming this conversion is optional and FIP xml will work programmed either way?
No of course you will have to change all gauges to the new way and since the converter is not available yet, you will have to do it manually.
Better hurry up , release is on Friday evening ...






:lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:

Locked