motor test
This commit is contained in:
parent
7d797b2ffb
commit
0661727904
@ -87,6 +87,8 @@ class motor():
|
||||
einzelschritt(self.pwm4, 1, ges_schritte, temp_pos + 6, temp_t1, temp_t2)
|
||||
einzelschritt(self.pwm3, 0, ges_schritte, temp_pos + 7, temp_t1, temp_t2)
|
||||
|
||||
print(str(self.pos))
|
||||
|
||||
if self.halten == 1:
|
||||
self.pwm4.ChangeFrequency(self.freq_halten)
|
||||
self.pwm4.ChangeDutyCycle(self.cyc_halten)
|
||||
@ -124,6 +126,8 @@ class motor():
|
||||
einzelschritt(self.pwm4, 1, ges_schritte, temp_pos + 6, temp_t1, temp_t2)
|
||||
einzelschritt(self.pwm1, 0, ges_schritte, temp_pos + 7, temp_t1, temp_t2)
|
||||
|
||||
print(str(self.pos))
|
||||
|
||||
if self.halten == 1:
|
||||
self.pwm4.ChangeFrequency(self.freq_halten)
|
||||
self.pwm4.ChangeDutyCycle(self.cyc_halten)
|
||||
|
Loading…
x
Reference in New Issue
Block a user