I have had good success with the MonoBrick .Net library *except* when trying to use the Ultra Sound (Sonar) sensor. Is there a known bug for this method? I cant seem to get it to work. I get a StackOverFlowException.
Using Visual Studios 2012
Code is basically…
var nxt = new Brick<Sensor, Sensor, Sensor, Sensor>(“usb”);
string ret = “”;
Ok, I got it to work. I switched the connection form USB (“usb”) to Bluetooth (“com6″) <- (my com port, yours may be different depending on your PC connection). I’m not sure what’s going on with the USB connection but this gives me something to focus on.