mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
OP-990 uncrustification
This commit is contained in:
parent
be999329b9
commit
7e50c00885
@ -134,8 +134,8 @@ void BiasCalibrationUtil::startMeasurement()
|
||||
m_gyroY = 0;
|
||||
m_gyroZ = 0;
|
||||
|
||||
ExtensionSystem::PluginManager *pm = ExtensionSystem::PluginManager::instance();
|
||||
UAVObjectManager *uavObjectManager = pm->getObject<UAVObjectManager>();
|
||||
ExtensionSystem::PluginManager *pm = ExtensionSystem::PluginManager::instance();
|
||||
UAVObjectManager *uavObjectManager = pm->getObject<UAVObjectManager>();
|
||||
Q_ASSERT(uavObjectManager);
|
||||
|
||||
RevoCalibration *revolutionCalibration = RevoCalibration::GetInstance(uavObjectManager);
|
||||
@ -144,12 +144,12 @@ void BiasCalibrationUtil::startMeasurement()
|
||||
revoCalibrationData.accel_bias[RevoCalibration::ACCEL_BIAS_X] = 0;
|
||||
revoCalibrationData.accel_bias[RevoCalibration::ACCEL_BIAS_Y] = 0;
|
||||
revoCalibrationData.accel_bias[RevoCalibration::ACCEL_BIAS_Z] = 0;
|
||||
revoCalibrationData.gyro_bias[RevoCalibration::GYRO_BIAS_X] = 0;
|
||||
revoCalibrationData.gyro_bias[RevoCalibration::GYRO_BIAS_Y] = 0;
|
||||
revoCalibrationData.gyro_bias[RevoCalibration::GYRO_BIAS_Z] = 0;
|
||||
revoCalibrationData.gyro_bias[RevoCalibration::GYRO_BIAS_X] = 0;
|
||||
revoCalibrationData.gyro_bias[RevoCalibration::GYRO_BIAS_Y] = 0;
|
||||
revoCalibrationData.gyro_bias[RevoCalibration::GYRO_BIAS_Z] = 0;
|
||||
revoCalibrationData.BiasCorrectedRaw = RevoCalibration::BIASCORRECTEDRAW_FALSE;
|
||||
int i;
|
||||
for(i = 0; i < 5; i++){
|
||||
for (i = 0; i < 5; i++) {
|
||||
RevoCalibration::GetInstance(uavObjectManager)->setData(revoCalibrationData);
|
||||
}
|
||||
|
||||
@ -159,10 +159,10 @@ void BiasCalibrationUtil::startMeasurement()
|
||||
attitudeSettingsData.AccelBias[AttitudeSettings::ACCELBIAS_X] = 0;
|
||||
attitudeSettingsData.AccelBias[AttitudeSettings::ACCELBIAS_Y] = 0;
|
||||
attitudeSettingsData.AccelBias[AttitudeSettings::ACCELBIAS_Z] = 0;
|
||||
attitudeSettingsData.GyroBias[AttitudeSettings::GYROBIAS_X] = 0;
|
||||
attitudeSettingsData.GyroBias[AttitudeSettings::GYROBIAS_Y] = 0;
|
||||
attitudeSettingsData.GyroBias[AttitudeSettings::GYROBIAS_Z] = 0;
|
||||
for(i = 0; i < 5; i++){
|
||||
attitudeSettingsData.GyroBias[AttitudeSettings::GYROBIAS_X] = 0;
|
||||
attitudeSettingsData.GyroBias[AttitudeSettings::GYROBIAS_Y] = 0;
|
||||
attitudeSettingsData.GyroBias[AttitudeSettings::GYROBIAS_Z] = 0;
|
||||
for (i = 0; i < 5; i++) {
|
||||
AttitudeSettings::GetInstance(uavObjectManager)->setData(attitudeSettingsData);
|
||||
}
|
||||
// Set up to receive updates for accels
|
||||
@ -175,7 +175,7 @@ void BiasCalibrationUtil::startMeasurement()
|
||||
UAVObject::SetFlightTelemetryUpdateMode(newMetaData, UAVObject::UPDATEMODE_PERIODIC);
|
||||
newMetaData.flightTelemetryUpdatePeriod = m_accelMeasurementRate;
|
||||
|
||||
for(i = 0; i < 5; i++){
|
||||
for (i = 0; i < 5; i++) {
|
||||
uavObject->setMetadata(newMetaData);
|
||||
}
|
||||
// Set up to receive updates from gyros
|
||||
@ -187,7 +187,7 @@ void BiasCalibrationUtil::startMeasurement()
|
||||
newMetaData = m_previousGyroMetaData;
|
||||
UAVObject::SetFlightTelemetryUpdateMode(newMetaData, UAVObject::UPDATEMODE_PERIODIC);
|
||||
newMetaData.flightTelemetryUpdatePeriod = m_gyroMeasurementRate;
|
||||
for(i = 0; i < 5; i++){
|
||||
for (i = 0; i < 5; i++) {
|
||||
uavObject->setMetadata(newMetaData);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user