1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

Style suggestions to cleanup GPS from Stac

This commit is contained in:
James Cotton 2011-11-12 21:25:17 -06:00
parent f0b22519be
commit b110e9c549
3 changed files with 5 additions and 6 deletions

View File

@ -79,7 +79,7 @@ int32_t CameraStabInitialize(void)
HwSettingsInitialize();
uint8_t optionalModules[HWSETTINGS_OPTIONALMODULES_NUMELEM];
HwSettingsOptionalModulesGet(optionalModules);
if (optionalModules[HWSETTINGS_OPTIONALMODULES_CAMERASTAB]==HWSETTINGS_OPTIONALMODULES_ENABLED) {
if (optionalModules[HWSETTINGS_OPTIONALMODULES_CAMERASTAB] == HWSETTINGS_OPTIONALMODULES_ENABLED) {
camerastabEnabled=1;
} else {
camerastabEnabled=0;

View File

@ -78,7 +78,7 @@ static float GravityAccel(float latitude, float longitude, float altitude);
// Private variables
static uint32_t gpsPort;
static uint8_t gpsEnabled = 0;
static bool gpsEnabled = false;
static xTaskHandle gpsTaskHandle;
@ -123,10 +123,10 @@ int32_t GPSInitialize(void)
HwSettingsInitialize();
uint8_t optionalModules[HWSETTINGS_OPTIONALMODULES_NUMELEM];
HwSettingsOptionalModulesGet(optionalModules);
if (optionalModules[HWSETTINGS_OPTIONALMODULES_GPS]==HWSETTINGS_OPTIONALMODULES_ENABLED) {
gpsEnabled=1;
if (optionalModules[HWSETTINGS_OPTIONALMODULES_GPS] == HWSETTINGS_OPTIONALMODULES_ENABLED) {
gpsEnabled = true;
} else {
gpsEnabled=0;
gpsEnabled = false;
}
if (gpsPort && gpsEnabled) {

View File

@ -46,7 +46,6 @@
#include "systemsettings.h"
#include "i2cstats.h"
#include "taskinfo.h"
#include "hwsettings.h"
#include "watchdogstatus.h"
#include "taskmonitor.h"