Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gazebo: Add Pik-20B sailplane #97

Draft
wants to merge 30 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
404756f
Sailplane: initial draft of Pik-20B sailplane
srmainwaring Jun 10, 2023
a326497
Sailplane: configure wheel joints
srmainwaring Jun 10, 2023
34b3c0d
Sailplane: configure elevator and rudder joints
srmainwaring Jun 10, 2023
b2ca982
Sailplane: add engine, prop and thruster plugin
srmainwaring Jun 10, 2023
839c336
Sailplane: update CoM pose for wheels, elevator and rudder
srmainwaring Jun 10, 2023
b6de8ba
Sailplane: correct typo in left aileron mesh name
srmainwaring Jun 10, 2023
2e75330
Sailplane: correct joint lower limit for elevator and rudder
srmainwaring Jun 10, 2023
22d1c95
Sailplane: configure aileron joints
srmainwaring Jun 10, 2023
ab57bcc
Sailplane: add joint controller plugins for ailerons, elevator and ru…
srmainwaring Jun 10, 2023
8be08f4
Sailplane: reoreder joint controller plugins
srmainwaring Jun 10, 2023
401e92c
Sailplane: configure flap joints and controllers
srmainwaring Jun 10, 2023
f4599bf
Sailplane: add CP visuals and lift-drag plugins
srmainwaring Jun 11, 2023
dd33e69
Sailplane: update CoM positions and inertia estimates
srmainwaring Jun 11, 2023
091265e
Sailplane: add imu and navsat sensors
srmainwaring Jun 11, 2023
6ed4861
Sailplane: add joint state publisher
srmainwaring Jun 11, 2023
54517af
Sailplane: tune position controller pids
srmainwaring Jun 11, 2023
8b9e010
Sailplane: configure thruster plugin to use cmd_vel
srmainwaring Jun 11, 2023
8615d11
Sailplane: add ardupilot_gazebo plugin and configure controllers
srmainwaring Jun 11, 2023
acce950
Sailplane: align links and CoM part 1 - fuselage
srmainwaring Jun 12, 2023
0d0b5b2
Sailplane: align links and CoM part 2 - wheels
srmainwaring Jun 12, 2023
513f63a
Sailplane: align links and CoM part 3 - flaps
srmainwaring Jun 12, 2023
82704a5
Sailplane: align links and CoM part 4 - ailerons, elevator and rudder
srmainwaring Jun 12, 2023
594c29e
Sailplane: align links and CoM part 5 - remove commented poses
srmainwaring Jun 12, 2023
e92d9d3
Sailplane: configure for flight
srmainwaring Jun 14, 2023
51f3e11
Sailplane: hide debug visuals
srmainwaring Jun 14, 2023
a178e36
Sailplane: update thrust system coefficients
srmainwaring Jun 15, 2023
eb97fa0
Sailplane: update aerodynamics coefficients
srmainwaring Jun 16, 2023
3d04bc5
Sailplane: update CoM position, engine pitch and elevator control.
srmainwaring Jun 19, 2023
7b839a2
Sailplane: add doc and params.
srmainwaring Jun 19, 2023
d77b4b2
Sailplane: add images for lift-drag coefficient approx
srmainwaring Jul 3, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions Gazebo/config/pik_20b_sailplane.param
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
TKOFF_TDRAG_ELEV 100.000000
TKOFF_TDRAG_SPD1 10.000000
TKOFF_ROTATE_SPD 25.000000
TKOFF_THR_SLEW 10.000000
ARSPD_FBW_MIN 28.000000
ARSPD_FBW_MAX 60.000000
TRIM_THROTTLE 40.000000
LIM_ROLL_CD 6000.000000
LIM_PITCH_MAX 1600.000000
LIM_PITCH_MIN -3000.000000
ACRO_ROLL_RATE 90.000000
ACRO_PITCH_RATE 90.000000
ACRO_YAW_RATE 90.000000
TRIM_ARSPD_CM 4400.000000
SCALING_SPEED 44.000000
TRIM_PITCH_CD 100.000000
ARMING_RUDDER 0.000000
RLL_RATE_P 0.406230
RLL_RATE_I 0.406230
RLL_RATE_D 0.014926
RLL_RATE_FF 1.097314
RLL_RATE_FLTT 3.183099
RLL_RATE_FLTD 10.000000
PTCH2SRV_TCONST 0.750000
PTCH2SRV_RMAX_UP 75.000000
PTCH2SRV_RMAX_DN 75.000000
PTCH2SRV_RLL 0.350000
PTCH_RATE_P 0.649316
PTCH_RATE_I 2.388867
PTCH_RATE_D 0.018863
PTCH_RATE_FF 2.388867
PTCH_RATE_FLTT 2.122066
PTCH_RATE_FLTD 10.000000
YAW_RATE_ENABLE 1.000000
NAVL1_PERIOD 10.000000
TECS_LAND_ARSPD 30.000000
TECS_LAND_THR 0.000000
TECS_LAND_SINK 1.000000
SERVO1_MIN 1000.000000
SERVO1_MAX 2000.000000
SERVO2_MIN 1000.000000
SERVO2_MAX 2000.000000
SERVO3_MIN 1000.000000
SERVO3_MAX 2000.000000
SERVO4_MIN 1000.000000
SERVO4_MAX 2000.000000
ARSPD_TYPE 0.000000
31 changes: 31 additions & 0 deletions Gazebo/docs/Pik-20B_Sailplane.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Pik-20B sailplane

Model for a full size Pik-20B sailplane.

![pik_20b_sailplane_v1](https://github.com/ArduPilot/SITL_Models/assets/24916364/342ec2a4-525e-4589-8814-279cda15df5d)


## Usage

Gazebo and the plugins should be installed as per the [ArduPilot Gazebo Plugin](https://github.com/ArduPilot/ardupilot_gazebo) instructions.

Update the `GZ_SIM_RESOURCE_PATH` to include these models:

```bash
export GZ_SIM_RESOURCE_PATH=$GZ_SIM_RESOURCE_PATH:\
$HOME/SITL_Models/Gazebo/models:\
$HOME/SITL_Models/Gazebo/worlds
```

#### Run Gazebo

```bash
$ gz sim -v4 -r sailplane_runway.sdf
```

#### Run ArduPilot SITL

```bash
$ sim_vehicle.py -v ArduPlane -f JSON --add-param-file=$HOME/SITL_Models/Gazebo/config/pik_20b_sailplane.param --console --map
```

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading