Skip to content
Snippets Groups Projects
Commit 85aa7104 authored by Michael Schaeuble's avatar Michael Schaeuble Committed by Lorenz Meier
Browse files

BebopRangeFinder: Integration into build and starup

parent 6cb659c8
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,7 @@ set(config_module_list
platforms/posix/drivers/df_mpu6050_wrapper
platforms/posix/drivers/df_ak8963_wrapper
platforms/posix/drivers/df_bebop_bus_wrapper
platforms/posix/drivers/df_bebop_rangefinder_wrapper
#
# System commands
......@@ -105,4 +106,5 @@ set(config_df_driver_list
mpu6050
ak8963
bebop_bus
bebop_rangefinder
)
......@@ -30,6 +30,7 @@ param set SYS_MC_EST_GROUP 2
df_ms5607_wrapper start
df_mpu6050_wrapper start -R 8
df_ak8963_wrapper start -R 32
df_bebop_rangefinder_wrapper start
gps start -d /dev/ttyPA1
sensors start
commander start
......
......@@ -159,9 +159,9 @@ int DfBebopRangeFinderWrapper::_publish(struct bebop_range &data)
distance_data.id = 0; // TODO set proper ID
distance_data.orientation = 25; // MAV_SENSOR_ROTATION_PITCH_270 TODO check if this is correct
distance_data.orientation = 25; // MAV_SENSOR_ROTATION_PITCH_270
distance_data.covariance = 0.0f;
distance_data.covariance = 1.0f; // TODO set correct value
if (_range_topic == nullptr) {
_range_topic = orb_advertise_multi(ORB_ID(distance_sensor), &distance_data,
......@@ -274,7 +274,7 @@ df_bebop_rangefinder_wrapper_main(int argc, char *argv[])
/* jump over start/off/etc and look at options first */
while ((ch = px4_getopt(argc, argv, "R:", &myoptind, &myoptarg)) != EOF) {
switch (ch) {
// Add rotation if necessary
// Add rotation if necessary
default:
df_bebop_rangefinder_wrapper::usage();
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment