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

Released: Driver suite for RobotC beta1
http://www.robotc.net/forums/viewtopic.php?f=41&t=1391
Page 2 of 2

Author:  SteveTan86 [ Wed Apr 01, 2009 7:50 pm ]
Post subject:  Re: Released: Driver suite for RobotC beta1

Hi Xander,

Very nice, thanks for putting some much effort into this. I see you've used the datalogging block of NXT-G. Was the box of Tic-Tac empty when you started or did you finish it under stress? hahaha.

Regards,

Steve

Author:  mightor [ Thu Apr 02, 2009 12:58 am ]
Post subject:  Re: Released: Driver suite for RobotC beta1

The box of tictacs were already empty :) The only datalogging features I used were a piece of paper and a pencil. After that I punched the numbers into an Excel sheet and made graphs of it.

The problem lies in the fact that the sensor type "sensorLightActive" does not seem to work the way I expected it to. For short distance mode I use sensorRawValue and for long distance it should be sensorLightActive in raw mode. This doesn't seem to work, for some reason.

I'll do some more testing this evening when I am back from work. I'll make a test rig with a pot meter that will allow me to test the results without the use of a sensor.

Regards,
Xander

Author:  SteveTan86 [ Sat Apr 04, 2009 3:54 am ]
Post subject:  Re: Released: Driver suite for RobotC beta1

Hmmm, there seems to be another problem with the drivers. This time related to the IR Link Sensor driver. Something seems to be broken, none of the commands are working.

I've tested the sensor with NXT-G so I am definitely sure the sensor itself and the set up is working.

I feel bad to be always the one who informs you about bugs. Sorry! Would you like me to report this in mantis?

Regards,

Steve

Author:  mightor [ Sat Apr 04, 2009 3:57 am ]
Post subject:  Re: Released: Driver suite for RobotC beta1

Yes, please. Don't feel bad, I'd rather you be the one to tell me than no one :)

Regards,
Xander

Author:  mightor [ Sat Apr 04, 2009 4:04 am ]
Post subject:  Re: Released: Driver suite for RobotC beta1

Also, please include the program you were using when you noticed the failure to operate properly.

Author:  mightor [ Sat Apr 04, 2009 4:59 am ]
Post subject:  Re: Released: Driver suite for RobotC beta1

K, I've tracked down the problem. I published the driver in "debug" mode. You can quickly fix it by commenting out line 26
Code:
#define __DEBUG_DRIVER__    /*!< Compile the driver with debugging code */

Should be
Code:
// #define __DEBUG_DRIVER__    /*!< Compile the driver with debugging code */


I'll make sure that the next release will include this "fix".

Regards,
Xander

Author:  SteveTan86 [ Sat Apr 04, 2009 6:05 am ]
Post subject:  Re: Released: Driver suite for RobotC beta1

:bigthumb: :bigthumb: Ok. Now that it is working, I've noticed another problem. Using "HTIRL-test1.c" file as standard testing file.

Code:
writeI2C(link, oBuffer, 0)
at line 288 in "HTIRL-driver.h" file throws an error but only in the following situation.

When sensor location is set to S1 and S4.

Code:
#pragma config(Sensor, S1,     HTIRL,               sensorI2CCustomStd)


Code:
#pragma config(Sensor, S4,     HTIRL,               sensorI2CCustomStd)


Tested these sensor locations using NXT-G and found nothing wrong with the physical hardware.

Regards,

Steve

Author:  mightor [ Sat Apr 04, 2009 6:19 am ]
Post subject:  Re: Released: Driver suite for RobotC beta1

Hiya Steve,

I've tested the program with the sensor attached to S1, S2, S3 and S4 and didn't encounter any problems. What is the error you are getting?
Do you have an IR Link sensor attached to both S1 -and- S4?

Regards,
Xander

Author:  SteveTan86 [ Sat Apr 04, 2009 7:10 am ]
Post subject:  Re: Released: Driver suite for RobotC beta1

How odd, its ok now. I reflashed the firmware and all is well. Just to check, NXT-G uses a different firmware from RobotC?

Author:  mightor [ Sat Apr 04, 2009 7:15 am ]
Post subject:  Re: Released: Driver suite for RobotC beta1

Yeah it does :) RobotC has its own FW.

Regards,
Xander

Author:  SteveTan86 [ Sat Apr 04, 2009 7:21 am ]
Post subject:  Re: Released: Driver suite for RobotC beta1

Hmmm... I will update you if I manage to recreate the error again. I don't think its because I used NXT-G's firmware when running programs coded in RobotC, but then again I have been coding for an entire day now and my mind is a bit fried so anything is possible.

Regards,

Steve

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