Automated updates of the C++ code generated by the multi_tables script, now it is placed into the mixer_multirotor.generated.h file which is generated by makefile

This commit is contained in:
Anton Matosov
2015-01-05 12:02:31 +02:00
parent c3ed35f5cc
commit 59fa170e54
4 changed files with 18 additions and 113 deletions
+9
View File
@@ -3,6 +3,12 @@
# Generate multirotor mixer scale tables compatible with the ArduCopter layout
#
puts "/*"
puts "* These tables automatically generated by multi_tables - do not edit."
puts "*/"
puts ""
proc rad {a} { expr ($a / 360.0) * 2 * acos(-1) }
proc rcos {a} { expr cos([rad $a])}
@@ -133,3 +139,6 @@ foreach table $tables {
puts [format "\t%u, /* %s */" [expr [llength $angles] / 2] $table]
}
puts "};"
# Newline at the end of file
puts ""