blue mbed code for the BNO055 imu from adafruit
Dependencies: BNO055 MODSERIAL mbed
Fork of bmbed_lidar_belt by
Diff: main.cpp
- Revision:
- 16:70fce771d828
- Parent:
- 15:d6edd100d7fe
- Child:
- 17:32b83c5787fc
--- a/main.cpp Sat Oct 17 19:30:41 2015 +0000 +++ b/main.cpp Sat Oct 17 19:55:27 2015 +0000 @@ -78,7 +78,7 @@ float potValue(){ //float pot = potentiometer.read(); - float pot = 0.25; + float pot = ((float)((char)pc.getc()) - '0')/18.0; if(pot <= 0.5) return 2*pot; else @@ -206,9 +206,9 @@ pulses[k] = 1; intensity[k] = 0; } - //for(int z=0;z<4;z++) - // pc.printf("angle: %f radius %d is %f ",angle[k],z,radius[z]); - //pc.printf("\n"); + for(int z=0;z<4;z++) + pc.printf("angle: %f radius %d is %f ",angle[k],z,radius[z]); + pc.printf("\n"); if(distance > 0 && distance < radius[0]) { pulses[k] = 5; intensity[k] = 7;