Use a touchscreen display to select which sensor measurement to display
Dependencies: mbed DisplayModule24_demo_day10
Diff: compass.h
- Revision:
- 8:a7b7edb66de5
- Parent:
- 7:b275c76de4ba
diff -r b275c76de4ba -r a7b7edb66de5 compass.h --- a/compass.h Tue Jan 17 21:08:45 2017 +0000 +++ b/compass.h Tue Jan 17 21:28:13 2017 +0000 @@ -9,7 +9,7 @@ extern I2C connection; //initialize the sensor to single measure mode -void compass_init(int num = 5); +void compass_init(); //calculates the heading from the data, prints the heading if DEBUG_MODE is defined float calc_heading(short mags[3], float declination); //x, z, y //gets the heading, adjusted for the given declination