FRC1076 / FRC1076/Simulation

Add code to robot script that uses json library to parse position/orientation message.

Open
#2 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Also add a simple self-test function that will run at startup and can be use for debugging, etc...

1. Create a string containing valid message.
2. Parse it using the library function. (deserialize?)
3. Verify that the values in the deserialization are correct.
4. Maybe try a malformed json string and see if you can figure
out how to recover from that. (discarding message if malformed, maybe log a message?)

I believe the outline of what needs to be done is in the code comments already. Direct questions to mcolinj if you need clarification.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.