Skip to content

Commit ec34753

Browse files
committed
Merge branch 'MIDAS-MK2.1-Legacy-GNC-EKF' of https://github.com/ISSUIUC/MIDAS-Software into MIDAS-MK2.1-Legacy-GNC-EKF
2 parents ee287a4 + 7332a9f commit ec34753

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
.vscode/
33
outputs/*
44
ground/outputs/*
5+
MIDAS/src/esp_eeprom_checksum.h

MIDAS/platformio.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[env:mcu_main_sustainer]
2-
platform = espressif32
2+
platform = espressif32@6.7.0
33
board = esp32-s3-devkitc-1
44
; board = adafruit_feather_esp32s3
55
framework = arduino
@@ -19,7 +19,7 @@ lib_deps =
1919
build_src_filter = +<*> -<silsim/> +<hardware/> -<hilsim>
2020

2121
[env:mcu_main_booster]
22-
platform = espressif32
22+
platform = espressif32@6.7.0
2323
board = esp32-s3-devkitc-1
2424
; board = adafruit_feather_esp32s3
2525
framework = arduino

MIDAS/src/esp_eeprom_checksum.h

Lines changed: 0 additions & 2 deletions
This file was deleted.

MIDAS/src/gnc/ekf.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ void EKF::initialize(RocketSystems *args)
3030
for (int i = 0; i < 30; i++)
3131
{
3232
Barometer barometer = args->rocket_data.barometer.getRecent();
33+
HighGData initial_accelerometer = args->rocket_data.high_g.getRecent();
34+
Acceleration accelerations = {
35+
.ax = initial_accelerometer.ax,
36+
.ay = initial_accelerometer.ay,
37+
.az = initial_accelerometer.az};
3338
sum += barometer.altitude;
3439
}
3540

MIDAS/src/systems.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ DECLARE_THREAD(barometer, RocketSystems* arg) {
6464

6565
DECLARE_THREAD(accelerometers, RocketSystems* arg) {
6666
while (true) {
67-
LowGData lowg = arg->sensors.low_g.read();
68-
arg->rocket_data.low_g.update(lowg);
69-
LowGLSM lowglsm = arg->sensors.low_g_lsm.read();
70-
arg->rocket_data.low_g_lsm.update(lowglsm);
67+
// LowGData lowg = arg->sensors.low_g.read();
68+
// arg->rocket_data.low_g.update(lowg);
69+
// LowGLSM lowglsm = arg->sensors.low_g_lsm.read();
70+
// arg->rocket_data.low_g_lsm.update(lowglsm);
7171
HighGData highg = arg->sensors.high_g.read();
7272
arg->rocket_data.high_g.update(highg);
7373

@@ -373,13 +373,13 @@ DECLARE_THREAD(telemetry, RocketSystems* arg) {
373373
*/
374374
ErrorCode init_systems(RocketSystems& systems) {
375375
gpioDigitalWrite(LED_ORANGE, HIGH);
376-
INIT_SYSTEM(systems.sensors.low_g);
376+
// INIT_SYSTEM(systems.sensors.low_g);
377377
INIT_SYSTEM(systems.sensors.orientation);
378378
INIT_SYSTEM(systems.log_sink);
379379
INIT_SYSTEM(systems.sensors.high_g);
380-
INIT_SYSTEM(systems.sensors.low_g_lsm);
380+
// INIT_SYSTEM(systems.sensors.low_g_lsm);
381381
INIT_SYSTEM(systems.sensors.barometer);
382-
INIT_SYSTEM(systems.sensors.magnetometer);
382+
// INIT_SYSTEM(systems.sensors.magnetometer);
383383
INIT_SYSTEM(systems.sensors.continuity);
384384
INIT_SYSTEM(systems.sensors.voltage);
385385
INIT_SYSTEM(systems.sensors.pyro);
@@ -422,7 +422,7 @@ ErrorCode init_systems(RocketSystems& systems) {
422422
START_THREAD(gps, SENSOR_CORE, config, 8);
423423
START_THREAD(voltage, SENSOR_CORE, config, 9);
424424
START_THREAD(pyro, SENSOR_CORE, config, 14);
425-
START_THREAD(magnetometer, SENSOR_CORE, config, 11);
425+
// START_THREAD(magnetometer, SENSOR_CORE, config, 11);
426426
START_THREAD(cam, SENSOR_CORE, config, 16);
427427
START_THREAD(kalman, SENSOR_CORE, config, 7);
428428
START_THREAD(fsm, SENSOR_CORE, config, 8);

0 commit comments

Comments
 (0)