diff --git a/lib/src/data/science.dart b/lib/src/data/science.dart index 26570d2be..6885e2da0 100644 --- a/lib/src/data/science.dart +++ b/lib/src/data/science.dart @@ -114,11 +114,13 @@ ScienceResult pHTest(SampleData data) => (data.average! > 3 && data.average! < 1 ? ScienceResult.extant : ScienceResult.notPresent; /// The test to determine the presence of life based on CO2 data. -ScienceResult co2Test(SampleData data) => (data.max! > 409.9) +/// The max has to be greater than 10% greater than min for life to exist +ScienceResult co2Test(SampleData data) => (data.max! >= (data.min! * 1.1)) ? ScienceResult.extant : ScienceResult.notPresent; /// The test to determine the presence of life based on methane data. -ScienceResult methaneTest(SampleData data) => (data.max! > 0) +/// The max has to be greater than 1 +ScienceResult methaneTest(SampleData data) => (data.min! > 1) ? ScienceResult.extant : ScienceResult.notPresent; /// The temperature sensor. @@ -143,13 +145,13 @@ const pH = ScienceSensor( const co2 = ScienceSensor( name: "CO2", test: co2Test, - testDescription: "CO2 above 409.8: Extant", + testDescription: "Max CO2 greater than 10% of Min CO2: Extant", ); /// The methane sensor. const methane = ScienceSensor( name: "Methane", test: methaneTest, - testDescription: "Any methane: Extant", + testDescription: "Methane above 1: Extant", ); /// A list of all the sensors on the Science subsystem. const sensors = [temperature, humidity, pH, co2, methane]; diff --git a/pubspec.yaml b/pubspec.yaml index c947eb357..ae551ee5c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: rover_dashboard description: Graphical application for remotely operating the rover. publish_to: 'none' # Remove this line if you wish to publish to pub.dev -version: 2023.5.31+1 +version: 2023.5.31+2 environment: sdk: "^3.0.0" @@ -63,7 +63,7 @@ flutter_launcher_icons: # Builds a Windows .msix App Installer file for the Dashboard. # Run: flutter pub run msix:create msix_config: - msix_version: 2023.5.31.1 + msix_version: 2023.5.31.2 display_name: Dashboard publisher_display_name: Binghamton University Rover Team identity_name: edu.binghamton.rover