|
|
|
@ -8,10 +8,12 @@
@@ -8,10 +8,12 @@
|
|
|
|
|
// althold_init - initialise althold controller
|
|
|
|
|
bool Sub::althold_init(bool ignore_checks) |
|
|
|
|
{ |
|
|
|
|
#if CONFIG_HAL_BOARD != HAL_BOARD_SITL |
|
|
|
|
if (!ap.depth_sensor_present) { // can't hold depth without a depth sensor, exit immediately.
|
|
|
|
|
gcs_send_text(MAV_SEVERITY_WARNING, "Depth hold requires external pressure sensor."); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
// initialize vertical speeds and leash lengths
|
|
|
|
|
// sets the maximum speed up and down returned by position controller
|
|
|
|
|