Only set the posit_count parameter on motors that need to drive to discrete positions.
This commit is contained in:
@@ -140,9 +140,11 @@ proc mk_motconf {mot fh absEnc posnum posit_list} {
|
||||
puts $fh " maxAccel \$$maxAccel\\"
|
||||
puts $fh " maxDecel \$$maxDecel\\"
|
||||
puts $fh " stepsPerX \$$stepsPerX\\"
|
||||
puts $fh " posit_count $posnum\\"
|
||||
foreach positline $::posit_list {
|
||||
puts $fh " $positline\\"
|
||||
if {$posnum > 0} {
|
||||
puts $fh " posit_count $posnum\\"
|
||||
foreach positline $::posit_list {
|
||||
puts $fh " $positline\\"
|
||||
}
|
||||
}
|
||||
if {$absEnc} {
|
||||
puts $fh " absEnc 1\\"
|
||||
|
||||
Reference in New Issue
Block a user