You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,14 @@ Java implementation of Raspberry PI/Brick Pi interface
6
6
7
7
You can clone a complete Netbeans Project including the required libraries. It uses pi4j. The jar in the project has been modified to support he 500000 baud rate.
8
8
9
-
Most sensors are missing. Except for I2C, color_full and ultrasonic other sensors should work as a RawSensor.
9
+
Some sensors are still missing, the Light, Ultrasonic and Touch are there and (minimally) tested. The Color Sensors and RCX Light should all follow the Light Sensor pattern, but I don't have any to test. Color Full and I2C sensors are a little different - again, I don't have those sensors.
10
10
11
-
Motor is implemented but not yet tested.
11
+
Motors are implemented. You can get the instantaneous speed of the motor, as calculated from the encoder values, by means of the "getCurrentSpeed" method of your Motor class. There are problem problems with this, such as if the encoder over/underflows, when changing direction, etc. - create an issue with a good description (and preferably a use-case) The speed also seems to be double the actual speed. No real idea why that is, unless the ticks per rev are 1440 and not 720.
12
12
13
-
The interfaces/APIs are subject to change at this point.
13
+
Take a look at the BrickPiTests.java for usage examples.
14
+
Conceptually, it's pretty simple. You create instances of one of the Sensor classes and/or Motors. Associate them with the correct port number on the BrickPi instance. You need to run "setupSensors", after that, it should all just work.
14
15
16
+
The interfaces/APIs may change, but should be pretty stable.
15
17
You can integrate Netbeans so that it will automatically copy the code to the PI following the instructions here:
0 commit comments