-
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
help wantedExtra attention is neededExtra attention is neededplatform: EV3Issues related to LEGO MINDSTORMS EV3Issues related to LEGO MINDSTORMS EV3topic: sensorsIssues involving sensorsIssues involving sensors
Description
Is your feature request related to a problem? Please describe.
We receive information from the NXT Color Sensor here:
There is a note there saying:
// REVISIT: Test checksum and exit on failure.We have not yet done this, but may want to after all, to catch cases like #2601.
At the top of this file, set #define DEBUG 1 (instead of 0), to get debug prints in the Pybricks Code output pane for easy debugging.
What to do?
- In
pbio_port_dcm_nxt_color_sensor_state_tadd a fieldcrc. - In the loop that says
Receive all calibration info, update this CRC as it comes in. - After the loop, Compare it to the
crcfield inpbio_port_dcm_nxt_color_sensor_data_t. - Return
PBIO_ERROR_IOif they do not match.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is neededplatform: EV3Issues related to LEGO MINDSTORMS EV3Issues related to LEGO MINDSTORMS EV3topic: sensorsIssues involving sensorsIssues involving sensors