Skip to content

Commit 36f2496

Browse files
committed
Conducted sensor noise test, added data
1 parent 23060d1 commit 36f2496

File tree

5 files changed

+11593
-9
lines changed

5 files changed

+11593
-9
lines changed

SYS_ID_IMU/SYS_ID_IMU.ino

+9-9
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#define serial Serial1
1313

14-
int constantDelay = 20;
14+
int constantDelay = 1;
1515

1616
Servo vane1;
1717
Servo vane2;
@@ -155,18 +155,18 @@ void setup() {
155155

156156

157157
void delayKeepIMU(int ms) {
158-
// elapsedMillis t = 0;
159-
// while (t < ms) {
160-
// digitalWrite(LED_BUILTIN, LOW);
161-
// serial.println("BEFORE UPDATE");
158+
elapsedMillis t = 0;
159+
while (t < ms) {
160+
//digitalWrite(LED_BUILTIN, LOW);
161+
//serial.println("BEFORE UPDATE");
162162
updateIMU();
163-
// serial.println("AFTER UPDATE");
163+
//serial.println("AFTER UPDATE");
164164
delay(1);
165-
// digitalWrite(LED_BUILTIN, HIGH);
166-
// }
165+
//digitalWrite(LED_BUILTIN, HIGH);
166+
}
167167
}
168168

169-
#define LOG_INTERVAL 100 // todo: allow changing this value depending on whether we're actually in a segment or not.
169+
#define LOG_INTERVAL 10 // todo: allow changing this value depending on whether we're actually in a segment or not.
170170

171171
void loop() {
172172
static elapsedMillis tsincelog;

0 commit comments

Comments
 (0)