mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-25 22:20:35 +08:00
Enable ms5611 driver and fix build errors.
This commit is contained in:
committed by
Lorenz Meier
parent
c3a7ef1d50
commit
4eef65f313
@@ -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")) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user