View Single Post
  #1   Spotlight this post!  
Unread 27-09-2007, 10:17
kE7JLM's Avatar
kE7JLM kE7JLM is offline
KE7JLM `
AKA: John Harris
FRC #0842 (Falcon Robotics)
Team Role: Driver
 
Join Date: May 2007
Rookie Year: 2006
Location: Phoenix, AZ`
Posts: 136
kE7JLM is a name known to allkE7JLM is a name known to allkE7JLM is a name known to allkE7JLM is a name known to allkE7JLM is a name known to allkE7JLM is a name known to all
Send a message via MSN to kE7JLM
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.
__________________
Team 842 Programmer

Pictures at:
http://picasaweb.google.com/KE7JLM
&
http://picasaweb.google.com/john.h.842

Videos -
http://www.youtube.com/user/KE7JLM

When your not busy with FIRST try NURC