mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 23:49:00 +08:00
specify startup delay in seconds
This commit is contained in:
@@ -207,7 +207,7 @@
|
||||
#set GPS lag for horizontal filter
|
||||
ap.CFLAGS += -DGPS_LAG=0.8 -DUSE_GPS_ACC4R
|
||||
|
||||
ap.CFLAGS += -DTELEMETRY_STARTUP_DELAY=3
|
||||
ap.CFLAGS += -DBOOZ_START_DELAY=2
|
||||
</makefile>
|
||||
|
||||
</airframe>
|
||||
|
||||
@@ -126,7 +126,7 @@ STATIC_INLINE void booz2_main_init( void ) {
|
||||
int_enable();
|
||||
|
||||
#ifdef BOOZ_START_DELAY
|
||||
sys_time_usleep(BOOZ_START_DELAY);
|
||||
sys_time_usleep((int)(BOOZ_START_DELAY*1e6));
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user