Go to Post I don't care what the team numbers said, on Friday there were no rookies there. - Taylor [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 09-05-2006, 00:07
AdamHeard's Avatar
AdamHeard AdamHeard is offline
Lead Mentor
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Atascadero
Posts: 5,507
AdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond repute
Send a message via AIM to AdamHeard
Programming ultrasonic sensor in MPlab

Hi,
I'm trying to program a vex controller with MPlab and I can't seem to figure out how to program the utlrasonic sensor.

I understand the concept that (speed of sound x return time)/2 = distance but how do I implement it.


I know C syntax and have programmed FRC before, and vex a little. It's just that when I program for my team, most of the time it's control related, or I'm just changing the values of an existing function so I'm not exactly sure how to make this work.

Any Help would be apreciated.

(For reference I have the sensor plugged into Digital 11 and Interupt 1)
Reply With Quote
  #2   Spotlight this post!  
Unread 09-05-2006, 00:40
MattD's Avatar
MattD MattD is offline
Registered User
AKA: Matthew Douglas
FRC #0228 (GUS Robotics)
Team Role: Alumni
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Indianapolis, IN
Posts: 185
MattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to behold
Send a message via AIM to MattD
Re: Programming ultrasonic sensor in MPlab

Quote:
Originally Posted by cromat44
Hi,
I'm trying to program a vex controller with MPlab and I can't seem to figure out how to program the utlrasonic sensor.

I understand the concept that (speed of sound x return time)/2 = distance but how do I implement it.


I know C syntax and have programmed FRC before, and vex a little. It's just that when I program for my team, most of the time it's control related, or I'm just changing the values of an existing function so I'm not exactly sure how to make this work.

Any Help would be apreciated.

(For reference I have the sensor plugged into Digital 11 and Interupt 1)

Team 358 has a Vex Ultrasonic demo code download on their website. This looks like a good place to start.
__________________
GUS Robotics Team 228

2010 WPI Engineering Inspiration Award
2010 WPI Regional Champions (Thanks 230 & 20!)
2010 CT VEX Champions
2010 CT VEX Innovate Award
2009 QCC VEX Champions
2009 CT Motorola Quality Award
2007 CT J&J Sportsmanship Award
2006 CT Best Website Award
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
Programming Vex w/ MPLab dababyjebus FIRST Tech Challenge 27 25-04-2008 09:11
Programming - Getting Started Mark McLeod Programming 80 16-04-2008 23:37
Programming the parallax PING))) Ultrasonic Sensor edman Programming 3 18-02-2006 23:37
MPLAB Help, programming and compiling RedOctober Programming 2 23-12-2005 17:46
Programming Sub-Team Problems Phil Paspalas Programming 9 19-01-2005 21:42


All times are GMT -5. The time now is 15: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