mirror of https://github.com/ArduPilot/ardupilot
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.
This commit is contained in:
parent
d9eabcf411
commit
e929cc21b1
|
@ -217,6 +217,13 @@ default:
|
||||||
return;
|
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.
|
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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue