uncrustify libraries/AP_Limits/AP_Limit_Module.cpp

This commit is contained in:
uncrustify 2012-08-16 23:20:05 -07:00 committed by Pat Hickey
parent 78189a4b2f
commit 322c1eef4b
1 changed files with 26 additions and 26 deletions

View File

@ -11,59 +11,59 @@
extern const prog_char_t *get_module_name(enum moduleid i) {
switch (i) {
case AP_LIMITS_GPSLOCK:
return PSTR("GPSLock Limit");
break;
case AP_LIMITS_GEOFENCE:
return PSTR("Geofence Limit");
break;
case AP_LIMITS_ALTITUDE:
return PSTR("Altitude Limit");
break;
default:
return PSTR("ERROR");
break;
}
switch (i) {
case AP_LIMITS_GPSLOCK:
return PSTR("GPSLock Limit");
break;
case AP_LIMITS_GEOFENCE:
return PSTR("Geofence Limit");
break;
case AP_LIMITS_ALTITUDE:
return PSTR("Altitude Limit");
break;
default:
return PSTR("ERROR");
break;
}
}
AP_Limit_Module::AP_Limit_Module(enum moduleid i) {
_id = i;
_next = NULL;
_id = i;
_next = NULL;
}
bool AP_Limit_Module::init() {
_triggered = false;
return true;
_triggered = false;
return true;
};
moduleid AP_Limit_Module::get_module_id() {
return(_id);
return(_id);
}
bool AP_Limit_Module::enabled() {
return(_enabled);
return(_enabled);
}
bool AP_Limit_Module::required() {
return(_required);
return(_required);
}
AP_Limit_Module *AP_Limit_Module::next() {
return(_next);
AP_Limit_Module *AP_Limit_Module::next() {
return(_next);
}
void AP_Limit_Module::link(AP_Limit_Module *m) {
_next = m;
_next = m;
}
bool AP_Limit_Module::triggered() {
return(_triggered);
return(_triggered);
}
void AP_Limit_Module::action() {
// do nothing
// do nothing
}