model.getGlobalVariable(index, flight_mode)
Return current global variable value
Example:
Parameters
index
zero based global variable index, use 0 for GV1, 8 for GV9flight_mode
Flight mode number (0 = FM0, 8 = FM8)
Return value
nil
requested global variable does not existnumber
current value of global variable
Notice
a simple warning or notice