Go to Post from time to time, we all need a good smack to make us see when we screwed up and did something we shouldn't have. - Andrew Schreiber [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 03-11-2010, 14:13
Res0lu7ion's Avatar
Res0lu7ion Res0lu7ion is offline
<insert funny title here>
AKA: Anthony
FRC #0522 (The Robo Wizards)
Team Role: Scout
 
Join Date: Nov 2008
Rookie Year: 2003
Location: Staten Island, NY
Posts: 25
Res0lu7ion is an unknown quantity at this point
For anyone who used to be in FLL

This is probably a longshot but I'm having difficulties programming my old RCX block.

I'm trying to make it so i can use a wired "controller" made of push sensors react to the motors. Can someone check my programming because it doesn't seem to want to work.



I already posted this in the FLL section but there's been alot of inactivity there recently so I was hoping I could just get help here.
  #2   Spotlight this post!  
Unread 03-11-2010, 15:29
Bob Steele's Avatar
Bob Steele Bob Steele is offline
On the RIBMEATS bandwagon....
AKA: Bob Steele
FRC #1983 (Skunk Works Robotics)
Team Role: Coach
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Seattle, Washington
Posts: 1,506
Bob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond reputeBob Steele has a reputation beyond repute
Re: For anyone who used to be in FLL

How do you know the difference between a lot of inactivity and a little inactivity?
sorry
just wondering
  #3   Spotlight this post!  
Unread 03-11-2010, 15:37
Laaba 80 Laaba 80 is offline
Registered User
AKA: Joey
FRC #1714 (MORE Robotics)
Team Role: Alumni
 
Join Date: Dec 2007
Rookie Year: 2001
Location: San Jose, CA
Posts: 495
Laaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond reputeLaaba 80 has a reputation beyond repute
Re: For anyone who used to be in FLL

What is it doing when you test it?
__________________
Driving Record - 75-43-8
Coaching Record - 92-65
  #4   Spotlight this post!  
Unread 03-11-2010, 20:43
Phoenix Spud's Avatar
Phoenix Spud Phoenix Spud is offline
Everyone. Everywhere.
FRC #3132 (Thunder Down Under)
Team Role: College Student
 
Join Date: Jan 2009
Rookie Year: 2004
Location: Sydney, Australia
Posts: 702
Phoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond repute
Re: For anyone who used to be in FLL

So, let me see if I'm reading your code correctly...

You want to have 3 touch sensors controlling the robot. Port one is for the A motor, three for the B motor and two is an "abort" button. When a touch sensor is pushed in the motor it controls moves backward but when it isn't pushed it moves forward. Did I get all this correctly?

Also, what version of RoboLab are you using?

It appears to me that your abort button isn't working. To correct this, in your first task put a "delete tasks" icon. (I believe it looks like a split icon but has a broom on it.)

It also looks like it will have a lot of lag. To get rid of this, delete all the one second waits.

Hope that helps!
__________________
Sarah Heimlich
Outreach Mentor | Business Mentor
FIRST® TEAM 3132
  #5   Spotlight this post!  
Unread 03-11-2010, 21:11
ptitchener ptitchener is offline
Registered User
FRC #3205
 
Join Date: Jan 2010
Location: Concord, MA
Posts: 14
ptitchener is an unknown quantity at this point
Re: For anyone who used to be in FLL

I think that your issue is that you are using subroutines (the blue forks) instead of task splits to fork the program. Subroutines only run when they are triggered in the main program. To fix this all you should have to do is switch the blue forks to brown ones that have a white bottom.
One good way to do this type of program is to have a touch sensor loop that has the the motor block on the inside and the reverse motor command right after it in a loop that loops while the touch sensor is released and then the jump. This makes it so that while the touch sensor is pushed, the motor goes, but when the touch sensor is not pushed, then the motor will reverse, because the loop will end. When the touch sensor is pushed again, the program will jump back to the loop that runs while the sensor is pushed again. I think that this would make it so that you wouldn't need the touch sensor forks. It also would get rid of the one second lag. I've never tested a program like this, but I think that it should work.

Last edited by ptitchener : 03-11-2010 at 21:34. Reason: more info
  #6   Spotlight this post!  
Unread 05-11-2010, 13:42
Mike Schreiber's Avatar
Mike Schreiber Mike Schreiber is online now
Registered User
FRC #0067 (The HOT Team)
Team Role: Mentor
 
Join Date: Dec 2006
Rookie Year: 2006
Location: Milford, Michigan
Posts: 474
Mike Schreiber has a reputation beyond reputeMike Schreiber has a reputation beyond reputeMike Schreiber has a reputation beyond reputeMike Schreiber has a reputation beyond reputeMike Schreiber has a reputation beyond reputeMike Schreiber has a reputation beyond reputeMike Schreiber has a reputation beyond reputeMike Schreiber has a reputation beyond reputeMike Schreiber has a reputation beyond reputeMike Schreiber has a reputation beyond reputeMike Schreiber has a reputation beyond repute
Re: For anyone who used to be in FLL

I believe you need to move yout red and blue down arrows (the jump landings) to the very beginning of the program immediatly after your Green light, otherwise you're ignoring the 2nd sensor the entire time. I would also put an ABC stop after the 2nd sensor and then another jump loop like you did with the others so you can stop and then start up again, this also allows you to take out the wait 1s because you can stop whenever you want by pressing sensor 2. Not sure if I'm right haven't touched robolab since 5th grade, good luck.

EDIT: ptitchener is right the blue forks are subroutines, I'm not sure the brown ones are the right ones either, but they may be.

I think we need an explanation of what you want your controls to do in order to tell you if your code is correct. For example

Push down 1:
Release 1:
Push down 2:
etc...
__________________
Mike Schreiber

Kettering University ('09-'13) University of Michigan ('14-'18?)
FLL ('01-'02), FRC Team 27 ('06-'09), Team 397 ('10), Team 3450/314 ('11), Team 67 ('14-'??)

Last edited by Mike Schreiber : 05-11-2010 at 13:57.
  #7   Spotlight this post!  
Unread 10-11-2010, 11:25
Res0lu7ion's Avatar
Res0lu7ion Res0lu7ion is offline
<insert funny title here>
AKA: Anthony
FRC #0522 (The Robo Wizards)
Team Role: Scout
 
Join Date: Nov 2008
Rookie Year: 2003
Location: Staten Island, NY
Posts: 25
Res0lu7ion is an unknown quantity at this point
Re: For anyone who used to be in FLL

Quote:
Originally Posted by Laaba 80 View Post
What is it doing when you test it?
The middle button is the only thing that actually works.

Also to anyone who was asking sensor one and two wants to move the motor on each side forward or backward when i push it.. I made the sensors like a controller with


[Sensor one here] [Sensor two here] [and Sensor three here]
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Has anyone used QuickBooks Pro for their team accounting? rickross General Forum 1 30-03-2010 07:34
For anyone who doesn't get the camera code..... Jake M Programming 8 16-01-2006 18:56
Request for FLL Volunteers for FLL National Invitational at the FRC Championships Natchez General Forum 3 08-04-2003 12:19
For NYC FIRST teams who are mentoring FLL team... Rich Wong General Forum 0 04-11-2002 16:01


All times are GMT -5. The time now is 14:08.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi