-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from TeamSunride/karman-mini
Karman mini
- Loading branch information
Showing
27 changed files
with
50,395 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import pandas | ||
import matplotlib | ||
import matplotlib.pyplot as plt | ||
matplotlib.use('TkAgg') | ||
plt.style.use("ggplot") | ||
|
||
df = pandas.read_csv("launch_1.csv", usecols=range(1, 20)) | ||
df["time_seconds"] = df["timestamp"].subtract(df["timestamp"][0]).div(1000) | ||
print(df) | ||
|
||
|
||
df.plot("time_seconds", y=["imuAX", "imuAY", "imuAZ"], xlabel="Time (s)", ylabel="Acceleration (m/s)", | ||
title="Acceleration") | ||
plt.show() | ||
|
||
df.plot("time_seconds", y=["imuGX", "imuGY", "imuGZ"], xlabel="Time (s)", ylabel="Gyroscope (unit?)", | ||
title="Gyroscope Data") | ||
plt.show() | ||
|
||
df.plot("time_seconds", y=["imuMX", "imuMY", "imuMZ"], xlabel="Time (s)", ylabel="Magnetometer value", | ||
title="Magnetometer Data") | ||
plt.show() | ||
|
||
df.plot("time_seconds", y=["pressure"], xlabel="Time (s)", ylabel="Pressure (Pa)", | ||
title="Barometer data") | ||
plt.show() | ||
|
||
df.plot("time_seconds", y=["h"], xlabel="Time (s)", ylabel="Altitude (m)", | ||
title="Barometric altitude") | ||
plt.show() | ||
|
||
df["h_adjusted"] = df["h"] - df["h"][0] | ||
df.plot("time_seconds", y=["h_adjusted"], xlabel="Time (s)", ylabel="Altitude (m)", | ||
title="Barometric altitude (adjusted)") | ||
plt.show() |
Submodule Arduino-LIS3MDL
added at
bad1f2
Submodule Arduino-LSM6DSO32
added at
27012d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// Created by Tom Danvers on 16/11/2022. | ||
// | ||
|
||
#ifndef MRAS_PAYLOAD_H | ||
#define MRAS_PAYLOAD_H | ||
|
||
#include <cstdint> | ||
|
||
enum PayloadType : uint8_t { | ||
UNDEFINED, | ||
Test_Payload_t, | ||
DARTDebugPayload_t, | ||
}; | ||
|
||
class Payload { | ||
protected: | ||
PayloadType type = PayloadType::UNDEFINED; | ||
public: | ||
PayloadType get_type() { | ||
return type; | ||
} | ||
}; | ||
|
||
#endif //MRAS_PAYLOAD_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.