Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Having Problems With Even The Simplest of Auxiliary Control (http://www.chiefdelphi.com/forums/showthread.php?t=135005)

The_Waffleing 21-02-2015 18:45

Having Problems With Even The Simplest of Auxiliary Control
 
1 Attachment(s)
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.

Alan Anderson 21-02-2015 18:58

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.

Mark McLeod 21-02-2015 19:00

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

The_Waffleing 21-02-2015 19:45

Re: Having Problems With Even The Simplest of Auxiliary Control
 
Quote:

Originally Posted by Mark McLeod (Post 1448088)
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.

Mark McLeod 21-02-2015 19:49

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.


All times are GMT -5. The time now is 10:26.

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