Go to Post My robotics team is my love (my ex-wife told me so). - Koko Ed [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 11-03-2014, 15:51
Darthjawafett Darthjawafett is offline
Registered User
FRC #3059
 
Join Date: Jan 2012
Location: Yonkers
Posts: 14
Darthjawafett is an unknown quantity at this point
Flat Sequence Problems

Alright so in autonomous I want a flat sequence of events. Where the robot moves forward stops turns right so that its left side faces the goal and then I want its shooter mechanism to work. I programmed it to do this if it sees the goal is hot and what happened was that it ran all of that code at the same time. I do have wait timers programmed in the sequence but it still runs all of it at once.
Reply With Quote
  #2   Spotlight this post!  
Unread 11-03-2014, 15:55
mgerber's Avatar
mgerber mgerber is offline
Shoddy Programmer
AKA: Max Gerber
FRC #0223 (Xtreme Heat)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: New Jersey
Posts: 21
mgerber is on a distinguished road
Re: Flat Sequence Problems

Could you post a picture of your code?
Reply With Quote
  #3   Spotlight this post!  
Unread 11-03-2014, 16:16
Darthjawafett Darthjawafett is offline
Registered User
FRC #3059
 
Join Date: Jan 2012
Location: Yonkers
Posts: 14
Darthjawafett is an unknown quantity at this point
Re: Flat Sequence Problems

Reply With Quote
  #4   Spotlight this post!  
Unread 11-03-2014, 16:38
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,113
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: Flat Sequence Problems

Quote:
Originally Posted by Darthjawafett View Post
...it still runs all of it at once.
Can you clarify what that means? Your drive motors are being asked to do three different things in sequence. What do they actually do when the code runs? When does your solenoid actually change state?
Reply With Quote
  #5   Spotlight this post!  
Unread 11-03-2014, 16:39
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,833
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: Flat Sequence Problems

You need to stop the motors in the last frame.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #6   Spotlight this post!  
Unread 11-03-2014, 16:43
Darthjawafett Darthjawafett is offline
Registered User
FRC #3059
 
Join Date: Jan 2012
Location: Yonkers
Posts: 14
Darthjawafett is an unknown quantity at this point
Re: Flat Sequence Problems

Alright so what happens is that when autonomous is run the pistons change state and the motor runs forward while turning at the same exact time. What I want the robot to do is to move forward, then stop, then turn, then stop and when it turns i want the piston to change its state.

Any Suggestions?
Reply With Quote
  #7   Spotlight this post!  
Unread 11-03-2014, 16:50
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,833
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: Flat Sequence Problems

Does your Telop driving code work properly?
Could we see that to compare?

Are your speed controllers wired the same on both sides of the robot, or is the wiring reversed on one side?

Did you invert the motors in Begin?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #8   Spotlight this post!  
Unread 11-03-2014, 16:57
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,113
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: Flat Sequence Problems

I don't understand what "motor runs forward while turning" is describing. Is it only one of your drive motors that is misbehaving? Try telling us what your drive wheels are doing.


Does anything in Periodic Tasks also control your drive motors and/or the solenoid?


How is everything defined in Begin? It might help to show us that code too. [A static screen capture is less useful than the actual code -- there is a wire coming into your sequence that runs somewhere we can't follow it, for example. You can select the relevant part of the vi and save it as a vi snippet (from the Edit menu), making a .png file that you can upload as a picture but which we can also run in LabVIEW in order to inspect it more closely.]


What exactly are you doing in order to run autonomous mode? Please be as detailed and specific as you can.
Reply With Quote
  #9   Spotlight this post!  
Unread 11-03-2014, 17:02
Darthjawafett Darthjawafett is offline
Registered User
FRC #3059
 
Join Date: Jan 2012
Location: Yonkers
Posts: 14
Darthjawafett is an unknown quantity at this point
Re: Flat Sequence Problems

Teleop is working properly


And the Begin Vi where one motor is inverted to have the robot drive forward when both have the same value.
Reply With Quote
  #10   Spotlight this post!  
Unread 11-03-2014, 17:30
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Flat Sequence Problems

Your wait values are large enough that you can practically turn on execution highlighting and run your code from the run button with the diagram open.

Greg McKaskle
Reply With Quote
  #11   Spotlight this post!  
Unread 11-03-2014, 18:43
Darthjawafett Darthjawafett is offline
Registered User
FRC #3059
 
Join Date: Jan 2012
Location: Yonkers
Posts: 14
Darthjawafett is an unknown quantity at this point
Re: Flat Sequence Problems

Here is my google drive with all of the files related to the project. For those who requested it
https://drive.google.com/#folders/0B...DJMLW04Y0w0Wmc
Reply With Quote
  #12   Spotlight this post!  
Unread 11-03-2014, 22:29
mgerber's Avatar
mgerber mgerber is offline
Shoddy Programmer
AKA: Max Gerber
FRC #0223 (Xtreme Heat)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: New Jersey
Posts: 21
mgerber is on a distinguished road
Re: Flat Sequence Problems

The first frame has a delay of 200ms, or .2 seconds. Is it possible that the frame is executing too quickly for you to see? That could explain why it seems to start turning instantly.
Reply With Quote
  #13   Spotlight this post!  
Unread 11-03-2014, 22:47
Darthjawafett Darthjawafett is offline
Registered User
FRC #3059
 
Join Date: Jan 2012
Location: Yonkers
Posts: 14
Darthjawafett is an unknown quantity at this point
Re: Flat Sequence Problems

Possibly, but when it was at 1000 ms as its wait timer and it still had the same result. I think the most its wait timer was set to was 2000 ms
Reply With Quote
  #14   Spotlight this post!  
Unread 12-03-2014, 02:59
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,113
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: Flat Sequence Problems

Quote:
Originally Posted by Darthjawafett View Post
Here is my google drive...
It looks like you haven't given anyone else permission to view that folder.



Looking at the screen shots, I don't see anything in your teleop that controls your drive motors. That was the part that Mark wanted to compare against your autonomous code.

Again, might you have anything in Periodic Tasks that could be interfering with the drive and solenoid outputs?

This isn't very relevant, but I'm also a little curious about your drivebase mechanical setup. It seems unusual to me that it's the left motor you have inverted.
Reply With Quote
  #15   Spotlight this post!  
Unread 12-03-2014, 03:49
Darthjawafett Darthjawafett is offline
Registered User
FRC #3059
 
Join Date: Jan 2012
Location: Yonkers
Posts: 14
Darthjawafett is an unknown quantity at this point
Flat Sequence Problems

I've edited my permissions on Google Drive so now you can check the project itself. The way our build team sets up the motors one usually faces the other way from the other motor so I have to invert one so that if both joysticks are moved forward the robot also moves forward

Last edited by Darthjawafett : 12-03-2014 at 08:08.
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 20:18.

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