by i-Bot » Wed Jan 10, 2007 2:57 pm
by i-Bot
Wed Jan 10, 2007 2:57 pm
I think you are interested in the software connections rather than hardware. There are examples of the hardware connections available. in other posts
For the software part the gyro code is integral to the motion engine within the RoboNova firmware. When Gyros are enables they are read every 16 ms. The result from the Gyro is used to effect the servos based on the values you set in the Gyroset (type and no of Gyro), Gyrodir(direction of effect), and Gyrosense( degree of effect). There is no program access to the Gyro outputs unless you peek the memory locations containing the readings. Thus gyro operation after setup is autonomous of the robobasic generated code.
Accelerometers need to be connected to analog inputs and are read by Robobasic generated code. This is slower, and there is no direct control of the servos.
I think you are interested in the software connections rather than hardware. There are examples of the hardware connections available. in other posts
For the software part the gyro code is integral to the motion engine within the RoboNova firmware. When Gyros are enables they are read every 16 ms. The result from the Gyro is used to effect the servos based on the values you set in the Gyroset (type and no of Gyro), Gyrodir(direction of effect), and Gyrosense( degree of effect). There is no program access to the Gyro outputs unless you peek the memory locations containing the readings. Thus gyro operation after setup is autonomous of the robobasic generated code.
Accelerometers need to be connected to analog inputs and are read by Robobasic generated code. This is slower, and there is no direct control of the servos.