|
|
@ -339,9 +339,9 @@ bool Copter::deadline_ok() |
|
|
|
int32_t deadline =0; |
|
|
|
int32_t deadline =0; |
|
|
|
copter.get_deadline_params(deadline); |
|
|
|
copter.get_deadline_params(deadline); |
|
|
|
int32_t gps_date =0; |
|
|
|
int32_t gps_date =0; |
|
|
|
if((AP::gps().time_week() ==0)||(AP::gps().time_week_ms() ==0)){ |
|
|
|
if((AP::gps().time_week() ==0)||(AP::gps().time_week_ms() ==0)){ |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
uint64_t timestamp = AP::gps().time_epoch_convert(AP::gps().time_week(),AP::gps().time_week_ms())/1000; |
|
|
|
uint64_t timestamp = AP::gps().time_epoch_convert(AP::gps().time_week(),AP::gps().time_week_ms())/1000; |
|
|
|
//tick -timestamp - uint:s
|
|
|
|
//tick -timestamp - uint:s
|
|
|
|
time_t tick = (time_t)timestamp; |
|
|
|
time_t tick = (time_t)timestamp; |
|
|
|