by dshinsel » Tue May 02, 2006 12:56 am
by dshinsel
Tue May 02, 2006 12:56 am
Well, I finally got back to playing with my Gyros. As PEV mentioned a while back, I want to be able to turn the Gyro on and off.
When I try, it looks like the Gyro's can start OFF, but once turned ON, can not be turned OFF again! I think this may be a limitation of RoboBasic?
Can anyone can figure out how to make this work?
Here's what I'm doing:
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)
GYROSENSE G6A, 0,0,0, 0, 0, 0
GYROSENSE G6D, 0,0,0, 0, 0, 0
RETURN
gyro_on:
GYROSET G6A, 0, 2, 2, 0, 0, 0
GYROSET G6D, 0, 2, 2, 0, 0, 0
GYRODIR G6A, 1, 0, 0, 1, 0, 0
GYRODIR G6D, 1, 0, 0, 1, 0, 0
GYROSENSE G6A, 0,150,150, 0, 0, 0
GYROSENSE G6D, 0,150,150, 0, 0, 0
RETURN
Well, I finally got back to playing with my Gyros. As PEV mentioned a while back, I want to be able to turn the Gyro on and off.
When I try, it looks like the Gyro's can start OFF, but once turned ON, can not be turned OFF again! I think this may be a limitation of RoboBasic?
Can anyone can figure out how to make this work?
Here's what I'm doing:
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)
GYROSENSE G6A, 0,0,0, 0, 0, 0
GYROSENSE G6D, 0,0,0, 0, 0, 0
RETURN
gyro_on:
GYROSET G6A, 0, 2, 2, 0, 0, 0
GYROSET G6D, 0, 2, 2, 0, 0, 0
GYRODIR G6A, 1, 0, 0, 1, 0, 0
GYRODIR G6D, 1, 0, 0, 1, 0, 0
GYROSENSE G6A, 0,150,150, 0, 0, 0
GYROSENSE G6D, 0,150,150, 0, 0, 0
RETURN
Dave Shinsel
dshinsel <insert at sign> verizon.net