CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/Tools/autotest/param_metadata/emit.py
Views: 1799
1
"""
2
The standard interface emitters must implement
3
"""
4
5
import re
6
7
8
class Emit:
9
def __init__(self):
10
pass
11
12
prog_values_field = re.compile(r"-?\d*\.?\d+: ?[\w ]+,?")
13
14
def close(self):
15
pass
16
17
def start_libraries(self):
18
pass
19
20
def emit(self, g):
21
pass
22
23
def should_emit_field(self, param, field):
24
return field not in ['Legacy']
25
26