Go to Post Is there a way to spotlight an entire thread? - ctt956 [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 21-02-2015, 18:45
The_Waffleing's Avatar
The_Waffleing The_Waffleing is offline
The Horse Shaman
AKA: Mitchel
FRC #0753 (The High Desert Droids)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2012
Location: Bend
Posts: 32
The_Waffleing is an unknown quantity at this point
Having Problems With Even The Simplest of Auxiliary Control

So I've been trying to figure out what is wrong with my state machine because it won't do anything that I've programmed it to do so I tried to take everything that I have done and try to simplify it as much as possible so that I can then start building on it and hopefully have a functional state machine for the auxiliary control. However with what I have in the image it still will not run and of the functions that I have it trying to do with it. I'm contemplating if it's in the wrong VI for this kind of thing since I have it in Teleop, but am I doing anything inherently wrong because this has finally stumped me.
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	50
Size:	90.7 KB
ID:	18455  
Reply With Quote
  #2   Spotlight this post!  
Unread 21-02-2015, 18:58
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: Having Problems With Even The Simplest of Auxiliary Control

You are definitely doing something that is "inherently wrong" with your motors. I see you controlling the same motors in many different places, and some of them are contradictory. I think you need to rethink what you want the motors to do, come up with an exact description, and figure out a way to get each motor to do it with only one Motor Set apiece.
Reply With Quote
  #3   Spotlight this post!  
Unread 21-02-2015, 19:00
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,731
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: Having Problems With Even The Simplest of Auxiliary Control

Don't know what's in the opposite Case statements, but a basic logic issue is that you are setting the same motor/solenoid in separate places to different values.

A motor/solenoid should only be set in a single place.
Use the Cases to determine/negotiate what value it should get.

Example given,
or
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 21-02-2015 at 19:17.
Reply With Quote
  #4   Spotlight this post!  
Unread 21-02-2015, 19:45
The_Waffleing's Avatar
The_Waffleing The_Waffleing is offline
The Horse Shaman
AKA: Mitchel
FRC #0753 (The High Desert Droids)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2012
Location: Bend
Posts: 32
The_Waffleing is an unknown quantity at this point
Re: Having Problems With Even The Simplest of Auxiliary Control

Quote:
Originally Posted by Mark McLeod View Post
Don't know what's in the opposite Case statements, but a basic logic issue is that you are setting the same motor/solenoid in separate places to different values.

A motor/solenoid should only be set in a single place.
Use the Cases to determine/negotiate what value it should get.

Example given,
or
Thanks Mark, I was able to fix the mistakes. Robot is working fine now.
Reply With Quote
  #5   Spotlight this post!  
Unread 21-02-2015, 19:49
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,731
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: Having Problems With Even The Simplest of Auxiliary Control

Good.
The limit switch implementation would have turned off all motor power, instead of only in one direction.
__________________
"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 03:54.

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