Index: firmware/App/Controllers/LoadCell.c =================================================================== diff -u -rdfb6b6f44bbcfd44e7d55914ee82617c2f50d745 -r9c523a8628bb75b601c048f67d3ef7250f45f547 --- firmware/App/Controllers/LoadCell.c (.../LoadCell.c) (revision dfb6b6f44bbcfd44e7d55914ee82617c2f50d745) +++ firmware/App/Controllers/LoadCell.c (.../LoadCell.c) (revision 9c523a8628bb75b601c048f67d3ef7250f45f547) @@ -37,7 +37,6 @@ #define LOAD_CELL_REPORT_PERIOD (100 / TASK_PRIORITY_INTERVAL) ///< Broadcast load cell values message every 100 ms. /// Conversion factor from ADC counts to grams. static const F32 ADC2GRAM = (0.0894 * 1.1338); -#define LOAD_CELL_FILTER_ALPHA 0.05 ///< Alpha factor for the alpha filter used on load cell readings. #define SIZE_OF_SMALL_LOAD_CELL_AVG 100 ///< Small load cell moving average has 100 raw samples @ 10ms intervals (1-second). #define SIZE_OF_LARGE_LOAD_CELL_AVG 40 ///< Large load cell moving average has 40 samples from small filter @ 100ms intervals (4-second). Index: firmware/App/Services/Reservoirs.c =================================================================== diff -u -rdfb6b6f44bbcfd44e7d55914ee82617c2f50d745 -r9c523a8628bb75b601c048f67d3ef7250f45f547 --- firmware/App/Services/Reservoirs.c (.../Reservoirs.c) (revision dfb6b6f44bbcfd44e7d55914ee82617c2f50d745) +++ firmware/App/Services/Reservoirs.c (.../Reservoirs.c) (revision 9c523a8628bb75b601c048f67d3ef7250f45f547) @@ -43,7 +43,7 @@ #define MAX_RESERVOIR_WEIGHT 10000 ///< Maximum reservoir weight in grams. -#define MIN_DRAIN_INLET_PSI_EMPTY 3.0 ///< Minimum drain inlet pressure (in PSI) to indicate reservoir is empty while drain pump on. +#define MIN_DRAIN_INLET_PSI_EMPTY -3.0 ///< Minimum drain inlet pressure (in PSI) to indicate reservoir is empty while drain pump on. #define RESERVOIR_DATA_PUB_INTERVAL ( MS_PER_SECOND / TASK_GENERAL_INTERVAL ) ///< interval (ms/task time) at which the reservoir data is published on the CAN bus.