View unanswered posts | View active topics It is currently Mon Dec 22, 2014 5:57 am






Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Problem with NXT motors B and C response 
Author Message
Rookie
User avatar

Joined: Fri Mar 21, 2008 8:00 pm
Posts: 20
Location: Spain
Post Problem with NXT motors B and C response
Hi,

I've a problem with the response with NXT and RobotC and motors's behavior.
After 30 seconds with regular oscillation a random failure happens.
The issue fails with the Motor B and the Motor C, but not with the Motor A.
The result is the same with fisical motors's permutation and with two diferents NXT Bricks.

At this point I don't know if this issue comes from the NXT brick or RobotC implementation.

This issue is is not visible when the NXTPower below 40 units.

This code reporduces the issue.
task main()
{
int Pw=0;

while(true)
{
Pw=(Pw>0)?-40:40;
motor[motorB]=Pw;
wait1Msec(100);
}
}

_________________
Nobody knows what you're capable ... until you get down to it.


Fri Jun 14, 2013 6:54 pm
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3297
Location: Rotterdam, The Netherlands
Post Re: Problem with NXT motors B and C response
Which version of ROBOTC are you using?

= 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 Jun 15, 2013 1:29 am
Profile WWW
Rookie
User avatar

Joined: Fri Mar 21, 2008 8:00 pm
Posts: 20
Location: Spain
Post Re: Problem with NXT motors B and C response
RobotC 2.26 (8.23), Oct 1 2010

_________________
Nobody knows what you're capable ... until you get down to it.


Sat Jun 15, 2013 1:57 am
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3297
Location: Rotterdam, The Netherlands
Post Re: Problem with NXT motors B and C response
Can you see if you can replicate this issue with the latest version? I don't think there will be any bug fixes for ROBOTC 2.x anymore.

= 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 Jun 15, 2013 2:10 am
Profile WWW
Rookie
User avatar

Joined: Fri Mar 21, 2008 8:00 pm
Posts: 20
Location: Spain
Post Re: Problem with NXT motors B and C response
I don't, My RobotC 3.54 version has expired :-(

Do you know if is possible to access directly to the Port driver with a low-level function working directly with the Arm7?

something like:

_asm
{
portB=50
}

_________________
Nobody knows what you're capable ... until you get down to it.


Sat Jun 15, 2013 2:20 am
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3297
Location: Rotterdam, The Netherlands
Post Re: Problem with NXT motors B and C response
No, I'm afraid it is not. The code runs in a VM and does not access the hardware directly.

= 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 Jun 15, 2013 3:23 am
Profile WWW
Rookie
User avatar

Joined: Fri Mar 21, 2008 8:00 pm
Posts: 20
Location: Spain
Post Re: Problem with NXT motors B and C response
Hi,
Is possible you test the simple code I posted, to discard o confirm a RobotC issue?

Thx a lot.
Tomas.

_________________
Nobody knows what you're capable ... until you get down to it.


Sat Jun 15, 2013 12:29 pm
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3297
Location: Rotterdam, The Netherlands
Post Re: Problem with NXT motors B and C response
This is what I see with 3.61.1


= 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 Jun 15, 2013 2:22 pm
Profile WWW
Rookie
User avatar

Joined: Fri Mar 21, 2008 8:00 pm
Posts: 20
Location: Spain
Post Re: Problem with NXT motors B and C response
Yes, this is the same behavior that I reproduce intermittent.

With the engine A does not occur.

At this point I don't know if the problem comes from RobotC or NXT architecture.
In fact the problem only happens from differential between the maximum and mínimum of 80 NXT power units in motor B and C.

_________________
Nobody knows what you're capable ... until you get down to it.


Sat Jun 15, 2013 8:42 pm
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3297
Location: Rotterdam, The Netherlands
Post Re: Problem with NXT motors B and C response
I will notify the developers of this behaviour :) It is very weird, the pause in between every couple of iterations is a bit of a mystery.

= 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]


Sun Jun 16, 2013 2:34 am
Profile WWW
Rookie
User avatar

Joined: Fri Mar 21, 2008 8:00 pm
Posts: 20
Location: Spain
Post Re: Problem with NXT motors B and C response
Thanks a lot for your dedication, It's very important for my last Project, Optimal Control for unstable systems, where the real time control is the key of the success.

Regards,
Tomás.

_________________
Nobody knows what you're capable ... until you get down to it.


Sun Jun 16, 2013 6:03 am
Profile WWW
Rookie
User avatar

Joined: Fri Mar 21, 2008 8:00 pm
Posts: 20
Location: Spain
Post Re: Problem with NXT motors B and C response
Hi, Do you have news about this issue?

Thanks.

_________________
Nobody knows what you're capable ... until you get down to it.


Mon Aug 05, 2013 5:58 pm
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3297
Location: Rotterdam, The Netherlands
Post Re: Problem with NXT motors B and C response
I don't think there will be a new version of ROBOTC before 4.x, which will be out after the summer, afaik.

= 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]


Tue Aug 06, 2013 1:21 am
Profile WWW
Professor
User avatar

Joined: Sat May 18, 2013 1:24 pm
Posts: 272
Location: Olympia, WA
Post Re: Problem with NXT motors B and C response
Is there a possibility of beta versions?

_________________
FTC Team 6424, the 'Oly Cow - Chief programmer.
FRC Team 4450, Olympia Robotics Federation (ORF).

and also quadrotors. Quadrotors!


Tue Aug 06, 2013 1:24 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3297
Location: Rotterdam, The Netherlands
Post Re: Problem with NXT motors B and C response
Once it exists, I'm sure they'll release something :)

= 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]


Tue Aug 06, 2013 1:44 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 19 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 2 guests


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.