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

script panel and voice call out

General Discussions
Locked
pannam
Passenger
Posts: 2
Joined: 13 Nov 2020, 06:25
Status: Offline

script panel and voice call out

Post by pannam » 15 Nov 2020, 17:32

spad.png
spad.png (24.77 KiB) Viewed 670 times
The airport that I fly from is at an elevation of 20 feet. So, I put a condition on script panel

Code: Select all

(([INDICATED ALTITUDE] >100 && ([INDICATED ALTITUDE] <110))
then call out a voice command POSITIVE RATE . It works fine for that airport but when I spawn at the different airports at the different elevations I have to keep changing the conditions every time.
I want to write down something like this

Code: Select all

(([INDICATED ALTITUDE] > ([AIRPORT ELEVATION+ 50] ))
then call out positive rate

can you lead me to some documents or example? in short how can I add values to conditions?

Code: Select all

(([INDICATED ALTITUDE + 50))

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

Re: script panel and voice call out

Post by c0nnex » 30 Nov 2020, 15:09

You will need to create an expression for that:
Head to Addons->Expressions and Add an expression (Globa Scoped in your case)
as Expression give
[INDICATED ALTITUDE] + 50

In your Callout Condition reference that newliy created expression as Source Data value.

Locked