ROBOTC.net forums
http://robotc.net/forums/

Sensor Drivers
http://robotc.net/forums/viewtopic.php?f=52&t=5486
Page 1 of 1

Author:  12vNinja [ Tue Feb 12, 2013 3:46 pm ]
Post subject:  Sensor Drivers

We just got several sensors and I'm wondering which drivers to use. The Hi-Technic site has 0 files...

I'm looking for something simple to use, but not with only one value I can read, but with multiple different values and modes

Author:  mightor [ Wed Feb 13, 2013 12:45 am ]
Post subject:  Re: Sensor Drivers

Take a look at the driver suite in my signature. It has drivers for about 78 different sensors and covers pretty much everything that's been on the market for the last 4 year and now. Be sure to read the documentation and examples that ship with it.

Regards,
Xander

Author:  12vNinja [ Wed Feb 13, 2013 11:01 am ]
Post subject:  Re: Sensor Drivers

Thanks

Author:  12vNinja [ Wed Feb 13, 2013 2:05 pm ]
Post subject:  Re: Sensor Drivers

I tried the IRSeeker-v2 code and it told me the sensor port wasn't configured right, I tried the sample code and it said it had an error, can you walk me through everything?

Author:  mightor [ Wed Feb 13, 2013 3:03 pm ]
Post subject:  Re: Sensor Drivers

I will help you if you can answer "yes" to all the following:
  • Did you read the information on the page that I redirected you to?
  • Did you connect the sensor as directed on the screen when you ran the program?
  • Are you using ROBOTC 3.55B2, as specified on the page?
Additionally, can you be more specific about the error you are seeing?

= Xander

Author:  12vNinja [ Wed Feb 13, 2013 4:57 pm ]
Post subject:  Re: Sensor Drivers

1) yes

2) There was nothing on the NXT screen about connecting

3) I think I am

the error is the hdg value is -1 constantly

Author:  mightor [ Thu Feb 14, 2013 3:17 am ]
Post subject:  Re: Sensor Drivers

Make sure you check the version of ROBOTC, should be in help->about. The IRSeeker should be attached to S1. The -1 indicates there is no connection with the sensor. Which exact program are you trying to use? There are a couple of IRSeeker programs.

= Xander

Author:  12vNinja [ Mon Feb 18, 2013 9:37 pm ]
Post subject:  Re: Sensor Drivers

It was the RobotC version, everything works now

Author:  mightor [ Tue Feb 19, 2013 12:42 am ]
Post subject:  Re: Sensor Drivers

I am glad to hear it is working for you now!

= Xander

Author:  jorge_the_awesome [ Wed Feb 27, 2013 11:09 pm ]
Post subject:  Re: Sensor Drivers

Xander, is there any technical reason why I have to choose sensorI2Ccustom for a sensor type instead of the built in types for magnet or compass or any other hitechnic sensor? Unless I disable sensor type checking your drivers throw errors at me. It's not a problem-I'm just curious.

Sorry for hijacking this thread!

Author:  mightor [ Thu Feb 28, 2013 12:42 am ]
Post subject:  Re: Sensor Drivers

It's quite simple. Using my drivers and the built-in ones would be like having two people simultaneously shouting commands at you. Your responses would be garbled and neither shouters would know which response belonged to which request :)

Just stick with the sensor type, as used in the examples. The analogue and i2custom sensors are really barebones sensor types that allow me to decide what is being communicated to the sensor, not the firmware.

So, don't disable the sensor checking, just make sure you use the proper sensor types.

= Xander

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/