This commit is contained in:
Jonas Holmberg 2016-10-28 14:34:59 +02:00
parent 0f37f6600d
commit e040e35cf6

View File

@ -1483,6 +1483,7 @@ void cliRun()
if (ReceiveBinaryDecision(121,110))
{
TransmitBack("Starting calibration! \n\n\r");
mpu6000_read_acc_offset(&accelProfile);
TransmitBack("Calibration complete! \n\n\r");
}
else
@ -1509,8 +1510,10 @@ void cliRun()
{
char tempBuffer[100];
TransmitBack("- Accelerometer calibration information: \n\n\r");
sprintf(tempBuffer, "- Finetune values: \n\r- Pitch: %0.2f \n\r- Roll: %0.2f \n\n\r", accPitchFineTune, accRollFineTune);
TransmitBack(tempBuffer);
sprintf(tempBuffer, "- BaseTune: \n\r-OffsetX: %d \n\r-OffsetY: %d \n\r-OffsetZ: %d \n\n\r", accelProfile.offsetX, accelProfile.offsetY, accelProfile.offsetZ);
TransmitBack(tempBuffer);
break;
}