Updated Java CMake and examples to comply with the new interfaces.

Signed-off-by: Serban Waltter <serban.waltter@rinftech.com>
This commit is contained in:
Serban Waltter
2018-06-21 16:49:42 +03:00
parent bee6374a1a
commit d4c68f5088
6 changed files with 41 additions and 45 deletions

View File

@ -35,7 +35,7 @@ public class HCSR04_Example {
while (true) {
System.out.println("Get distance");
double distance = sonar.getDistance(HCSR04_U.swigToEnum(0));
double distance = sonar.getDistance();
System.out.println("Distance: " + distance);
Thread.sleep(5000);