View unanswered posts | View active topics It is currently Tue Sep 30, 2014 9:07 pm






This topic is locked, you cannot edit posts or make further replies.  [ 26 posts ]  Go to page Previous  1, 2
Released: Driver suite for RobotC beta1 
Author Message
Rookie

Joined: Fri Mar 27, 2009 10:36 am
Posts: 23
Location: Singapore or Sydney, Australia
Post 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

_________________
Is it wrong for us to love killer robots?


Wed Apr 01, 2009 7:50 pm
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3223
Location: Rotterdam, The Netherlands
Post 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

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Thu Apr 02, 2009 12:58 am
Profile WWW
Rookie

Joined: Fri Mar 27, 2009 10:36 am
Posts: 23
Location: Singapore or Sydney, Australia
Post 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

_________________
Is it wrong for us to love killer robots?


Sat Apr 04, 2009 3:54 am
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3223
Location: Rotterdam, The Netherlands
Post 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

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Sat Apr 04, 2009 3:57 am
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3223
Location: Rotterdam, The Netherlands
Post Re: Released: Driver suite for RobotC beta1
Also, please include the program you were using when you noticed the failure to operate properly.

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Sat Apr 04, 2009 4:04 am
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3223
Location: Rotterdam, The Netherlands
Post 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

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Sat Apr 04, 2009 4:59 am
Profile WWW
Rookie

Joined: Fri Mar 27, 2009 10:36 am
Posts: 23
Location: Singapore or Sydney, Australia
Post 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

_________________
Is it wrong for us to love killer robots?


Sat Apr 04, 2009 6:05 am
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3223
Location: Rotterdam, The Netherlands
Post 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

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Sat Apr 04, 2009 6:19 am
Profile WWW
Rookie

Joined: Fri Mar 27, 2009 10:36 am
Posts: 23
Location: Singapore or Sydney, Australia
Post 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?

_________________
Is it wrong for us to love killer robots?


Sat Apr 04, 2009 7:10 am
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3223
Location: Rotterdam, The Netherlands
Post Re: Released: Driver suite for RobotC beta1
Yeah it does :) RobotC has its own FW.

Regards,
Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Sat Apr 04, 2009 7:15 am
Profile WWW
Rookie

Joined: Fri Mar 27, 2009 10:36 am
Posts: 23
Location: Singapore or Sydney, Australia
Post 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

_________________
Is it wrong for us to love killer robots?


Sat Apr 04, 2009 7:21 am
Profile WWW
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 26 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.