We found how to "import" bluetooth connection from on class to the other !
But we have a last problem with the regulated Motors.
We want that, at the beginning of the programm, the motors ARENT regulated ! I mean, that if there is a obstacle, that they dont accelerate, and use more power!
We found a solution for the motors of the Master :
NXTMotor m1 = new NXTMotor(MotorPort.A)
but for the motors of the slaves it doesnt work !
We tried like this
NXTMotor m1 = new NXTMotor(MotorPort.A) (of course after the connection)
but it doesnt work !
Please help !
Marry Christmas
the code :
- Code: Select all
NXTCommConnector connector = Bluetooth.getConnector();
RemoteNXT cavin = new RemoteNXT("Cavin", connector);
NXTMotor red = new NXTMotor(MotorPort.A);
NXTMotor blue = new NXTMotor(cavin.A);
