Hi! I have been playing aroung a bit with the automatice take-off and land code. I want to use the range reading from the front sonar sensor to make my erlecopter land. Below is the code I have modified come up with to read the sensor range values but I get error when I try to catkin_make it. The rest of the code is same. Can someone please help.
#include sensor_msgs/Range.h> //The header file where the sonar readings are
void rangeCallback(float sensor_msgs::Range msg)
////do some thing here
int main(int argc, char **argv)
int rate = 10;
ros::init(argc, argv, "mavros_takeoff");