Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C++] use logger instead of printf #90

Open
virtuald opened this issue Feb 1, 2020 · 0 comments
Open

[C++] use logger instead of printf #90

virtuald opened this issue Feb 1, 2020 · 0 comments

Comments

@virtuald
Copy link
Contributor

virtuald commented Feb 1, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant