mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
uncrustify libraries/AP_Limits/AP_Limits.h
This commit is contained in:
parent
06c79f9aa6
commit
815d7c583e
@ -9,7 +9,7 @@
|
|||||||
#define AP_LIMITS_H
|
#define AP_LIMITS_H
|
||||||
|
|
||||||
#ifndef AP_LIMITS
|
#ifndef AP_LIMITS
|
||||||
#define AP_LIMITS ENABLED
|
#define AP_LIMITS ENABLED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#ifndef HAVE_ENUM_LIMITS_STATE
|
#ifndef HAVE_ENUM_LIMITS_STATE
|
||||||
#define HAVE_ENUM_LIMITS_STATE
|
#define HAVE_ENUM_LIMITS_STATE
|
||||||
enum LimitState {
|
enum LimitState {
|
||||||
LIMITS_INIT, // pre-initialization
|
LIMITS_INIT, // pre-initialization
|
||||||
LIMITS_DISABLED, // disabled
|
LIMITS_DISABLED, // disabled
|
||||||
@ -53,10 +53,10 @@ public:
|
|||||||
|
|
||||||
// module linked list management methods
|
// module linked list management methods
|
||||||
void modules(AP_Limit_Module *m); // pointer to the first module in linked list of modules
|
void modules(AP_Limit_Module *m); // pointer to the first module in linked list of modules
|
||||||
AP_Limit_Module *modules_first();
|
AP_Limit_Module * modules_first();
|
||||||
AP_Limit_Module *modules_current();
|
AP_Limit_Module * modules_current();
|
||||||
AP_Limit_Module *modules_last();
|
AP_Limit_Module * modules_last();
|
||||||
AP_Limit_Module *modules_next();
|
AP_Limit_Module * modules_next();
|
||||||
void modules_add(AP_Limit_Module *m);
|
void modules_add(AP_Limit_Module *m);
|
||||||
uint8_t modules_count();
|
uint8_t modules_count();
|
||||||
|
|
||||||
@ -95,8 +95,8 @@ protected:
|
|||||||
AP_Int8 _recmode; // recovery mode: 0=RTL mode, 1=bounce mode
|
AP_Int8 _recmode; // recovery mode: 0=RTL mode, 1=bounce mode
|
||||||
|
|
||||||
private:
|
private:
|
||||||
AP_Limit_Module *_modules_head; // points to linked list of modules
|
AP_Limit_Module * _modules_head; // points to linked list of modules
|
||||||
AP_Limit_Module *_modules_current; // points to linked list of modules
|
AP_Limit_Module * _modules_current; // points to linked list of modules
|
||||||
uint8_t _modules_count;
|
uint8_t _modules_count;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user