Enable ms5611 driver and fix build errors.

This commit is contained in:
Simon Wilks
2015-08-16 15:33:03 +00:00
committed by Lorenz Meier
parent c3a7ef1d50
commit 4eef65f313
6 changed files with 40 additions and 26 deletions
@@ -55,7 +55,7 @@ extern "C" __EXPORT int mc_pos_control_m_main(int argc, char *argv[]);
int mc_pos_control_m_main(int argc, char *argv[])
{
if (argc < 2) {
errx(1, "usage: mc_pos_control_m {start|stop|status}");
PX4_WARN("usage: mc_pos_control_m {start|stop|status}");
}
if (!strcmp(argv[1], "start")) {
+3 -3
View File
@@ -282,13 +282,13 @@ Geofence::addPoint(int argc, char *argv[])
}
if (argc < 3) {
errx(1, "Specify: -clear | sequence latitude longitude [-publish]");
PX4_WARN("Specify: -clear | sequence latitude longitude [-publish]");
}
ix = atoi(argv[0]);
if (ix >= DM_KEY_FENCE_POINTS_MAX) {
errx(1, "Sequence must be less than %d", DM_KEY_FENCE_POINTS_MAX);
PX4_WARN("Sequence must be less than %d", DM_KEY_FENCE_POINTS_MAX);
}
lat = strtod(argv[1], &end);
@@ -311,7 +311,7 @@ Geofence::addPoint(int argc, char *argv[])
return;
}
errx(1, "can't store fence point");
PX4_WARN("can't store fence point");
}
void