|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Programming a Devantech Magnetic Compass - CMPS03
I am using a 2004 FIRST Robot Controller, I need help getting the 0-5 read show up on the the IFI Dashboard (I know it will will show as 0-255). So far I have plug it into an analog port and made an aliases-
#define Compass ADC_CH3 I also call it from user_routine_fast- { pwm13 = Get_Analog_Value(Compass)/4.023; printf("%d", pwm13); } Can someone show me what is wrong? I can send you the code if you would like. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Interfacing a digital compass with the RC | Kelly | Electrical | 14 | 27-09-2007 19:01 |
| Where can I get a digital compass sensor? | EHaskins | Technical Discussion | 6 | 26-09-2007 18:33 |
| I2C Digital Compass Programming | CyberWolf_22 | Programming | 7 | 03-01-2005 00:20 |
| Political Compass | Joshua May | Chit-Chat | 11 | 01-10-2004 22:32 |
| Compass/direction sensor | Frank(Aflak) | Technical Discussion | 10 | 06-04-2003 09:18 |