Index: firmware/App/Controllers/Pressures.c =================================================================== diff -u -r65cca9d3650f1da299e0c0c682bc557439a407f2 -r216bd924f989182e648ee5f33f4c91c43ac438ac --- firmware/App/Controllers/Pressures.c (.../Pressures.c) (revision 65cca9d3650f1da299e0c0c682bc557439a407f2) +++ firmware/App/Controllers/Pressures.c (.../Pressures.c) (revision 216bd924f989182e648ee5f33f4c91c43ac438ac) @@ -18,6 +18,7 @@ #include "AlarmMgmt.h" #include "FPGA.h" #include "InternalADC.h" +#include "LoadCell.h" // TODO - test - remove later #include "OperationModes.h" #include "SystemCommMessages.h" #include "TaskPriority.h" @@ -253,6 +254,17 @@ broadcastPressureSensorsData( roIn, roOut, drainIn, drainOut ); pressuresDataPublicationTimerCounter = 0; + #ifdef DEBUG_ENABLED + { + // TODO - temporary debug code - remove later + F32 lc1 = getLoadCellFilteredWeight(LOAD_CELL_A1); + F32 lc2 = getLoadCellFilteredWeight(LOAD_CELL_B1); + char debugPresStr[ 256 ]; + + sprintf( debugPresStr, "RO: %5d, %5d, Drain: %5d, %5d, Loads: %6d, %6d\n", (S32)roIn, (S32)roOut, (S32)drainIn, (S32)drainOut, (S32)lc1, (S32)lc2 ); + sendDebugData( (U08*)debugPresStr, strlen(debugPresStr) ); + } + #endif } }