Skip to content

Commit d17c7b5

Browse files
Merge pull request #186 from ISSUIUC/bugfix/imu-telem-clash-fix
LSM6DSV320X Fixes for MIDAS Mini
2 parents 485d6f5 + f3ec58e commit d17c7b5

32 files changed

+390
-1545
lines changed

MIDAS/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.pio
22
.vscode
33
/src/log_checksum.h
4+
/src/esp_eeprom_checksum.h
45
**/.DS_Store
56
*.launch
67
*.pyc

MIDAS/extra_script.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,27 @@
99

1010
log_format_text = (Path("src") / "log_format.h").read_text()
1111
sensor_data_text = (Path("src") / "sensor_data.h").read_text(errors="replace")
12+
eeprom_format_text = (Path("src") / "esp_eeprom_format.h").read_text()
1213

1314
git_command = ["git", "log", "-n", "1", "--pretty=format:%H"]
1415
git_hash = subprocess.run(git_command, stdout=subprocess.PIPE).stdout.decode('utf-8')
1516
git_hash = git_hash[:-1] # get rid of trailing new line
1617

1718
checksum = zlib.crc32((log_format_text + sensor_data_text).encode("utf-8"))
19+
checksum_eeprom = zlib.crc32(eeprom_format_text.encode("utf-8"))
1820

1921
file = f"""\
2022
// autogenerated on build by applying crc32 on the concatenation of log_format.h and sensor_data.h
2123
#define LOG_CHECKSUM (0x{checksum:08x})
2224
"""
2325

26+
file_eeprom = f"""\
27+
// autogenerated on build by applying crc32 on esp_eeprom_format.h
28+
#define EEPROM_CHECKSUM (0x{checksum:08x})
29+
"""
30+
2431
with Path("src/log_checksum.h").open("w") as checksum_file:
2532
checksum_file.write(file)
33+
34+
with Path("src/esp_eeprom_checksum.h").open("w") as checksum_file_eeprom:
35+
checksum_file_eeprom.write(file_eeprom)
Binary file not shown.
Binary file not shown.

MIDAS/lib/SparkFun_KX13X_Arduino_Library-1.0.7/README.md

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

MIDAS/lib/SparkFun_KX13X_Arduino_Library-1.0.7/examples/Ex1_BasicReadings/Ex1_BasicReadings.ino

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

0 commit comments

Comments
 (0)