Go to Post Competition is only the path that FIRST takes to bring science, engineering, and technology to the masses. - Pavan Dave [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 09-02-2009, 16:07
rjn rjn is offline
Registered User
no team
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Why is this required
Posts: 15
rjn is an unknown quantity at this point
Doesn't execute teleop execute case

We created a prototype traction-control code, however, we aren't sure if it is a problem with encoders in begin or if it is a problem with teleop, which is why after pain-staking hours of attempted debugging, and deciding it would be better than making ten million screen shots, here is our project.


The way the teleop works, although I added some comments, it might now have been enough/they may have been deleted, is the expected velocity value based on the joystick and compares it to the real value of velocity based on the accelerometer and corrects the values accordingly through a pid and gives it to the jag, it is also corrected for motor bias using encoders and ratios, which is that code node and the a and b wires. Please take a look, and I know I didn't do a very good job explaining, but that is because there is a lot, but I will be very actively checking the thread and answer every single question, our coders are quite confused. : s


dteleop is our traction control teleop, and some of the sub vis may be un apptly named.

Fred is where all the traction control occurs, vpid is the velocity pid and uh, yeah, have to run. Thanks for all the help.
Attached Files
File Type: zip Proj.zip (1.92 MB, 22 views)
Reply With Quote
  #2   Spotlight this post!  
Unread 09-02-2009, 21:29
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 544
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
Re: Doesn't execute teleop execute case

A little more explanation-

We have tried running the code from labview (not building/deploying), and it appears as though the code never sends anything out of begin.vi when we are looking at robot main. Begin.vi seems to take significantly longer running the enocder opens than anything else.

When looking at the data flowing through dteleop, it appears as if the code repeats the Teleop init case over and over again, and is never actually running the execute case.

We are unsure as to whether there is something in begin.vi, or dteleop.vi that is causing the problems. You may be able to determine our problem simply by looking at these two files as opposed to the whole project.
__________________
Team 2052- Knightkrawler
Mentor and volunteer
Reply With Quote
  #3   Spotlight this post!  
Unread 09-02-2009, 23:50
NumBeast NumBeast is offline
Head Code Monkey
FRC #1011 (CRUSH)
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Tucson,
Posts: 12
NumBeast is an unknown quantity at this point
Re: Doesn't execute teleop execute case

This might or might not be your problem, but in begin.vi your newly opened encoders aren't wired into your robot data structure. They're kinda just hanging there...
__________________
All signatures are false.
Reply With Quote
  #4   Spotlight this post!  
Unread 10-02-2009, 08:08
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,751
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: Doesn't execute teleop execute case

As mentioned, your encoders aren't hooked up. Also, you have a start communications in the Vision VI.

I don't see anything that would make Begin run more than once. Put a breakpoint on something like an open node in it. Right click and set breakpoint. If you hit the breakpoint more than once, the stack crawl ring at the top of the window will show who is calling.

I think you'll find that there is only one call. Sorry I couldn't be more help.

Greg McKaskle
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't get program to execute Thxe C/C++ 3 09-02-2009 08:33
Telling Labview which loop to execute first professorX NI LabVIEW 5 02-02-2009 15:15
execute.h magical hands Programming 2 10-03-2007 21:02
EasyC: Execute code before autonomous Greg Marra Programming 7 07-01-2007 21:30
How I can execute Javascript into Perl? TomS Programming 3 22-08-2006 16:35


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

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