by engineer » Thu Feb 01, 2007 5:46 pm
by engineer
Thu Feb 01, 2007 5:46 pm
OKAY I'LL TRY THIS:
gyro_off:
GYROSET G6A, 0, 0, 0, 0, 0, 0 ' set Gyro to use (0=no Gyro)
GYROSET G6D, 0, 0, 0, 0, 0, 0 ' set Gyro to use (0=no Gyro)
GYROSET G6C, 0, 0, 0, 0, 0, 0 ' set Gyro to use (0=no Gyro)
GYROSET G6B, 0, 0, 0, 0, 0, 0 ' set Gyro to use (0=no Gyro)
GYROSENSE G6A, 0, 0, 0, 0, 0, 0
GYROSENSE G6D, 0, 0, 0, 0, 0, 0
GYROSENSE G6C, 0, 0, 0, 0, 0, 0
GYROSENSE G6B, 0, 0, 0, 0, 0, 0
RETURN
gyro_on_ALL:
GYROSET G6A, 2, 1, 1, 0, 2, 0
GYROSET G6D, 2, 1, 1, 0, 2, 0
GYROSET G6C, 1, 2, 0, 0, 0, 0
GYROSET G6B, 1, 2, 0, 0, 0, 0
GYRODIR G6A, 0, 0, 1, 0, 1, 0
GYRODIR G6D, 1, 0, 1, 0, 0, 0
GYRODIR G6C, 0, 0, 0, 0, 0, 0
GYRODIR G6B, 0, 1, 0, 0, 0, 0
GYROSENSE G6A, 200, 200, 200, 0, 200, 0
GYROSENSE G6D, 200, 200, 200, 0, 200, 0
GYROSENSE G6C, 150, 150, 0, 0, 0, 0
GYROSENSE G6B, 150, 150, 0, 0, 0, 0
RETURN
gyro_on_FB:
GYROSET G6A, 0, 1, 1, 0, 0, 0
GYROSET G6D, 0, 1, 1, 0, 0, 0
GYRODIR G6A, 0, 0, 1, 0, 0, 0
GYRODIR G6D, 0, 0, 1, 0, 0, 0
GYROSENSE G6A, 0, 200, 200, 0, 0, 0
GYROSENSE G6D, 0, 200, 200, 0, 0, 0
RETURN
gyro_on_RL:
GYROSET G6A, 2, 0, 0, 0, 2, 0
GYROSET G6D, 2, 0, 0, 0, 2, 0
GYRODIR G6A, 0, 0, 0, 0, 1, 0
GYRODIR G6D, 1, 0, 0, 0, 0, 0
GYROSENSE G6A, 200, 0, 0, 0, 200, 0
GYROSENSE G6D, 200, 0, 0, 0, 200, 0
RETURN
''================================================
these settings work well for me,the problem I'm having is that the gyro on/off comands seem to run from gyro on / off /on, when I press 1,2,3, or 4.the whole program is gyrohelp.bas from baurmech. I tried to put it all as I have modified it in my downloads, without sucess.thnx engineer
OKAY I'LL TRY THIS:
gyro_off:
GYROSET G6A, 0, 0, 0, 0, 0, 0 ' set Gyro to use (0=no Gyro)
GYROSET G6D, 0, 0, 0, 0, 0, 0 ' set Gyro to use (0=no Gyro)
GYROSET G6C, 0, 0, 0, 0, 0, 0 ' set Gyro to use (0=no Gyro)
GYROSET G6B, 0, 0, 0, 0, 0, 0 ' set Gyro to use (0=no Gyro)
GYROSENSE G6A, 0, 0, 0, 0, 0, 0
GYROSENSE G6D, 0, 0, 0, 0, 0, 0
GYROSENSE G6C, 0, 0, 0, 0, 0, 0
GYROSENSE G6B, 0, 0, 0, 0, 0, 0
RETURN
gyro_on_ALL:
GYROSET G6A, 2, 1, 1, 0, 2, 0
GYROSET G6D, 2, 1, 1, 0, 2, 0
GYROSET G6C, 1, 2, 0, 0, 0, 0
GYROSET G6B, 1, 2, 0, 0, 0, 0
GYRODIR G6A, 0, 0, 1, 0, 1, 0
GYRODIR G6D, 1, 0, 1, 0, 0, 0
GYRODIR G6C, 0, 0, 0, 0, 0, 0
GYRODIR G6B, 0, 1, 0, 0, 0, 0
GYROSENSE G6A, 200, 200, 200, 0, 200, 0
GYROSENSE G6D, 200, 200, 200, 0, 200, 0
GYROSENSE G6C, 150, 150, 0, 0, 0, 0
GYROSENSE G6B, 150, 150, 0, 0, 0, 0
RETURN
gyro_on_FB:
GYROSET G6A, 0, 1, 1, 0, 0, 0
GYROSET G6D, 0, 1, 1, 0, 0, 0
GYRODIR G6A, 0, 0, 1, 0, 0, 0
GYRODIR G6D, 0, 0, 1, 0, 0, 0
GYROSENSE G6A, 0, 200, 200, 0, 0, 0
GYROSENSE G6D, 0, 200, 200, 0, 0, 0
RETURN
gyro_on_RL:
GYROSET G6A, 2, 0, 0, 0, 2, 0
GYROSET G6D, 2, 0, 0, 0, 2, 0
GYRODIR G6A, 0, 0, 0, 0, 1, 0
GYRODIR G6D, 1, 0, 0, 0, 0, 0
GYROSENSE G6A, 200, 0, 0, 0, 200, 0
GYROSENSE G6D, 200, 0, 0, 0, 200, 0
RETURN
''================================================
these settings work well for me,the problem I'm having is that the gyro on/off comands seem to run from gyro on / off /on, when I press 1,2,3, or 4.the whole program is gyrohelp.bas from baurmech. I tried to put it all as I have modified it in my downloads, without sucess.thnx engineer