I created a new flight mode and wrote it strictly according to the requirements in the document. At the beginning, I used version 1.13 which was not consistent with the documentation, so I couldn’t complete it (there were always compilation errors).
Therefore, I changed to version 1.15 for modification, which is consistent with the documentation. But there was a compilation error. I will continue to use version 1.14 of the PX4 program. After creation, an error occurred such as
'…/…/src/modules/flid_mod_manager/Flight
ModeManager. cpp: 213:40: error:'AntiWindTask ‘is not a member of’ FlightTaskIndex ‘’.