mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
SITL: simple implementation of a fast jet
just increase the weight and the rest can be done with params
This commit is contained in:
parent
a79afefa39
commit
2eb09b2910
@ -40,6 +40,11 @@ Plane::Plane(const char *home_str, const char *frame_str) :
|
|||||||
if (strstr(frame_str, "-heavy")) {
|
if (strstr(frame_str, "-heavy")) {
|
||||||
mass = 8;
|
mass = 8;
|
||||||
}
|
}
|
||||||
|
if (strstr(frame_str, "-jet")) {
|
||||||
|
// a 22kg "jet", level top speed is 102m/s
|
||||||
|
mass = 22;
|
||||||
|
thrust_scale = (mass * GRAVITY_MSS) / hover_throttle;
|
||||||
|
}
|
||||||
if (strstr(frame_str, "-revthrust")) {
|
if (strstr(frame_str, "-revthrust")) {
|
||||||
reverse_thrust = true;
|
reverse_thrust = true;
|
||||||
}
|
}
|
||||||
@ -68,11 +73,11 @@ Plane::Plane(const char *home_str, const char *frame_str) :
|
|||||||
launch_accel = 10;
|
launch_accel = 10;
|
||||||
launch_time = 1;
|
launch_time = 1;
|
||||||
}
|
}
|
||||||
if (strstr(frame_str, "-tailsitter")) {
|
if (strstr(frame_str, "-tailsitter")) {
|
||||||
tailsitter = true;
|
tailsitter = true;
|
||||||
ground_behavior = GROUND_BEHAVIOR_TAILSITTER;
|
ground_behavior = GROUND_BEHAVIOR_TAILSITTER;
|
||||||
thrust_scale *= 1.5;
|
thrust_scale *= 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strstr(frame_str, "-ice")) {
|
if (strstr(frame_str, "-ice")) {
|
||||||
ice_engine = true;
|
ice_engine = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user