Go to Post week 7: check to see if the pets are still alive, ask significant others to take us back, do 6 weeks worth of make-up homework, and ask my boss for another extension. - Tim Baird [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 09-02-2013, 15:04
bumblebee3339's Avatar
bumblebee3339 bumblebee3339 is offline
Team's main account
FRC #3339 (BumbleBee)
 
Join Date: Feb 2013
Rookie Year: 2009
Location: Israel
Posts: 34
bumblebee3339 is an unknown quantity at this point
Autonomous code issue :(

I've written a state machine with 6 states,
It uses two encoders to know if to stay or proceed.
Image:

It includes a 'wheel distance' sub vi:

The sub vi takes the output of the encoder and makes it a distance in cm (it isnt the problem)

The issue is that the robot doesnt move at all.
I used Highlight and it look like the motors DO get the value and should move and then it enters the parallel loops and stays there forever because the robot doesnt move.

Code explained: (If you didnt get it)
It takes the current value of the encoder and adds it 50 (cm)
Then it gives the motors a value until both of the encoders encrease by 50,
then it moves to the next state and so on...

So, I can't figure out why the motors don't move
BTW they move in the teleop so it's not about the jaguars or PWMs.

Thx for the helpers
Reply With Quote
 


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 12:05.

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