Home › Forums › Forums › Technical Support for BerryIMU › [Resolved]Unable to open I2C bus › Reply To: [Resolved]Unable to open I2C bus
gcc -o gyro_accelerometer_tutorial02 -lm gyro_accelerometer_tutorial02.c
sdl-config --libs -lSDL_image -lSDL_gfx
gyro_accelerometer_tutorial02.c: In function ‘startSDL’:
gyro_accelerometer_tutorial02.c:217:19: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
gyro_accelerometer_tutorial02.c: In function ‘graphics’:
gyro_accelerometer_tutorial02.c:280:38: warning: assignment makes pointer from integer without a cast [enabled by default]
gyro_accelerometer_tutorial02.c:281:39: warning: assignment makes pointer from integer without a cast [enabled by default]
sudo ./gyro_accelerometer_tutorial02 It Works!!!! So cool!!!!
Want to use this as a leveller for my Caravan connected to 4 worm shafts to auto level the Van. (I think the update rate is going to be to slow thou.)
Thou it is working now it is quite slow to update and appears to be slightly out of calibration when on a flat level surface after a second or so when it stabilize I have to hold the unit at about 10 degrees off flat on the left/right axis to show flat on the PiScreen, front to back seems to be ok.