Skip to content

Commit

Permalink
SA: WIP basic SITL model
Browse files Browse the repository at this point in the history
  • Loading branch information
magicrub committed Aug 31, 2024
1 parent dbbb366 commit 0c9badf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions Tools/autotest/arduplane.py
Original file line number Diff line number Diff line change
Expand Up @@ -4157,6 +4157,7 @@ def FlyEachFrame(self):
"quadplane-ice" : "needs ICE control channel for ignition",
"quadplane-can" : "needs CAN periph",
"stratoblimp" : "not expected to fly normally",
"sa_gd2000" : "not expected to fly normally",
"glider" : "needs balloon lift",
}
for frame in sorted(vinfo_options["frames"].keys()):
Expand Down
4 changes: 4 additions & 0 deletions Tools/autotest/pysim/vehicleinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,10 @@ def __init__(self):
"extra_mavlink_cmds": "module load sitl_calibration;",
"external": True, # lies! OTOH, hard to take off with this
},
"sa_gd2000": {
"waf_target": "bin/arduplane",
"default_params_filename": "models/sa_gd2000.parm",
},
"stratoblimp": {
"waf_target": "bin/arduplane",
"default_params_filename": "default_params/stratoblimp.parm",
Expand Down
7 changes: 7 additions & 0 deletions libraries/SITL/SIM_Plane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ Plane::Plane(const char *frame_str) :
ice_engine = true;
}

if (strstr(frame_str, "-sa_gd2000")) {
mass = 907.1847; // 2000 lbs == 907.1847 kg
thrust_scale *= 0.0001; // no-ish thrust
launch_accel = 50;
launch_time = 1;
}

if (strstr(frame_str, "-soaring")) {
mass = 2.0;
coefficient.c_drag_p = 0.05;
Expand Down

0 comments on commit 0c9badf

Please sign in to comment.