Multi-tables: Adjust shebang, add missing include guards

This commit is contained in:
Lorenz Meier 2015-01-05 20:54:44 +01:00
parent a73108d116
commit 6e144e6e42
1 changed files with 7 additions and 2 deletions

View File

@ -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 ""