From 28c723b88b0b814a2fb577970611b8859f2fde0c Mon Sep 17 00:00:00 2001 From: Sarvesh Thiruppathi Date: Fri, 1 Mar 2024 13:57:37 -0800 Subject: [PATCH 1/2] Added getter functions for air quality measurements --- src/Sensors/Serial/Loom_NOVASDS/Loom_NOVASDS.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Sensors/Serial/Loom_NOVASDS/Loom_NOVASDS.h b/src/Sensors/Serial/Loom_NOVASDS/Loom_NOVASDS.h index a35ad24f..366280f2 100644 --- a/src/Sensors/Serial/Loom_NOVASDS/Loom_NOVASDS.h +++ b/src/Sensors/Serial/Loom_NOVASDS/Loom_NOVASDS.h @@ -22,6 +22,17 @@ class Loom_NOVASDS011: public Module{ Loom_NOVASDS011(Manager& man, HardwareSerial* serial = &Serial1); + /** + * Get PM 2.5 value + */ + + float getPM25() {return pm25; }; + + /** + * Get PM 10 value + */ + float getPM() { return pm10; }; + private: Manager* manInst; // Instance of the Manager SDS011 nova; // Instance of the library From 332e30159408dc9a3eb2cc94810a12b6f41313dc Mon Sep 17 00:00:00 2001 From: Sarvesh Thiruppathi Date: Fri, 1 Mar 2024 15:11:31 -0800 Subject: [PATCH 2/2] Minor spelling correction for improved clarity --- src/Sensors/Serial/Loom_NOVASDS/Loom_NOVASDS.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sensors/Serial/Loom_NOVASDS/Loom_NOVASDS.h b/src/Sensors/Serial/Loom_NOVASDS/Loom_NOVASDS.h index 366280f2..719d52a6 100644 --- a/src/Sensors/Serial/Loom_NOVASDS/Loom_NOVASDS.h +++ b/src/Sensors/Serial/Loom_NOVASDS/Loom_NOVASDS.h @@ -31,7 +31,7 @@ class Loom_NOVASDS011: public Module{ /** * Get PM 10 value */ - float getPM() { return pm10; }; + float getPM10() { return pm10; }; private: Manager* manInst; // Instance of the Manager