navxmxp icon indicating copy to clipboard operation
navxmxp copied to clipboard

[C++] use logger instead of printf

Open virtuald opened this issue 5 years ago • 0 comments

Sample output reported by a user when NavX and REV were running in simulation together:

I just found an issue with the print statements before the simulator runs. A navx print got mixed up with one for the spark max and this happened:

na[vCX-ASenN SPARsK MAoXr] Connected. nUanvaX-blSee ntso roetrri esvtaer tSupP AiRKni MtAiXa lfiziatrimware version for CAN ID: 1. Pleasoen veanrdify the dev iscetIDa frtiueld matcp chaleisb rattihoen ccoonfmigpulrede CAtNe. InD ofav Xt-hSeen scoontrr oollnboerard ,st aand rtup tchat althe coinbtrroller is connectedation comp to the CAN Bus. l[eCtANe .S navX-Sensor Yaw angle aPutAoR-resetK tMoA X0]. 0W due to sPItarLtiubp coalri bEration. xternal

It would be useful if NavX used a logger that could be hooked instead of printf(). There's one in wpiutil and/or ntcore that would fit the bill.

virtuald avatar Feb 01 '20 01:02 virtuald