C++ Sonar Sensor Examples?

C, C++, and Visual C++

C++ Sonar Sensor Examples?

Postby dalrympk » Mon Nov 16, 2009 11:58 pm

Hello all,

I just received my order of sonar sensors (1128) along with the InterfaceKit 8/8/8 w/6 Port Hub. I don't really have any experience with C# (which is the only language examples for the sonar sensors are in) and I was wondering if anybody knows of some example code for the sonar sensors written in C++. Any help anybody can provide would be greatly appreciated.

Thanks in advance to anybody who replies.


Re: C++ Sonar Sensor Examples?

Postby AdamS » Tue Nov 17, 2009 10:57 am

The C++ interfacekit example should be what you are looking for.

The only thing extra that the C# example has is that it is taking the sensor value and applying the appropriate formula to provide a readable value based on the sensor type selected.

You can achieve the same thing by applying the formula for the sonar sensor to the sensor value returned in the sensor changed event handler or when manually checking a sensor value.

The formula should be in the product manual.


Re: C++ Sonar Sensor Examples?

Postby dalrympk » Tue Nov 17, 2009 4:30 pm

Do you have a link to the download by chance? I can get the standard C examples for the interface kit but not any C++ examples.


User avatar
Lead Developer
Posts: 3175
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada

Re: C++ Sonar Sensor Examples?

Postby Patrick » Tue Nov 17, 2009 5:37 pm

C++ is just a superset of C. We don't have any examples that are specifically C++ (with objects, etc.) if that's what you're looking for.


Return to “C/C++”

Who is online

Users browsing this forum: No registered users and 1 guest