Has anyone made a library for the Ping))) sonar?
I am a complete n00b at Java, so work with me here. I am just trying to debug and pull some values as measurements; I have copied the sample code from the sonar sample code but it is missing the library for it so it wont run. I have no idea how to make a library, and my project is on a tie constraint. If anyone has used this sonar and done a project with it that would be of great help to get some insight.
Thanx so much, any help would be greatly appreciated.
Thanx so much, any help would be greatly appreciated.
Comments
The classes are by Jon Williams so I expect them to work,
but I can't tell for sure since I have no Ping module.
regards peter
Making a library is easy, its just about putting the file in the correct folder. The first line of the program says:
meaning that this "package" or file should be located in stamp>peripheral>sensor>range and be called ping.java (I am not sure if it needs to be Ping.java or ping.java to work, test it out). The stamp folder should be under the "lib" folder in your main Javelin Stamp IDE folder, which should be under program files>>Parallax Inc if you used the default settings.
In order to use this program you must include the statement:
in your main program at the top so that the class will be "imported" into your main program so that you may use it.
If you want to import all the files in a specific folder, just put a ".*" at the end, for example:
will import all java files in the "range" folder.
Thank you all so much for your time, MUCH APPRECIATED!!!!!!!!!!!!!!!!!!!