View Single Post
  #2   Spotlight this post!  
Unread 24-01-2009, 21:35
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