Index: firmware/App/Controllers/LoadCell.c =================================================================== diff -u -r484b185f0cf4b2ea0ba9de331573952b1b5124b4 -r0c1f66a170a3a0a4324fa1a3c3bfb4c7f77139b5 --- firmware/App/Controllers/LoadCell.c (.../LoadCell.c) (revision 484b185f0cf4b2ea0ba9de331573952b1b5124b4) +++ firmware/App/Controllers/LoadCell.c (.../LoadCell.c) (revision 0c1f66a170a3a0a4324fa1a3c3bfb4c7f77139b5) @@ -37,7 +37,7 @@ #define SIZE_OF_SMALL_LOAD_CELL_AVG 10 ///< Small load cell moving average has 10 samples. #define SIZE_OF_LARGE_LOAD_CELL_AVG 40 ///< Large load cell moving average has 40 samples. -/// Load cell data structure +/// Load cell data structure. typedef struct { U32 measuredReadingSum; ///< Raw load cell sums for averaging @@ -46,11 +46,11 @@ F32 smallFilterReadings[ SIZE_OF_SMALL_LOAD_CELL_AVG ]; ///< Load cell samples for small load cell moving average F32 smallFilterTotal; ///< Small filter rolling total - used to calc small load cell moving average - F32 smallFilteredWeight; ///< Load cell small filtered (8 sample) weight. + F32 smallFilteredWeight; ///< Load cell small filtered (8 sample) weight F32 largeFilterReadings[ SIZE_OF_LARGE_LOAD_CELL_AVG ]; ///< Load cell samples for large load cell moving average F32 largeFilterTotal; ///< Large filter rolling total - used to calc small load cell moving average - F32 largeFilteredWeight; ///< Load cell large filtered (32 sample) weight. + F32 largeFilteredWeight; ///< Load cell large filtered (32 sample) weight } LOADCELL_T; // ********** private data ********** @@ -61,8 +61,8 @@ static U32 loadCellFilterTimerCount = 0; ///< Load cell filtering timer count. static U32 loadCellDataPublicationTimerCounter = 0; ///< Load cell data publication timer counter to CAN bus. -static U32 smallReadingsIdx; ///< Index for next sample in load cell small rolling average sample array -static U32 largeReadingsIdx; ///< Index for next sample in load cell large rolling average sample array +static U32 smallReadingsIdx; ///< Index for next sample in load cell small rolling average sample array. +static U32 largeReadingsIdx; ///< Index for next sample in load cell large rolling average sample array. // ********** private function prototypes **********