I have been struggling with this all night...
I have migrated the code to Lejos 0.8.5 - as I can't get 0.8.0 to flash on my OS X 10.6 machine.
My main is calling load_normal - which looks like
- Code: Select all
LCD.drawString("InitGyro...", 2, 1);
// Start Bluetooth reader thread
//br = new BluetoothReader(conn);
//br.start();
// Start Balance control thread
// BalanceController bc = new BalanceController(ctrl);
//LCD.drawString("Starting Balance Controller...", 2, 1);
BalanceController bc = new BalanceController(ctrl);
bc.start();
//LCD.clear();
//Behavior b1 = (Behavior) new GELwayDriver(ctrl, br); // Needed to drive robot and slave
// Behavior b1 = new GELwayFollower(ctrl);
Behavior b2 = (Behavior) new DetectObstacle(ctrl); // Needed to avoid obstacles
//Behavior b3 = new KeepStraight(ctrl); // Needed to keep straight
Behavior[] bArray = { b2};
Arbitrator arby = new Arbitrator(bArray);
arby.start();
The problem I am seeing is that my gyro calibration is coming back with a gyro offset of 0.0 (zero). Uhg. Could this be due to using 0.8.5? When reading my Gyro using NXT 1.28 it seems to be working fine.
