Last updated 1 year ago
Was this helpful?
Return current global variable value
Example:
index zero based global variable index, use 0 for GV1, 8 for GV9
index
flight_mode Flight mode number (0 = FM0, 8 = FM8)
flight_mode
nil requested global variable does not exist
nil
number current value of global variable
number
a simple warning or notice
-- get GV3 (index = 2) from Flight mode 0 (FM0) val = model.getGlobalVariable(2, 0)