Trying to follow the Flight Tasks (https://docs.px4.io/master/en/concept/flight_tasks.html) Guide from the Docs.
But getting this error :
$ make px4_sitl jmavsim
[4/9] Building CXX object src/modules/…anager.dir/FlightTasks_generated.cpp.o
FAILED: src/modules/flight_mode_manager/CMakeFiles/modules__flight_mode_manager.dir/FlightTasks_generated.cpp.o
/bin/ccache /bin/c++ -DCONFIG_ARCH_BOARD_PX4_SITL -DENABLE_LOCKSTEP_SCHEDULER -DMODULE_NAME="flight_mode_manager" -DPX4_MAIN=flight_mode_manager_app_main -D__CUSTOM_FILE_IO__ -D__PX4_LINUX -D__PX4_POSIX -D__STDC_FORMAT_MACROS -Dnoreturn_function=“attribute((noreturn))” -I…/…/boards/px4/sitl/src -I…/…/platforms/posix/src/px4/common/include -I. -Isrc/lib -I…/…/platforms/posix/src/px4/generic/generic/include -I…/…/platforms/common -I…/…/platforms/common/include -I…/…/src -I…/…/src/include -I…/…/src/lib -I…/…/src/lib/matrix -I…/…/src/modules -I…/…/platforms/posix/include -Iexternal/Install/include -I…/…/src/modules/flight_mode_manager -Isrc/modules/flight_mode_manager -I…/…/src/modules/flight_mode_manager/tasks/AutoFollowMe -I…/…/src/modules/flight_mode_manager/tasks/Auto -I…/…/src/modules/flight_mode_manager/tasks/FlightTask -I…/…/src/modules/flight_mode_manager/tasks/Utility -I…/…/src/lib/slew_rate -I…/…/src/lib/motion_planning -I…/…/src/modules/flight_mode_manager/tasks/AutoLineSmoothVel -I…/…/src/modules/flight_mode_manager/tasks/AutoMapper -I…/…/src/modules/flight_mode_manager/tasks/Descend -I…/…/src/modules/flight_mode_manager/tasks/Failsafe -I…/…/src/modules/flight_mode_manager/tasks/ManualAcceleration -I…/…/src/modules/flight_mode_manager/tasks/ManualAltitudeSmoothVel -I…/…/src/modules/flight_mode_manager/tasks/ManualAltitude -I…/…/src/modules/flight_mode_manager/tasks/ManualPosition -I…/…/src/modules/flight_mode_manager/tasks/ManualPositionSmoothVel -I…/…/src/modules/flight_mode_manager/tasks/Transition -I…/…/src/modules/flight_mode_manager/tasks/Orbit -I…/…/src/modules/flight_mode_manager/tasks/MyTask -O2 -g -DNDEBUG -fPIC -g -fdata-sections -ffunction-sections -fomit-frame-pointer -fmerge-all-constants -fno-signed-zeros -fno-trapping-math -freciprocal-math -fno-math-errno -fno-strict-aliasing -fvisibility=hidden -include visibility.h -Wall -Wextra -Werror -Warray-bounds -Wcast-align -Wdisabled-optimization -Wdouble-promotion -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-unused-parameter -fdiagnostics-color=always -fno-builtin-printf -fno-strength-reduce -Wformat=1 -Wunused-but-set-variable -Wno-format-truncation -fcheck-new -fno-exceptions -fno-rtti -fno-threadsafe-statics -Wreorder -Wno-overloaded-virtual -Wno-cast-align -std=gnu++14 -MD -MT src/modules/flight_mode_manager/CMakeFiles/modules__flight_mode_manager.dir/FlightTasks_generated.cpp.o -MF src/modules/flight_mode_manager/CMakeFiles/modules__flight_mode_manager.dir/FlightTasks_generated.cpp.o.d -o src/modules/flight_mode_manager/CMakeFiles/modules__flight_mode_manager.dir/FlightTasks_generated.cpp.o -c src/modules/flight_mode_manager/FlightTasks_generated.cpp
src/modules/flight_mode_manager/FlightTasks_generated.cpp: In member function ‘FlightTaskIndex FlightModeManager::switchVehicleCommand(int)’:
src/modules/flight_mode_manager/FlightTasks_generated.cpp:125:26: error: ‘VEHICLE_CMD_DO_MYTASK’ is not a member of ‘vehicle_command_s’
125 | case vehicle_command_s::VEHICLE_CMD_DO_MYTASK :
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
[5/9] Building CXX object src/modules/mavlink/CMakeFiles/modules__mavlink.dir/mavlink_messages.cpp.o
ninja: build stopped: subcommand failed.
make: *** [Makefile:230: px4_sitl] Error 1