From 2c55ce368680350bb6c0e274850fd04113373cea Mon Sep 17 00:00:00 2001 From: Christophe De Wagter Date: Fri, 9 Apr 2021 09:12:55 +0200 Subject: [PATCH] Files for PDF exercise (#67) (#2687) * files for PDF exercise * Explicit call to python2 for systems that default to python3 * Description and comments fixes [flight_plan] remove warning about dummy WP Reformatted indents to 2 spaces Added configs for ps4 gamepads, fixed typos (#68) Update: for flight testing in the CyberZoo Fix color gain in mav_course_exercise.xml airframe (#72) [flight_plan] Re-measured the autoland border. It is not safe to exit the red sqaure so it auto-lands to prevent damage. (#73) [Camera] Vision runs faster is unnecessary frames are not grabbed. (#74) Co-authored-by: Matteo Barbera --- .../tudelft/bebop_course_orangeavoid.xml | 1 + .../bebop_course_orangeavoid_guided.xml | 1 + .../tudelft/bebop_mav_course_exercise.xml | 272 ++++++++++++++++++ .../tudelft/course_orangeavoid_cyberzoo.xml | 8 +- .../course_orangeavoid_cyberzoo_guided.xml | 10 +- conf/joystick/ps4_gamepad.xml | 104 +++++++ conf/joystick/ps4_gamepad_yawontriggers.xml | 104 +++++++ conf/joystick/sm600.xml | 2 +- conf/modules/mav_course_exercise.xml | 11 + .../intermediate/create_joystick.rst | 14 +- .../mav_course_exercise/mav_exercise.c | 176 ++++++++++++ .../mav_course_exercise/mav_exercise.h | 27 ++ 12 files changed, 713 insertions(+), 17 deletions(-) create mode 100644 conf/airframes/tudelft/bebop_mav_course_exercise.xml create mode 100644 conf/joystick/ps4_gamepad.xml create mode 100644 conf/joystick/ps4_gamepad_yawontriggers.xml create mode 100644 conf/modules/mav_course_exercise.xml create mode 100644 sw/airborne/modules/mav_course_exercise/mav_exercise.c create mode 100644 sw/airborne/modules/mav_course_exercise/mav_exercise.h diff --git a/conf/airframes/tudelft/bebop_course_orangeavoid.xml b/conf/airframes/tudelft/bebop_course_orangeavoid.xml index a50fe3e084..18b3658bad 100644 --- a/conf/airframes/tudelft/bebop_course_orangeavoid.xml +++ b/conf/airframes/tudelft/bebop_course_orangeavoid.xml @@ -9,6 +9,7 @@ + diff --git a/conf/airframes/tudelft/bebop_course_orangeavoid_guided.xml b/conf/airframes/tudelft/bebop_course_orangeavoid_guided.xml index b7ccb7b032..9c29079b2c 100644 --- a/conf/airframes/tudelft/bebop_course_orangeavoid_guided.xml +++ b/conf/airframes/tudelft/bebop_course_orangeavoid_guided.xml @@ -8,6 +8,7 @@ + diff --git a/conf/airframes/tudelft/bebop_mav_course_exercise.xml b/conf/airframes/tudelft/bebop_mav_course_exercise.xml new file mode 100644 index 0000000000..253b5f5198 --- /dev/null +++ b/conf/airframes/tudelft/bebop_mav_course_exercise.xml @@ -0,0 +1,272 @@ + + + + MAVLAB Course TUDelft + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + + +
+ +
+ + + + + + + +
+ + + +
+ + + + + + + + +
+ +
+ + + + + + +
+ +
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + +
+ +
+ + + + + + + + +
+ +
+ + +
+ +
+ + + + +
+ + +
+ + + + + + +
+ +
+ + + + + +
+
diff --git a/conf/flight_plans/tudelft/course_orangeavoid_cyberzoo.xml b/conf/flight_plans/tudelft/course_orangeavoid_cyberzoo.xml index 78e98087da..2ea24e6b2e 100644 --- a/conf/flight_plans/tudelft/course_orangeavoid_cyberzoo.xml +++ b/conf/flight_plans/tudelft/course_orangeavoid_cyberzoo.xml @@ -1,6 +1,6 @@ - +
#include "subsystems/datalink/datalink.h" #include "subsystems/electrical.h" @@ -16,12 +16,12 @@ - - + + - + diff --git a/conf/flight_plans/tudelft/course_orangeavoid_cyberzoo_guided.xml b/conf/flight_plans/tudelft/course_orangeavoid_cyberzoo_guided.xml index bdf71c8144..0909b8212a 100644 --- a/conf/flight_plans/tudelft/course_orangeavoid_cyberzoo_guided.xml +++ b/conf/flight_plans/tudelft/course_orangeavoid_cyberzoo_guided.xml @@ -1,6 +1,6 @@ - +
#include "subsystems/datalink/datalink.h" #include "subsystems/electrical.h" @@ -24,10 +24,10 @@ inline void setGuided(void){ - - - - + + + + diff --git a/conf/joystick/ps4_gamepad.xml b/conf/joystick/ps4_gamepad.xml new file mode 100644 index 0000000000..2600a47f0e --- /dev/null +++ b/conf/joystick/ps4_gamepad.xml @@ -0,0 +1,104 @@ + + + + + + + + + + +