Go to Post Now, most of the replies are very tactful when they are questioning a teams' design... but some are simply stupid. Keep your heads. - Andy Baker [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
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 01-24-2009, 03:42 PM
VeedotJaydot VeedotJaydot is offline
Registered User
FRC #1379
 
Join Date: Sep 2008
Location: Norcross, GA
Posts: 11
VeedotJaydot is an unknown quantity at this point
[FTC]: Problem with Code or Problem with Bluetooth?

The attached VI is a sample of the drive code we want to use. For why we're driving servos, that's going to be a surprise. Anyway, the code can be deployed to the robot via bluetooth, however, I don't think that the code can progress beyond the ReadMessage VI and I don't know why that wouldn't happen. In summation, is the attached code wrong, or would there be a reason for why it wouldn't work?
Attached Files
File Type: vi Drive Feat Controler.vi (19.4 KB, 62 views)
Reply With Quote
  #2   Spotlight this post!  
Unread 01-24-2009, 09:35 PM
emmell's Avatar
emmell emmell is offline
Murphy was an Optimist!
AKA: Mannie Lowe
no team (Radbotics, RoboKnights, CircuitRunners, Oscar, and more...)
Team Role: Coach
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Marietta, GA
Posts: 178
emmell is just really niceemmell is just really niceemmell is just really niceemmell is just really niceemmell is just really nice
Re: [FTC]: Problem with Code or Problem with Bluetooth?

Okay. I'm no expert in LabView, but it appears to me that you are doing somehting wrong with the output of the ReadPacket block (not the ReadMessage block).

Your inner loop reads a message and stops breaks out of the loop if the ReadMessage pack is true (right click on the red dot inside the loop and the "Stop if True" is checked). so, you've exited that loop and the data comes out of the ReadMessage and is sent to the Read Packet block. However that is inside another While loop. The boolean output of the ReadPacket ("did I get a valid packet?") comes to the loop condition (that other red dot) and it also has the "Stop if True" checked. So, you outer loop then immediately stops on a successful Read packet. You never get past that block.

Go to www.ftctraining.com and download the templates for LabView. Then put your servo driving blocks inside those loops. You should be happier.

Good luck.
__________________
Mannie Lowe
FIRST Program Manager - Center for Mathematics and Science Education - University of Mississippi
Mississippi FIRST Tech Challenge Affiliate Partner


Reply With Quote
  #3   Spotlight this post!  
Unread 01-26-2009, 10:23 PM
jbbjjbt jbbjjbt is offline
VRC Coach
AKA: Jon T
VRC #0177 (Twisted Botz)
Team Role: Coach
 
Join Date: Feb 2006
Rookie Year: 2004
Location: Gloucester, VA
Posts: 110
jbbjjbt is an unknown quantity at this point
Re: [FTC]: Problem with Code or Problem with Bluetooth?

Quote:
Originally Posted by VeedotJaydot View Post
The attached VI is a sample of the drive code we want to use. For why we're driving servos, that's going to be a surprise. Anyway, the code can be deployed to the robot via bluetooth, however, I don't think that the code can progress beyond the ReadMessage VI and I don't know why that wouldn't happen. In summation, is the attached code wrong, or would there be a reason for why it wouldn't work?
First of all, start with the required template for teleoperate from ftctraining.com. Then you wont have to figue out the bluetooth and the loops etc. Second your move servo commands need hooked up correctly. You only get 1 hitec servo controller so they should both be hooked to the same port (usually 1) and the same controller (usually 2).
__________________
Jon Thompson
Coach
VRC 177 Twisted Botz
Sponsored by FRC 122
NASA Knights
Reply With Quote
  #4   Spotlight this post!  
Unread 01-27-2009, 06:22 PM
VeedotJaydot VeedotJaydot is offline
Registered User
FRC #1379
 
Join Date: Sep 2008
Location: Norcross, GA
Posts: 11
VeedotJaydot is an unknown quantity at this point
Re: [FTC]: Problem with Code or Problem with Bluetooth?

Oh, controller is the servo controler, not the actual robot controller, thanks for telling me that. Also, thank you for your concern about the manditory template for the teleop; I didn't want to post the entire code in context because we were only having problems with that bit of code.
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
[FTC]: Problem with two controller setup in Labview wilsonmw04 FIRST Tech Challenge 2 11-11-2008 07:58 PM
[FTC]: First problem with FTC and LabView.....? PhilBot FIRST Tech Challenge 5 11-07-2008 10:36 AM
[FTC]: FTC Servo-Motor Problem with Labview dnhansen FIRST Tech Challenge 1 10-26-2008 12:43 AM
Problem with Kevin's code Tottanka Programming 5 11-04-2007 01:32 PM
Problem with Modified Code Brigander Programming 14 01-31-2007 01:25 PM


All times are GMT -5. The time now is 07:35 AM.

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