SITL: added -heavy option to fixed wing model

This commit is contained in:
Andrew Tridgell 2016-07-06 12:16:11 +10:00
parent d3d2ce3e0d
commit 4e8b4f29d9
1 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,9 @@ Plane::Plane(const char *home_str, const char *frame_str) :
thrust_scale = (mass * GRAVITY_MSS) / hover_throttle;
frame_height = 0.1f;
if (strstr(frame_str, "-heavy")) {
mass = 8;
}
if (strstr(frame_str, "-revthrust")) {
reverse_thrust = true;
}