Ticket #65 (assigned development)
Add ID check for digital sensors in Open-functions
| Reported by: | atorf | Owned by: | staas |
|---|---|---|---|
| Priority: | low | Milestone: | vNext |
| Component: | Toolbox Function | Keywords: | |
| Cc: |
Description
Inside the Open-functions for digital sensors, we could use COM_ReadI2C to retrieve the vendor and sensor name strings. We could then check whether this matches, (i.e. "LEGO" and "Sonar" for the NXT Ultrasonic, or "Hitechnc" and "ColorPD" for the Color V2 sensor), and if not we could issue a warning / error.
This detect and prevent sensor / port mismatches easily…
A simple example of checking sensor-identity is currently implemented inside CalibrateColor.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
