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
- c0nnex
- Site Admin
- Posts: 5469
- Joined: 10 Mar 2015, 21:52
- Location: Munich, Germany
- Contact:
- Status: Offline
Custom Expressions/Conditions
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. 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. 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.
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. 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. 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.
- Oz Flyer
- Betatester
- Posts: 741
- Joined: 23 Sep 2015, 10:10
- Location: YMMB, Melbourne, Australia
- Contact:
- Status: Offline
Re: Custom Expressions/Conditions
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.
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.
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.
- Oz Flyer
- Betatester
- Posts: 741
- Joined: 23 Sep 2015, 10:10
- Location: YMMB, Melbourne, Australia
- Contact:
- Status: Offline
Re: Custom Expressions/Conditions
Hi Ulrich,
Will you be looking at upgrading all panels/controls to this?
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.
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.
- c0nnex
- Site Admin
- Posts: 5469
- Joined: 10 Mar 2015, 21:52
- Location: Munich, Germany
- Contact:
- Status: Offline
Re: Custom Expressions/Conditions
Yes it will be a general implementation
- thedazman
- Betatester
- Posts: 1808
- Joined: 28 Mar 2015, 10:47
- Location: United Kingdom
- Contact:
- Status: Offline
Re: Custom Expressions/Conditions
Guess I'm the only one who selected A) lol.
Just don't break the FIP's/BML's
Daz
Just don't break the FIP's/BML's
Daz
- c0nnex
- Site Admin
- Posts: 5469
- Joined: 10 Mar 2015, 21:52
- Location: Munich, Germany
- Contact:
- Status: Offline
Re: Custom Expressions/Conditions
Custom Expressions are coming ....
You do not have the required permissions to view the files attached to this post.
- thedazman
- Betatester
- Posts: 1808
- Joined: 28 Mar 2015, 10:47
- Location: United Kingdom
- Contact:
- Status: Offline
Re: Custom Expressions/Conditions
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
This is of course more logical than the FIP coding rubbish!
Daz
- c0nnex
- Site Admin
- Posts: 5469
- Joined: 10 Mar 2015, 21:52
- Location: Munich, Germany
- Contact:
- Status: Offline
Re: Custom Expressions/Conditions
You will be able to use that format for FIP-Coding as well (beta available tonight).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!
(An Expression Converter will be part of the GaugeDesigner License)
- thedazman
- Betatester
- Posts: 1808
- Joined: 28 Mar 2015, 10:47
- Location: United Kingdom
- Contact:
- Status: Offline
Re: Custom Expressions/Conditions
I'm assuming this conversion is optional and FIP xml will work programmed either way?
Daz
Daz
- c0nnex
- Site Admin
- Posts: 5469
- Joined: 10 Mar 2015, 21:52
- Location: Munich, Germany
- Contact:
- Status: Offline
Re: Custom Expressions/Conditions
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.thedazman wrote:I'm assuming this conversion is optional and FIP xml will work programmed either way?
Better hurry up , release is on Friday evening ...