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

sequential issue
http://www.robotc.net/forums/viewtopic.php?f=69&t=11833
Page 1 of 1

Author:  Chaback [ Tue Aug 04, 2015 6:40 am ]
Post subject:  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).

Author:  mightor [ Tue Aug 04, 2015 8:35 am ]
Post subject:  Re: sequential issue

Hi there,

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

= Xander

Author:  Chaback [ Tue Aug 04, 2015 8:42 am ]
Post subject:  Re: sequential issue

Keep receiving a notification error that my file is an .rbg and it cannot be attached.

Author:  mightor [ Tue Aug 04, 2015 9:46 am ]
Post subject:  Re: sequential issue

zip it up and attach it :)

Author:  Chaback [ Tue Aug 04, 2015 2:57 pm ]
Post subject:  Re: sequential issue

Here is the zip file.

Attachments:
diving board.zip [836 Bytes]
Downloaded 648 times

Author:  mightor [ Wed Aug 05, 2015 1:23 am ]
Post subject:  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

Author:  Chaback [ Wed Aug 05, 2015 6:01 am ]
Post subject:  Re: sequential issue

Feel like teaching the students to always start with set motors is good programming.

Author:  Tabor473 [ Wed Aug 05, 2015 9:43 am ]
Post subject:  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

Author:  Chaback [ Wed Aug 05, 2015 12:45 pm ]
Post subject:  Re: sequential issue

Please explain why the claw motor moves as the last step to the program when move backwards is the last command.

Author:  Tabor473 [ Fri Aug 07, 2015 1:24 pm ]
Post subject:  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?

Author:  Chaback [ Fri Aug 07, 2015 5:15 pm ]
Post subject:  Re: sequential issue

Yes. The robot executes the backward command and then the claw motor performs an action that is not programmed.)

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