Skip to content

Commit d8a0db5

Browse files
authored
Merge pull request #94 from sparkfun/release_candidate
v1.12 - merge release_candidate - increase DMP resolution to 5 decimal places
2 parents 4a9bee8 + a2e1d68 commit d8a0db5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Firmware/OpenLog_Artemis/OpenLog_Artemis.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,11 @@
9494
(done) Add minimum awake time: https://github.com/sparkfun/OpenLog_Artemis/issues/83
9595
(done) Add support for the Pulse Oximeter: https://github.com/sparkfun/OpenLog_Artemis/issues/81
9696
(won't do?) Add support for the Qwiic Button. The QB uses clock-stretching and the Artemis really doesn't enjoy that...
97+
(done) Increase DMP data resolution to five decimal places https://github.com/sparkfun/OpenLog_Artemis/issues/90
9798
*/
9899

99100
const int FIRMWARE_VERSION_MAJOR = 1;
100-
const int FIRMWARE_VERSION_MINOR = 11;
101+
const int FIRMWARE_VERSION_MINOR = 12;
101102

102103
//Define the OLA board identifier:
103104
// This is an int which is unique to this variant of the OLA and which allows us

Firmware/OpenLog_Artemis/Sensors.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,13 @@ void getData()
129129
}
130130
if (settings.imuLogDMPQuat6)
131131
{
132-
sprintf(tempData, "%.3f,%.3f,%.3f,", ((double)dmpData.Quat6.Data.Q1) / 1073741824.0,
132+
sprintf(tempData, "%.5f,%.5f,%.5f,", ((double)dmpData.Quat6.Data.Q1) / 1073741824.0,
133133
((double)dmpData.Quat6.Data.Q2) / 1073741824.0, ((double)dmpData.Quat6.Data.Q3) / 1073741824.0);
134134
strcat(outputData, tempData);
135135
}
136136
if (settings.imuLogDMPQuat9)
137137
{
138-
sprintf(tempData, "%.3f,%.3f,%.3f,%d,", ((double)dmpData.Quat9.Data.Q1) / 1073741824.0,
138+
sprintf(tempData, "%.5f,%.5f,%.5f,%d,", ((double)dmpData.Quat9.Data.Q1) / 1073741824.0,
139139
((double)dmpData.Quat9.Data.Q2) / 1073741824.0, ((double)dmpData.Quat9.Data.Q3) / 1073741824.0, dmpData.Quat9.Data.Accuracy);
140140
strcat(outputData, tempData);
141141
}

0 commit comments

Comments
 (0)