Author |
Message |
Chaback
Rookie
Joined: Tue Aug 04, 2015 6:19 am Posts: 7
|
 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 |
|
 |
mightor
Site Admin
Joined: Wed Mar 05, 2008 8:14 am Posts: 3654 Location: Rotterdam, The Netherlands
|
 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 |
|
 |
Chaback
Rookie
Joined: Tue Aug 04, 2015 6:19 am Posts: 7
|
 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 |
|
 |
mightor
Site Admin
Joined: Wed Mar 05, 2008 8:14 am Posts: 3654 Location: Rotterdam, The Netherlands
|
 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 |
|
 |
Chaback
Rookie
Joined: Tue Aug 04, 2015 6:19 am Posts: 7
|
 Re: sequential issue
Here is the zip file.
|
Tue Aug 04, 2015 2:57 pm |
|
 |
mightor
Site Admin
Joined: Wed Mar 05, 2008 8:14 am Posts: 3654 Location: Rotterdam, The Netherlands
|
 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 |
|
 |
Chaback
Rookie
Joined: Tue Aug 04, 2015 6:19 am Posts: 7
|
 Re: sequential issue
Feel like teaching the students to always start with set motors is good programming.
|
Wed Aug 05, 2015 6:01 am |
|
 |
Tabor473
Moderator
Joined: Tue May 19, 2015 3:07 pm Posts: 91
|
 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 |
|
 |
Chaback
Rookie
Joined: Tue Aug 04, 2015 6:19 am Posts: 7
|
 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 |
|
 |
Tabor473
Moderator
Joined: Tue May 19, 2015 3:07 pm Posts: 91
|
 Re: sequential issue
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 |
|
 |
Chaback
Rookie
Joined: Tue Aug 04, 2015 6:19 am Posts: 7
|
 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 |
|
|