From 33fde2d4bcf077380c5c61c5e8e8598dd418feaa Mon Sep 17 00:00:00 2001 From: ISSUIUC Date: Fri, 28 Feb 2025 01:38:24 +0000 Subject: [PATCH] Update from https://github.com/ISSUIUC/MIDAS-Software/commit/1a3e7af05edb4e9741effa12b57ce1091c5d3098 --- docs/emulated__sensors_8cpp_source.html | 2 +- docs/hardware_2GPSSensor_8cpp_source.html | 40 ++++++++++--------- docs/hardware_2sensors_8h_source.html | 4 +- ...ilsim_2sensors_2GPSSensor_8cpp_source.html | 2 +- docs/structGPSSensor.html | 4 +- docs/systems_8cpp_source.html | 4 +- 6 files changed, 29 insertions(+), 27 deletions(-) diff --git a/docs/emulated__sensors_8cpp_source.html b/docs/emulated__sensors_8cpp_source.html index c5a0154..6fe51bd 100644 --- a/docs/emulated__sensors_8cpp_source.html +++ b/docs/emulated__sensors_8cpp_source.html @@ -184,7 +184,7 @@
Continuity read()
Reads the value of the ADC.
Definition: Continuity.cpp:60
data about pyro continuity
Definition: sensor_data.h:130
ErrorCode init()
Initializes GPS, returns NoError.
Definition: GPSSensor.cpp:16
-
GPS read()
Reads the GPS data from the sensor (lat, long, altitude, sat count, etc)
Definition: GPSSensor.cpp:36
+
GPS read()
Reads the GPS data from the sensor (lat, long, altitude, sat count, etc)
Definition: GPSSensor.cpp:38
data from the GPS
Definition: sensor_data.h:149
data from the HighG sensor
Definition: sensor_data.h:88
ErrorCode init()
Initializes the high G sensor.
Definition: HighG.cpp:11
diff --git a/docs/hardware_2GPSSensor_8cpp_source.html b/docs/hardware_2GPSSensor_8cpp_source.html index 31953d5..c7cfd94 100644 --- a/docs/hardware_2GPSSensor_8cpp_source.html +++ b/docs/hardware_2GPSSensor_8cpp_source.html @@ -99,24 +99,26 @@
17 if (!ublox.begin()) {
18 return ErrorCode::GPSCouldNotBeInitialized;
19 }
-
20 ublox.setI2COutput(COM_TYPE_UBX | COM_TYPE_NMEA); //Set the I2C port to output both NMEA and UBX messages
-
21 // Set the measurment rate faster than one HZ if necessary
-
22 // ublox.setMeasurementRate(100);
-
23 ublox.saveConfigSelective(VAL_CFG_SUBSEC_IOPORT); //Save (only) the communications port settings to flash and BBR
-
24
-
25 //This will pipe all NMEA sentences to the serial port so we can see them
+
20
+
21 ublox.setDynamicModel(DYN_MODEL_AIRBORNE4g);
+
22 ublox.setI2COutput(COM_TYPE_UBX | COM_TYPE_NMEA); //Set the I2C port to output both NMEA and UBX messages
+
23 // Set the measurment rate faster than one HZ if necessary
+
24 // ublox.setMeasurementRate(100);
+
25 ublox.saveConfigSelective(VAL_CFG_SUBSEC_IOPORT); //Save (only) the communications port settings to flash and BBR
26
-
27 return ErrorCode::NoError;
-
28}
-
29
-
30
-
36GPS GPSSensor::read() {
-
37 return GPS{ublox.getLatitude(), ublox.getLongitude(), (float) ublox.getAltitude() / 1000.f, (float) ublox.getGroundSpeed() / 1000.f, ublox.getFixType(), ublox.getUnixEpoch()};
-
38}
-
39
-
40bool GPSSensor::valid() {
-
41 return ublox.getPVT();
-
42}
+
27 //This will pipe all NMEA sentences to the serial port so we can see them
+
28
+
29 return ErrorCode::NoError;
+
30}
+
31
+
32
+
38GPS GPSSensor::read() {
+
39 return GPS{ublox.getLatitude(), ublox.getLongitude(), (float) ublox.getAltitude() / 1000.f, (float) ublox.getGroundSpeed() / 1000.f, ublox.getFixType(), ublox.getUnixEpoch()};
+
40}
+
41
+
42bool GPSSensor::valid() {
+
43 return ublox.getPVT();
+
44}
ErrorCode
list of all error codes that can arise
Definition: errors.h:8
@ GPSCouldNotBeInitialized
Definition: errors.h:19
@ NoError
Definition: errors.h:9
@@ -125,8 +127,8 @@
ErrorCode init()
Initializes GPS, returns NoError.
Definition: GPSSensor.cpp:16
-
GPS read()
Reads the GPS data from the sensor (lat, long, altitude, sat count, etc)
Definition: GPSSensor.cpp:36
-
bool valid()
Definition: GPSSensor.cpp:40
+
GPS read()
Reads the GPS data from the sensor (lat, long, altitude, sat count, etc)
Definition: GPSSensor.cpp:38
+
bool valid()
Definition: GPSSensor.cpp:42
data from the GPS
Definition: sensor_data.h:149
diff --git a/docs/hardware_2sensors_8h_source.html b/docs/hardware_2sensors_8h_source.html index 23e0700..45ad2d6 100644 --- a/docs/hardware_2sensors_8h_source.html +++ b/docs/hardware_2sensors_8h_source.html @@ -180,8 +180,8 @@
data about pyro continuity
Definition: sensor_data.h:130
Definition: sensors.h:85
ErrorCode init()
Initializes GPS, returns NoError.
Definition: GPSSensor.cpp:16
-
GPS read()
Reads the GPS data from the sensor (lat, long, altitude, sat count, etc)
Definition: GPSSensor.cpp:36
-
bool valid()
Definition: GPSSensor.cpp:40
+
GPS read()
Reads the GPS data from the sensor (lat, long, altitude, sat count, etc)
Definition: GPSSensor.cpp:38
+
bool valid()
Definition: GPSSensor.cpp:42
bool is_leap
Definition: sensors.h:89
data from the GPS
Definition: sensor_data.h:149
struct representing the LED pins
diff --git a/docs/hilsim_2sensors_2GPSSensor_8cpp_source.html b/docs/hilsim_2sensors_2GPSSensor_8cpp_source.html index 2ca57b9..1803b42 100644 --- a/docs/hilsim_2sensors_2GPSSensor_8cpp_source.html +++ b/docs/hilsim_2sensors_2GPSSensor_8cpp_source.html @@ -99,7 +99,7 @@
@ NoError
Definition: errors.h:9
ErrorCode init()
Initializes GPS, returns NoError.
Definition: GPSSensor.cpp:16
-
GPS read()
Reads the GPS data from the sensor (lat, long, altitude, sat count, etc)
Definition: GPSSensor.cpp:36
+
GPS read()
Reads the GPS data from the sensor (lat, long, altitude, sat count, etc)
Definition: GPSSensor.cpp:38
data from the GPS
Definition: sensor_data.h:149
diff --git a/docs/structGPSSensor.html b/docs/structGPSSensor.html index bb2b8fa..44dab99 100644 --- a/docs/structGPSSensor.html +++ b/docs/structGPSSensor.html @@ -219,7 +219,7 @@

GPS data from the sensor (lat, long, altitude, sat count, etc)

Returns
GPS data packet
-

Definition at line 36 of file GPSSensor.cpp.

+

Definition at line 38 of file GPSSensor.cpp.

@@ -289,7 +289,7 @@

-

Definition at line 40 of file GPSSensor.cpp.

+

Definition at line 42 of file GPSSensor.cpp.

diff --git a/docs/systems_8cpp_source.html b/docs/systems_8cpp_source.html index d3fb209..5067115 100644 --- a/docs/systems_8cpp_source.html +++ b/docs/systems_8cpp_source.html @@ -552,8 +552,8 @@
bool should_transition_pyro_test
Definition: rocket_state.h:165
Continuity read()
Reads the value of the ADC.
Definition: Continuity.cpp:60
data about pyro continuity
Definition: sensor_data.h:130
-
GPS read()
Reads the GPS data from the sensor (lat, long, altitude, sat count, etc)
Definition: GPSSensor.cpp:36
-
bool valid()
Definition: GPSSensor.cpp:40
+
GPS read()
Reads the GPS data from the sensor (lat, long, altitude, sat count, etc)
Definition: GPSSensor.cpp:38
+
bool valid()
Definition: GPSSensor.cpp:42
data from the GPS
Definition: sensor_data.h:149
data from the HighG sensor
Definition: sensor_data.h:88
float ax
Definition: sensor_data.h:89