Skip to content

Commit

Permalink
Update bbn_wave_freq_m5atomS3.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrouch authored Sep 25, 2024
1 parent 2c2d081 commit 5809505
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bbn_wave_freq_m5atomS3/bbn_wave_freq_m5atomS3.ino
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Kalman_QMEKF kalman_mekf;
const char* imu_name;

bool produce_serial_data = true;
bool report_nmea = false;
bool report_nmea = true;

float t = 0.0;
float heave_avg = 0.0;
Expand Down Expand Up @@ -170,7 +170,7 @@ void read_and_processIMU_data() {
}
else {
kalman_mekf.gyr = {gyro.x * DEG_TO_RAD, gyro.y * DEG_TO_RAD, gyro.z * DEG_TO_RAD};
kalman_mekf.acc = {accel.x, accel.y, accel.z}; // {0.0, 0.0, -1.0};
kalman_mekf.acc = {accel.x, accel.y, accel.z};
//kalman_mekf.mag = {magne.x, magne.y, magne.z};

if (first) {
Expand Down Expand Up @@ -215,7 +215,7 @@ void read_and_processIMU_data() {

if (t > 10.0 /* sec */) {
// give some time for other filters to settle first
aranovskiy_update(&arParams, &arState, waveState.heave / 1000.0, delta_t);
aranovskiy_update(&arParams, &arState, waveState.heave, delta_t);
}

if (first) {
Expand Down

0 comments on commit 5809505

Please sign in to comment.