Skip to content

Commit

Permalink
Update bbn_atomS3R_MotionCal_serial.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrouch authored Feb 11, 2025
1 parent 235f5e9 commit cf77d79
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bbn_atomS3R_MotionCal_serial/bbn_atomS3R_MotionCal_serial.ino
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void read_and_processIMU_data() {
M5.Imu.getMag(&mag.x, &mag.y, &mag.z);

samples++;
if (samples >= 1) {
if (samples >= 4) {
samples = 0;

// Send raw sensor data to the MotionCal GUI
Expand Down Expand Up @@ -61,8 +61,6 @@ void repeatMe() {
void setup() {
auto cfg = M5.config();
AtomS3.begin(cfg);
//USB.begin();
Serial.begin();
Serial.begin(115200);

auto imu_type = M5.Imu.getType();
Expand Down Expand Up @@ -96,6 +94,6 @@ void loop() {
}
else {
repeatMe();
delayMicroseconds(50000);
delayMicroseconds(25000);
}
}

0 comments on commit cf77d79

Please sign in to comment.