View unanswered posts | View active topics It is currently Mon Oct 22, 2018 9:32 pm






Reply to topic  [ 11 posts ] 
sequential issue 
Author Message
Rookie

Joined: Tue Aug 04, 2015 6:19 am
Posts: 7
Post sequential issue
We have noticed since the last update that our code does not always execute sequentially. For example, if we program the claw motor to close the claw followed by move backwards, the
program executes the move backwards first and then closes the claw (so the object is left behind).


Tue Aug 04, 2015 6:40 am
Profile
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: sequential issue
Hi there,

Could you please post your code here so we can take a look at this?

= 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 04, 2015 8:35 am
Profile WWW
Rookie

Joined: Tue Aug 04, 2015 6:19 am
Posts: 7
Post Re: sequential issue
Keep receiving a notification error that my file is an .rbg and it cannot be attached.


Tue Aug 04, 2015 8:42 am
Profile
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: sequential issue
zip it up and attach it :)

_________________
| 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 04, 2015 9:46 am
Profile WWW
Rookie

Joined: Tue Aug 04, 2015 6:19 am
Posts: 7
Post Re: sequential issue
Here is the zip file.


Attachments:
diving board.zip [836 Bytes]
Downloaded 431 times
Tue Aug 04, 2015 2:57 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: sequential issue
Is there a specific reason you're using a setMultipleMotors block and not a simple forward block as the first statement in your program?

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


Wed Aug 05, 2015 1:23 am
Profile WWW
Rookie

Joined: Tue Aug 04, 2015 6:19 am
Posts: 7
Post Re: sequential issue
Feel like teaching the students to always start with set motors is good programming.


Wed Aug 05, 2015 6:01 am
Profile
Moderator
Moderator

Joined: Tue May 19, 2015 3:07 pm
Posts: 91
Post Re: sequential issue
So the program you uploaded is telling the robot to do the following behavior
Drive forward continuously while lowering, raising and then lowering the arm
then drive backwards a small amount
open the claw
drive backwards a small amount again


This is also how the robot seems to be behaving when I test it. What are you trying to make the robot do exactly? Should those move motor blocks be the clawMotor or is there a reason the arm is lowering, raising and then lowering again?

Tested in RobotC 4.32


Wed Aug 05, 2015 9:43 am
Profile
Rookie

Joined: Tue Aug 04, 2015 6:19 am
Posts: 7
Post Re: sequential issue
Please explain why the claw motor moves as the last step to the program when move backwards is the last command.


Wed Aug 05, 2015 12:45 pm
Profile
Moderator
Moderator

Joined: Tue May 19, 2015 3:07 pm
Posts: 91
Post Re: sequential issue
Chaback wrote:
Please explain why the claw motor moves as the last step to the program when move backwards is the last command.

This is not the behavior I am seeing so it is hard to debug from my end. I have a couple ideas though

If the claw is getting stuck trying to open than it might never get to the second backward command. Does the program end on your robot?


Fri Aug 07, 2015 1:24 pm
Profile
Rookie

Joined: Tue Aug 04, 2015 6:19 am
Posts: 7
Post Re: sequential issue
Yes. The robot executes the backward command and then the claw motor performs an action that is not programmed.)


Fri Aug 07, 2015 5:15 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 11 posts ] 

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.