Rev 218 | Rev 310 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 218 | Rev 255 | ||
---|---|---|---|
Line 170... | Line 170... | ||
170 | // no init |
170 | // no init |
171 | if(CheckDelay(logtimer)) |
171 | if(CheckDelay(logtimer)) |
172 | { |
172 | { |
173 | logtimer = SetDelay(LogDelay); // standard interval |
173 | logtimer = SetDelay(LogDelay); // standard interval |
Line 174... | Line 174... | ||
174 | 174 | ||
175 | if(FC.Flags & FCFLAG_MOTOR_RUN) |
175 | if(FC.StatusFlags & FC_STATUS_MOTOR_RUN) |
176 | { |
176 | { |
177 | switch(logfilestate) |
177 | switch(logfilestate) |
178 | { |
178 | { |
179 | case LOGFILE_IDLE: |
179 | case LOGFILE_IDLE: |
180 | case LOGFILE_CLOSED: |
180 | case LOGFILE_CLOSED: |
181 | if((GPSData.Status != INVALID) && (GPSData.Flags & FLAG_GPSFIXOK) && (GPSData.SatFix == SATFIX_3D) && (FC.Flags & FCFLAG_FLY)) |
181 | if((GPSData.Status != INVALID) && (GPSData.Flags & FLAG_GPSFIXOK) && (GPSData.SatFix == SATFIX_3D) && (FC.StatusFlags & FC_STATUS_FLY)) |
182 | { |
182 | { |
183 | logfilestate = LOGFILE_START; |
183 | logfilestate = LOGFILE_START; |
184 | } |
184 | } |
185 | break; |
185 | break; |
Line 297... | Line 297... | ||
297 | // no init |
297 | // no init |
298 | if(CheckDelay(logtimer)) |
298 | if(CheckDelay(logtimer)) |
299 | { |
299 | { |
300 | logtimer = SetDelay(LogDelay); // standard interval |
300 | logtimer = SetDelay(LogDelay); // standard interval |
Line 301... | Line 301... | ||
301 | 301 | ||
302 | if(FC.Flags & FCFLAG_MOTOR_RUN) |
302 | if(FC.StatusFlags & FC_STATUS_MOTOR_RUN) |
303 | { |
303 | { |
304 | switch(logfilestate) |
304 | switch(logfilestate) |
305 | { |
305 | { |
306 | case LOGFILE_IDLE: |
306 | case LOGFILE_IDLE: |
307 | case LOGFILE_CLOSED: |
307 | case LOGFILE_CLOSED: |
308 | if((GPSData.Status != INVALID) && (GPSData.Flags & FLAG_GPSFIXOK) && (GPSData.SatFix == SATFIX_3D) && (FC.Flags & FCFLAG_FLY)) |
308 | if((GPSData.Status != INVALID) && (GPSData.Flags & FLAG_GPSFIXOK) && (GPSData.SatFix == SATFIX_3D) && (FC.StatusFlags & FC_STATUS_FLY)) |
309 | { |
309 | { |
310 | logfilestate = LOGFILE_START; |
310 | logfilestate = LOGFILE_START; |
311 | } |
311 | } |
312 | break; |
312 | break; |