From e929cc21b17f0ae91d1f36756397f835182fe24e Mon Sep 17 00:00:00 2001 From: DisCoLabIITK <104546585+DisCoLabIITK@users.noreply.github.com> Date: Sun, 28 Jul 2024 16:46:10 +0530 Subject: [PATCH] AP_CustomControl: Update README.md Adding step for changes that need to be done in the AC_CustomControl_config.h file to prevent error while compilation. --- libraries/AC_CustomControl/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libraries/AC_CustomControl/README.md b/libraries/AC_CustomControl/README.md index 2d2d4a892d..771f3b4e83 100644 --- a/libraries/AC_CustomControl/README.md +++ b/libraries/AC_CustomControl/README.md @@ -217,6 +217,13 @@ default: return; } ``` +Add the following lines in the `AC_CustomControl_config.h` file. + +``` +#ifndef AP_CUSTOMCONTROL_XYZ_ENABLED +#define AP_CUSTOMCONTROL_XYZ_ENABLED AP_CUSTOMCONTROL_BACKEND_DEFAULT_ENABLED +#endif +``` 8. This is the bare minimum to compile and run your custom controller. You can add controller related code to `AC_CustomControl_XYZ` file without changing anything else.