mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 23:33:34 +08:00
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:
@@ -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 ""
|
||||
|
||||
Reference in New Issue
Block a user