This is where you talk about the NXJ software itself, installation issues, and programming talk.
Moderators: 99jonathan, roger, imaqine
Hello. I was wondering if someone could explain to me how to use the HiTechnic Gyro sensor in LeJos. I have looked at the API, and I do not see any specific classes for gyro sensors, although I do see a TiltSensor class (which does not seem to be the same thing, but it is the closest I can find). Do you use the raw value from the generic SensorPort class, some feature of the TiltSensor class or is there some other class that I am missing specifically designed to be used with the gyroscope? Thanks.
- New User
- Posts: 1
- Joined: Wed Nov 07, 2007 5:58 pm
This is also something I am interested in, can leJOS make use of the gyroscopic sensor?
- New User
- Posts: 2
- Joined: Sat Nov 10, 2007 12:04 am
We have not written a driver class for the Gyro sensor yet.
Looking at the HiTechnic spec, using the getRawValue() method inn SensorPort and subtracting an offset (such as 598 in the HiTechnic RobotC example), should work.
- leJOS Team Member
- Posts: 922
- Joined: Mon Feb 05, 2007 1:27 pm
Return to NXJ Software
Who is online
Users browsing this forum: ryanw, skoehler and 3 guests