ops
This commit is contained in:
parent
0f37f6600d
commit
e040e35cf6
@ -1483,6 +1483,7 @@ void cliRun()
|
|||||||
if (ReceiveBinaryDecision(121,110))
|
if (ReceiveBinaryDecision(121,110))
|
||||||
{
|
{
|
||||||
TransmitBack("Starting calibration! \n\n\r");
|
TransmitBack("Starting calibration! \n\n\r");
|
||||||
|
mpu6000_read_acc_offset(&accelProfile);
|
||||||
TransmitBack("Calibration complete! \n\n\r");
|
TransmitBack("Calibration complete! \n\n\r");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1509,8 +1510,10 @@ void cliRun()
|
|||||||
{
|
{
|
||||||
char tempBuffer[100];
|
char tempBuffer[100];
|
||||||
TransmitBack("- Accelerometer calibration information: \n\n\r");
|
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);
|
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);
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user