Commit aebddf1
committed
ArduCopter: MAV_CMD_DO_ORBIT improvements
- Fix orbit completion: use hold_position() instead of pos_control_start()
to prevent vehicle flying back to start position and descending
- Fix yaw after orbit completion: maintain yaw behaviour instead of
always pointing to circle center
- Implement param3 (ORBIT_YAW_BEHAVIOUR):
0=face center, 1=hold initial heading, 2=uncontrolled,
3=tangent to circle, 4=RC controlled, 5=unchanged
- Fix approach yaw: use set_mode_to_default() during edge approach
so vehicle looks in direction of travel1 parent 307cb10 commit aebddf1
3 files changed
Lines changed: 43 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
899 | 899 | | |
900 | 900 | | |
901 | 901 | | |
902 | | - | |
903 | | - | |
904 | | - | |
905 | | - | |
| 902 | + | |
906 | 903 | | |
907 | 904 | | |
908 | 905 | | |
| |||
922 | 919 | | |
923 | 920 | | |
924 | 921 | | |
925 | | - | |
926 | | - | |
927 | | - | |
928 | | - | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
929 | 925 | | |
930 | 926 | | |
931 | 927 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1180 | 1180 | | |
1181 | 1181 | | |
1182 | 1182 | | |
1183 | | - | |
| 1183 | + | |
1184 | 1184 | | |
| 1185 | + | |
1185 | 1186 | | |
1186 | 1187 | | |
1187 | 1188 | | |
| |||
1243 | 1244 | | |
1244 | 1245 | | |
1245 | 1246 | | |
| 1247 | + | |
1246 | 1248 | | |
1247 | 1249 | | |
1248 | 1250 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
| 266 | + | |
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| |||
1272 | 1272 | | |
1273 | 1273 | | |
1274 | 1274 | | |
1275 | | - | |
| 1275 | + | |
1276 | 1276 | | |
1277 | 1277 | | |
1278 | 1278 | | |
| |||
1296 | 1296 | | |
1297 | 1297 | | |
1298 | 1298 | | |
| 1299 | + | |
1299 | 1300 | | |
1300 | 1301 | | |
1301 | 1302 | | |
| |||
1311 | 1312 | | |
1312 | 1313 | | |
1313 | 1314 | | |
| 1315 | + | |
| 1316 | + | |
1314 | 1317 | | |
1315 | 1318 | | |
1316 | 1319 | | |
| |||
1319 | 1322 | | |
1320 | 1323 | | |
1321 | 1324 | | |
1322 | | - | |
1323 | | - | |
| 1325 | + | |
| 1326 | + | |
1324 | 1327 | | |
1325 | 1328 | | |
1326 | 1329 | | |
1327 | 1330 | | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
1328 | 1357 | | |
1329 | 1358 | | |
1330 | 1359 | | |
| |||
1335 | 1364 | | |
1336 | 1365 | | |
1337 | 1366 | | |
1338 | | - | |
1339 | | - | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
1340 | 1370 | | |
1341 | 1371 | | |
1342 | 1372 | | |
| |||
0 commit comments