From 406eb1430ca582a626a027a7199cc9687d85b1ab Mon Sep 17 00:00:00 2001 From: uncrustify Date: Thu, 16 Aug 2012 23:20:05 -0700 Subject: [PATCH] uncrustify libraries/AP_Limits/AP_Limit_GPSLock.cpp --- libraries/AP_Limits/AP_Limit_GPSLock.cpp | 38 ++++++++++++------------ 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/libraries/AP_Limits/AP_Limit_GPSLock.cpp b/libraries/AP_Limits/AP_Limit_GPSLock.cpp index 60367e522c..054af19668 100644 --- a/libraries/AP_Limits/AP_Limit_GPSLock.cpp +++ b/libraries/AP_Limits/AP_Limit_GPSLock.cpp @@ -10,37 +10,37 @@ #include const AP_Param::GroupInfo AP_Limit_GPSLock::var_info[] PROGMEM = { - // @Param: GPSLCK_ON - // @DisplayName: Enable gpslock - // @Description: Setting this to Enabled(1) will enable the gpslock. Setting this to Disabled(0) will disable the gpslock - // @Values: 0:Disabled,1:Enabled - // @User: Standard - AP_GROUPINFO("GPSLCK_ON", 0, AP_Limit_GPSLock, _enabled, 0), + // @Param: GPSLCK_ON + // @DisplayName: Enable gpslock + // @Description: Setting this to Enabled(1) will enable the gpslock. Setting this to Disabled(0) will disable the gpslock + // @Values: 0:Disabled,1:Enabled + // @User: Standard + AP_GROUPINFO("GPSLCK_ON", 0, AP_Limit_GPSLock, _enabled, 0), - // @Param: GPSLCK_REQ - // @DisplayName: Require gpslock - // @Description: Setting this to Enabled(1) will make being inside the gpslock a required check before arming the vehicle. - // @Values: 0:Disabled,1:Enabled - // @User: Standard - AP_GROUPINFO("GPSLCK_REQ", 1, AP_Limit_GPSLock, _required, 0), + // @Param: GPSLCK_REQ + // @DisplayName: Require gpslock + // @Description: Setting this to Enabled(1) will make being inside the gpslock a required check before arming the vehicle. + // @Values: 0:Disabled,1:Enabled + // @User: Standard + AP_GROUPINFO("GPSLCK_REQ", 1, AP_Limit_GPSLock, _required, 0), AP_GROUPEND }; AP_Limit_GPSLock::AP_Limit_GPSLock(GPS *&gps) : - AP_Limit_Module(AP_LIMITS_GPSLOCK), // enabled and required - _gps(gps) + AP_Limit_Module(AP_LIMITS_GPSLOCK), // enabled and required + _gps(gps) { } bool AP_Limit_GPSLock::triggered() { - _triggered = false; // reset trigger before checking + _triggered = false; // reset trigger before checking - if (!_gps || !_gps->fix) { - _triggered = true; - } + if (!_gps || !_gps->fix) { + _triggered = true; + } - return _triggered; + return _triggered; }