Skip to content

Commit

Permalink
SITL: add a thermal at home
Browse files Browse the repository at this point in the history
  • Loading branch information
magicrub committed Sep 27, 2023
1 parent babdb36 commit ca4287b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libraries/SITL/SIM_Aircraft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,13 @@ float Aircraft::get_local_updraft(const Vector3d &currentPos)
thermals_x[0] = -180.0;
thermals_y[0] = -260.0;
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:
AP_BoardConfig::config_error("Bad thermal scenario");
}
Expand Down

0 comments on commit ca4287b

Please sign in to comment.