Merge pull request #3138 from codekane/mpu6050_imu

This commit is contained in:
Blaž Kristan 2023-03-19 07:38:44 +01:00 committed by GitHub
commit cac51737cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,7 +209,7 @@ class MPU6050Driver : public Usermod {
JsonObject user = root["u"]; JsonObject user = root["u"];
if (user.isNull()) user = root.createNestedObject("u"); if (user.isNull()) user = root.createNestedObject("u");
JsonArray imu_meas = user.createNestedObject("IMU"); JsonObject imu_meas = user.createNestedObject("IMU");
JsonArray quat_json = imu_meas.createNestedArray("Quat"); JsonArray quat_json = imu_meas.createNestedArray("Quat");
quat_json.add(qat.w); quat_json.add(qat.w);
quat_json.add(qat.x); quat_json.add(qat.x);
@ -287,4 +287,4 @@ class MPU6050Driver : public Usermod {
return USERMOD_ID_IMU; return USERMOD_ID_IMU;
} }
}; };