#LeanCenter08.sh
0,StartLogging 
0,LogScriptFileName
#StartTimeInMS,HoldAngleWithMotor(AccelName,AccelAngleXYorZ,TargetAngle,DegreesPlus,DegreesMinus,MotorName,Dir*Strength,Duration/TimeOut,flags)

#legs spread 22cm from left foot to right foot center

#constant thrust = 3
#no thrust analysis, but stops in angle range
#both side motors
0,MotorAccel(MOTOR_LEFT_SIDE,MOTOR_RIGHT_SIDE,3,5000,ACCEL_LEFT_LOWER_LEG,Z,3,-1,1,WAIT_STAGE|DOUBLE_THRUST|FUTURE_LOG|MIN_VELOCITY=3|MAX_VELOCITY=4)
#0,MotorAccel(MOTOR_LEFT_ANKLE,MOTOR_RIGHT_ANKLE,4,5000,ACCEL_LEFT_LOWER_LEG,Z,3,-1,1,WAIT_STAGE|DOUBLE_THRUST|FUTURE_LOG|MIN_VELOCITY=3|MAX_VELOCITY=4)
0,MotorAccel(MOTOR_LEFT_ANKLE,4,5000,ACCEL_LEFT_FOOT,Z,0,-4,4,ACCEL_LEFT_LOWER_LEG,Z,3,-1,1,WAIT_STAGE|DOUBLE_THRUST|FUTURE_LOG|MIN_VELOCITY=3|MAX_VELOCITY=4)
0,MotorAccel(MOTOR_RIGHT_ANKLE,4,5000,ACCEL_RIGHT_FOOT,Z,0,-4,4,ACCEL_RIGHT_LOWER_LEG,Z,-6,-1,1,WAIT_STAGE|DOUBLE_THRUST|FUTURE_LOG|MIN_VELOCITY=3|MAX_VELOCITY=4)

#0,MotorAccel(MOTOR_LEFT_SIDE,MOTOR_RIGHT_SIDE,3,5000,ACCEL_LEFT_LOWER_LEG,Z,3,-1,1,WAIT_STAGE|DOUBLE_THRUST|HOLD_ANGLE|FUTURE_LOG|CONSTANT_THRUST)

#both ankles lean ankle until LLLZ is 3
#0,MotorAccel(MOTOR_LEFT_ANKLE,MOTOR_RIGHT_ANKLE,7,5000,ACCEL_LEFT_LOWER_LEG,Z,3,-1,1,WAIT_STAGE|DOUBLE_THRUST|HOLD_ANGLE|FUTURE_LOG|CONSTANT_THRUST)

6000,StopLogging

