I found on MPNG Code at Rangefinder.h the following lines in comments.
/*
* #define AP_RANGEFINDER_ORIENTATION_FRONT 0, 10, 0
* #define AP_RANGEFINDER_ORIENTATION_RIGHT -10, 0, 0
* #define AP_RANGEFINDER_ORIENTATION_BACK 0,-10, 0
* #define AP_RANGEFINDER_ORIENTATION_LEFT 10, 0, 0
* #define AP_RANGEFINDER_ORIENTATION_UP 0, 0,-10
* #define AP_RANGEFINDER_ORIENTATION_DOWN 0, 0, 10
* #define AP_RANGEFINDER_ORIENTATION_FRONT_RIGHT -5, -5, 0
* #define AP_RANGEFINDER_ORIENTATION_BACK_RIGHT -5, -5, 0
* #define AP_RANGEFINDER_ORIENTATION_BACK_LEFT 5, -5, 0
* #define AP_RANGEFINDER_ORIENTATION_FRONT_LEFT 5, 5, 0
*/
I get that in the current version(3.0.1-r4) I have to add some extra code for the sonar at the bottom to work(that's what I did and it worked). So my question is : Are these orientations implemented or just defined there and aren't supported?
Replies