forked from Archive/PX4-Autopilot
Multi-tables: Adjust shebang, add missing include guards
This commit is contained in:
parent
a73108d116
commit
6e144e6e42
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python
|
||||
#!/usr/bin/env python
|
||||
#
|
||||
# Generate multirotor mixer scale tables compatible with the ArduCopter layout
|
||||
#
|
||||
|
@ -6,9 +6,12 @@
|
|||
import math
|
||||
|
||||
print "/*"
|
||||
print "* These file is automatically generated by multi_tables.py - do not edit."
|
||||
print "* This file is automatically generated by multi_tables.py - do not edit."
|
||||
print "*/"
|
||||
print ""
|
||||
print "#ifndef _MIXER_MULTI_TABLES"
|
||||
print "#define _MIXER_MULTI_TABLES"
|
||||
print ""
|
||||
|
||||
def rcos(angleInRadians):
|
||||
return math.cos(math.radians(angleInRadians))
|
||||
|
@ -157,3 +160,5 @@ printScaleTablesIndex()
|
|||
printScaleTablesCounts()
|
||||
|
||||
print "} // anonymous namespace\n"
|
||||
print "#endif /* _MIXER_MULTI_TABLES */"
|
||||
print ""
|
||||
|
|
Loading…
Reference in New Issue