3 mavlink expression evaluation functions 5 Copyright Andrew Tridgell 2011 6 Released under GNU GPL version 3 or later 13 from .mavextra
import *
16 Support having a $HOME/.pymavlink/mavextra.py for extra graphing functions 18 home = os.getenv(
'HOME')
20 extra = os.path.join(home,
'.pymavlink',
'mavextra.py')
21 if os.path.exists(extra):
23 mavuser = imp.load_source(
'pymavlink.mavuser', extra)
27 '''evaluation an expression''' 29 v = eval(expression, globals(), vars)
32 except ZeroDivisionError:
def evaluate_expression(expression, vars)