Revision 32ddee6e examples/sensorapi/sensorapi.ino
examples/sensorapi/sensorapi.ino | ||
---|---|---|
68 | 68 |
bno.getSystemStatus(&system_status, &self_test_results, &system_error); |
69 | 69 |
|
70 | 70 |
/* Display the results in the Serial Monitor */ |
71 |
Serial.println(""); |
|
71 | 72 |
Serial.print("System Status: 0x"); |
72 | 73 |
Serial.println(system_status, HEX); |
73 | 74 |
Serial.print("Self Test: 0x"); |
... | ... | |
107 | 108 |
Serial.print(" A:"); |
108 | 109 |
Serial.print(accel, DEC); |
109 | 110 |
Serial.print(" M:"); |
110 |
Serial.println(mag, DEC);
|
|
111 |
Serial.print(mag, DEC); |
|
111 | 112 |
} |
112 | 113 |
|
113 | 114 |
/**************************************************************************/ |
... | ... | |
134 | 135 |
displaySensorDetails(); |
135 | 136 |
|
136 | 137 |
/* Optional: Display current status */ |
137 |
// displaySensorStatus();
|
|
138 |
displaySensorStatus(); |
|
138 | 139 |
|
139 | 140 |
bno.setExtCrystalUse(true); |
140 | 141 |
} |
... | ... | |
160 | 161 |
Serial.print(event.orientation.z, 4); |
161 | 162 |
|
162 | 163 |
/* Optional: Display calibration status */ |
163 |
// displayCalStatus(); |
|
164 |
displayCalStatus(); |
|
165 |
|
|
166 |
/* Optional: Display sensor status (debug only) */ |
|
167 |
//displaySensorStatus(); |
|
164 | 168 |
|
165 | 169 |
/* New line for the next sample */ |
166 | 170 |
Serial.println(""); |
Also available in: Unified diff