Skip to content

Commit b0da3a9

Browse files
refactoring: cutting out the pure C interface to allow direct testing of the policy input/output behavior from the file, without fully loading it into memory first
1 parent eb31939 commit b0da3a9

6 files changed

Lines changed: 310 additions & 87 deletions

File tree

.vscode/cmake-variants.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ CONFIG:
66
buildType: RelWithDebInfo
77
settings:
88
CONFIG: px4_sitl_default
9+
px4_sitl_raptor:
10+
short: px4_sitl_raptor
11+
buildType: RelWithDebInfo
12+
settings:
13+
CONFIG: px4_sitl_raptor
14+
px4_sitl_raptor_debug:
15+
short: px4_sitl_raptor_debug
16+
buildType: Debug
17+
settings:
18+
CONFIG: px4_sitl_raptor
919
px4_sitl_spacecraft:
1020
short: px4_sitl_spacecraft
1121
buildType: RelWithDebInfo

src/modules/mc_raptor/README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,24 @@ Build PX4 SITL with Raptor, disable QGC requirement, and adjust the `IMU_GYRO_RA
66
```
77
make px4_sitl_raptor gz_x500
88
param set NAV_DLL_ACT 0
9-
param set COM_DISARM_LAND -1 # Raptor takes off quite agilely which the landing detector does not like
9+
param set COM_DISARM_LAND -1 # When taking off in offboard the landing detector can cause mid-air disarms
1010
param set IMU_GYRO_RATEMAX 250
1111
param set MC_RAPTOR_ENABLE 1
1212
param set MC_RAPTOR_OFFB 0
1313
```
14+
Upload the RAPTOR checkpoint to the "SD card": Separate terminal
15+
```
16+
mavproxy.py --master udp:127.0.0.1:14540
17+
ftp mkdir /raptor
18+
ftp put policy.tar /raptor/policy.tar
19+
```
1420
restart (ctrl+c)
1521
```
1622
make px4_sitl_raptor gz_x500
1723
commander takeoff
1824
commander status
1925
```
26+
2027
Note the external mode ID of `RAPTOR` in the status report
2128

2229
```
@@ -30,6 +37,6 @@ commander mode ext{RAPTOR_MODE_ID}
3037
Send Lissajous setpoints via Mavlink:
3138
```
3239
pip install px4
33-
px4 udp:localhost:14540 track lissajous --A 2.0 --B 0.5 --duration 10 --ramp-duration 3 --takeoff 1.0
40+
px4 udp:localhost:14540 track lissajous --A 2.0 --B 0.5 --duration 5 --ramp-duration 3 --takeoff 3.0
3441
```
3542

0 commit comments

Comments
 (0)