Go to Post I think the answer you will get will be the same we have been saying since post #2 on page 1. - KenWittlief [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-02-2010, 16:10
LinkSlayer64 LinkSlayer64 is offline
Registered User
FRC #0562
 
Join Date: Jan 2010
Location: Sterling
Posts: 2
LinkSlayer64 is an unknown quantity at this point
Windriver Vex Ultrasonic Sensor Issues

Hello all,

We are trying to get a Vex ultrasonic sensor to work in Windriver and are having some trouble. Either we get 0.00 or some weird numbers which seem like they'd be right, but we get no input after the initial number. We have tried swapping the Input and output cables and have checked out output format and it is %f. Could someone please post their source code
We used the code
Code:
Ultrasonic ultra;
....
ultra(5, 6)
....
{
ultra.SetEnabled(true);
}
Operator 
{
ultra.SetAutomaticMode();
while (IsOperatorControl())
{
lcd->PrintfLine(lcd->kUser_Line3,"sonic: %f",ultra.GetRangeInches());
lcd->UpdateLCD();
}
}
(sometimes auto was excluded and ping was stuck in the loop)
Note, this is not exact, but it did compile right, etc. we just desperately need help, because this is ANNOYING, personally I may just want to switch to something else, but in the meantime, please help, thanks.
Closed Thread


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
Ultrasonic Sensor Pneumaticsman Technical Discussion 7 29-01-2009 01:32
VEX Ultrasonic Sensor Pausert NI LabVIEW 1 27-01-2009 11:27
Vex Ultrasonic Sensor not responding SomeoneKnows Programming 6 18-12-2007 16:48
VEX Ultrasonic Sensor delay P1h3r1e3d13 Programming 4 28-03-2006 13:45
Ultrasonic Sensor winners Programming 3 02-01-2006 20:55


All times are GMT -5. The time now is 23:22.

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