Project

General

Profile

Task #3354 » RS232_LOG1.txt

Gowri G, 18/03/2026 06:46 AM

 

[RX] Byte received: '1' (49)
[RX] Storing at index 0 : 1
[RX] Byte received: '6' (54)
[RX] Storing at index 1 : 6
[RX] Byte received: ' ' (32)
[RX] Storing at index 2 :
[RX] Byte received: '
' (10)
[RX] End of line detected
[RX] Complete line: 16
[RX] Line length: 3
[RX] line_ready set TRUE
[MAIN] line_ready TRUE
[MAIN] Line buffer content: 16
[MAIN] Converted weight: 16.000000
[MAIN] Stored sample[9] = 16.000000
[MAIN] Current sample count: 10
[MAIN] line_ready reset to FALSE
[MAIN] Sample buffer full. Computing average...
[MAIN] sample[0] = 16.000000
[MAIN] sample[1] = 16.000000
[MAIN] sample[2] = 16.000000
[MAIN] sample[3] = 16.000000
[MAIN] sample[4] = 16.000000
[MAIN] sample[5] = 16.000000
[MAIN] sample[6] = 99.000000
[MAIN] sample[7] = 99.000000
[MAIN] sample[8] = 16.000000
[MAIN] sample[9] = 16.000000
[MAIN] Average computed: 32.599998
[MAIN] average_ready set TRUE
[MAIN] sample_count reset to 0
(5-5/8)