Adding a New Flight Mode

Hi,
I want to add a new flight mode to Arducopter. I followed the instructions in the guide. However, I got an error when I ran an SITL simulation. I attached a screenshot of the error below.
(My mode’s class is ModeAtlas, I didn’t understand how I should create the object.)

Thanks