Skip to content

Commit 629161d

Browse files
committed
Add non-compile guard warning
1 parent a647e0e commit 629161d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Firmware/RTK_Everywhere/Tilt.ino

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,9 @@ void beginTilt()
301301
{
302302
result &= tiltSensor->sendCommand("LEVER_ARM=0.03391,0.00272,0.02370"); // -28.2, 0. -23.7mm
303303

304-
//Send AT+INSTALL_ANGLE=180,0,0 if the IM19 module is mounted on the back of the GNSS receiver (so the IM19 faces downward instead of upward), before sending the save command.
305-
result &= tiltSensor->sendCommand("INSTALL_ANGLE=180,0,-90"); //IMU is mounted facing down
304+
// Send AT+INSTALL_ANGLE=180,0,0 if the IM19 module is mounted on the back of the GNSS receiver (so the IM19
305+
// faces downward instead of upward), before sending the save command.
306+
result &= tiltSensor->sendCommand("INSTALL_ANGLE=180,0,-90"); // IMU is mounted facing down
306307
}
307308

308309
// Set the overall length of the GNSS setup in meters: rod length 1800mm + internal length 96.45mm + antenna
@@ -1072,11 +1073,12 @@ void tiltDetect()
10721073
}
10731074

10741075
SerialTiltTest.end(); // Release UART1 for reuse
1075-
1076+
#else
1077+
systemPrintln("<<<<<<<<<< !!!!!!!!!! TILT NOT COMPILED !!!!!!!!!! >>>>>>>>>>");
10761078
#endif // COMPILE_IM19_IMU
10771079

10781080
systemPrintf("Tilt sensor %sdetected\r\n", settings.detectedTilt ? "" : "not ");
1079-
settings.testedTilt = true; //Record this test so we don't do it again
1081+
settings.testedTilt = true; // Record this test so we don't do it again
10801082
recordSystemSettings();
10811083
return;
10821084
}

0 commit comments

Comments
 (0)