Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
Marie House authored and Marie House committed May 27, 2016
1 parent a645900 commit c27d883
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Drop_Test_Bode.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def A_motor(A_motor_velocity):
A_motor_speed = 1
Adir.write(A_motor_dir)
Apwm.write(A_motor_speed)
print A_motor_dir,A_motor_speed
def B_motor(B_motor_velocity):
if B_motor_velocity >= 0:
B_motor_dir = 1
Expand Down Expand Up @@ -118,6 +119,7 @@ def freq_response(Frequency,timestart):
B_motor(B_motor_velocity)
C_motor(C_motor_velocity)
D_motor(D_motor_velocity)
print A_motor_velocity
Data.write('%5.3f,%5.3f,%5.3f,%5.3f,%5.3f,%5.3f,%5.3f,%5.3f,%5.3f,%5.3f,%5.3f,%5.3f\n' % (t,ACCz,GYRx,GYRy,GYRz,MAGx,MAGy,MAGz,A_Motor_velocity,B_Motor_velocity,C_Motor_velocity,D_Motor_velocity))
if phase == 2 and ACCz <-.9:
shutdown()
Expand Down

0 comments on commit c27d883

Please sign in to comment.