1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-31 16:52:10 +01:00

Get rid of some unused variables

This commit is contained in:
James Cotton 2012-03-03 11:54:09 -06:00
parent b3f620af7c
commit bc8b72623e
2 changed files with 2 additions and 6 deletions

View File

@ -126,10 +126,9 @@ float starting_altitude;
static void altitudeHoldTask(void *parameters)
{
AltitudeHoldDesiredData altitudeHoldDesired;
BaroAltitudeData baroAltitude;
StabilizationDesiredData stabilizationDesired;
portTickType thisTime, lastSysTime, lastUpdateTime;
portTickType thisTime, lastUpdateTime;
UAVObjEvent ev;
// Force update of the settings
@ -140,9 +139,8 @@ static void altitudeHoldTask(void *parameters)
enum init_state {WAITING_BARO, WAITIING_INIT, INITED} init = WAITING_BARO;
// Main task loop
lastSysTime = xTaskGetTickCount();
while (1) {
bool baro_updated;
bool baro_updated = false;
// Wait until the AttitudeRaw object is updated, if a timeout then go to failsafe
if ( xQueueReceive(queue, &ev, 100 / portTICK_RATE_MS) != pdTRUE )
{

View File

@ -43,8 +43,6 @@ ConversionTypeTypeDef CurrentRead;
MS5611CalibDataTypeDef CalibData;
/* Straight from the datasheet */
static int32_t X1, X2, X3, B3, B5, B6, P;
static uint32_t B4, B7;
static uint32_t RawTemperature;
static uint32_t RawPressure;
static int64_t Pressure;