SITL: add a thermal at home

This commit is contained in:
Tom Pittenger 2023-06-13 15:37:40 -07:00 committed by Tom Pittenger
parent ad70237013
commit 8c4d00e6f2

View File

@ -1084,6 +1084,13 @@ float Aircraft::get_local_updraft(const Vector3d &currentPos)
thermals_x[0] = -180.0; thermals_x[0] = -180.0;
thermals_y[0] = -260.0; thermals_y[0] = -260.0;
break; break;
case 4:
n_thermals = 1;
thermals_w[0] = 5.0;
thermals_r[0] = 30.0;
thermals_x[0] = 0;
thermals_y[0] = 0;
break;
default: default:
AP_BoardConfig::config_error("Bad thermal scenario"); AP_BoardConfig::config_error("Bad thermal scenario");
} }