Go to Post I am definitely as much a student as any one of the kids on the team. - Hieb [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-02-2014, 13:43
DarthMaulCIS DarthMaulCIS is offline
Registered User
FRC #4607
 
Join Date: Jan 2014
Location: Becker, Minnesota
Posts: 24
DarthMaulCIS is an unknown quantity at this point
Re: Coding in a sequence.

I plan for the solenoid to re-extend after the winch brings the catapult back down.

Initially, the solenoid is holding back a catapult. When it retracts(the button is pressed), the catapult will launch. Then, the winch will start after the catapult launches, to pull the catapult back to starting position. Once it is back to the starting position, the solenoid will re-extend to hold back the catapult again until the driver hits the fire button again.

Why wouldn't it work in TeleOp?
Reply With Quote
  #2   Spotlight this post!  
Unread 02-02-2014, 14:02
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Coding in a sequence.

Quote:
Originally Posted by DarthMaulCIS View Post
Why wouldn't it work in TeleOp?
Teleop is called by Robot Main each time the Driver Station sends a packet of data, 50 times per second. It's supposed to quickly do its job and be done. If it doesn't run to completion before the next DS packet arrives, it'll start tripping the system communication watchdog and your ability to control the robot will suffer.

Using a long-running loop, or waiting for an event to occur, should not be done in Teleop.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-02-2014, 14:11
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Coding in a sequence.

Teleop MUST execute and complete/exit in less than 20ms, otherwise you will lose driver control.
It has to do this to keep up with the driver commands flooding in from your drivers.

If you call a sub vi that delays or add a delay of any kind into Teleop that is more than that 20 ms limit, then your driver's will begin to lose control as their command packets start to get dropped while the robot continues to do what Teleop was last told what to do.
For small time skips the drivers will start to notice slow or jerky robot reaction.
If you use the default Safety Config on the drive motors, then your robot will jerk to a halt after only a tenth of a second. Manipulators that are in motion will continue in motion and not be able to be stopped until your delay in Teleop finishes and Teleop is allowed to process the driver control commands again.
If you delay for really significant amount of time (seconds) and the Safety Config is not used, then the robot will continue driving on it's own according to what it last heard before you hit the button that started the sequence.
With no driver control that probably means crashing into a wall or your alliance partners.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
Reply


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


All times are GMT -5. The time now is 09:56.

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