Trying to add a new mode but failing to compile

I am trying to make a new mode by following the instructions on the wiki but it seems like I am misinterpreting them, or it is out of date and missing steps. I am just starting by trying to make an copy of guided mode with just a different name.

It seems like my issue is with the following step:
Create a new mode_.cpp file based on a similar mode such as mode_stabilize.cpp or mode_loiter.cpp

I made a copy of the guided mode cpp file and if I rename all the methods my compile fail says error: cannot convert ‘ModeCopyGuided::SubMode’ to ‘ModeGuided::SubMode’

If I keep the names my compile fails and says it is being defined in multiple places.

I am unsure what else needs to be changed/added for this file to not cause an error

Post your code, otherwise we’ll just be guessing in the dark.

Here are the files I edited. Thank you for taking a look

mode.h (74.1 KB)
Parameters.cpp (77.0 KB)
mode.cpp (37.8 KB)
Copter.h (38.6 KB)
mode_copy_guided.cpp (42.6 KB)