The driver Distance_US3_42.cs need some attention to be able to use the module.
Error appears to be the code:
The null exception was caused by the code:
Using this causes exception:
Echo = new GTI.DigitalInput(socket, Socket.Pin.Three, GTI.GlitchFilterMode.Off, GTI.ResistorMode.PullDown, this);
This Works:
Echo = new GTI.DigitalInput(socket, Socket.Pin.Three, GTI.GlitchFilterMode.Off, GTI.ResistorMode.Disabled, this);
EDIT: I removed the check mark for this is a technical question. The post was meant as a comment. NOT that any official driver should be changed…
@ willgeorge - I do not think they should change the driver, yes this is a quick fix, but I believe there is really an issue in the firmware and that is what should be fixed. Unless there is some reason that the G400 cannot have a pull-down resistor on the pin, but my reading of the data sheet indicates that there should not be a problem.
@ willgeorge - Ah, the fact that you marked this as a question and state the driver requires attention seemed more like you want something than you are sharing something.