Hi All,
Wondering if I could get a hand with why my bubble sort isn't working.
I need to take 3 REAL inputs, and 3 BOOL enable inputs.
Then return the index of the largest enabled real:
ENA, INPUT
TRUE, 33.5
FALSE, 80.0
TRUE, 26.8
Return: 0 (zero based index of largest true value)
ENA, INPUT
FALSE, 33.5
FALSE, 80.0
TRUE, 26.8
Return: 2 (zero based index of largest true value)
Any help would be greatly appreciated, Im also happy to take a different approach as I feel like i'm massively overthinking this...
Attached screenshots should be returning LargestIs1 = TRUE
Wondering if I could get a hand with why my bubble sort isn't working.
I need to take 3 REAL inputs, and 3 BOOL enable inputs.
Then return the index of the largest enabled real:
ENA, INPUT
TRUE, 33.5
FALSE, 80.0
TRUE, 26.8
Return: 0 (zero based index of largest true value)
ENA, INPUT
FALSE, 33.5
FALSE, 80.0
TRUE, 26.8
Return: 2 (zero based index of largest true value)
Any help would be greatly appreciated, Im also happy to take a different approach as I feel like i'm massively overthinking this...
Attached screenshots should be returning LargestIs1 = TRUE