|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
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) |
|
#2
|
||||
|
||||
|
Re: Programming ultrasonic sensor in MPlab
Quote:
Team 358 has a Vex Ultrasonic demo code download on their website. This looks like a good place to start. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |