Thread: Live C++ help
View Single Post
  #8   Spotlight this post!  
Unread 07-02-2012, 17:05
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Live C++ help

Quote:
Originally Posted by agartner01 View Post
Alright, now it complies. But when I look at the console all I see is a bunch of zeros. I read in the accelerometer manual I have to apply power, but I'm unsure how to do that. (something with the PowerCtlFields)
I am not sure what you meant by apply power. If you have connected the accelerometer correctly to the I2C bus, the I2C bus has power pins that supply power to the accelerometer. You don't need to have code to "apply power". The moment you turn on the Robot, the accelerometer should be powered. I would check the wiring of the accelerometer to make sure you have the +5, GND, SCL and SDA pins connected correctly and the digital side car has power and you have fixed your DB37 cable.
__________________
Reply With Quote