mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-27 17:06:31 +08:00
Updated the UGEAR Ifdef to be able to accomodate different downlink
rates
This commit is contained in:
@@ -743,10 +743,18 @@ void event_task_ap( void ) {
|
||||
// UseGpsPos(estimator_update_state_gps);
|
||||
UseGpsPosUgear(estimator_update_state_gps);
|
||||
gps_msg_received_counter = gps_msg_received_counter+1;
|
||||
#ifdef GX2
|
||||
if (gps_msg_received_counter == 1){
|
||||
gps_downlink();
|
||||
gps_msg_received_counter = 0;
|
||||
}
|
||||
#endif
|
||||
#ifdef XSENSDL
|
||||
if (gps_msg_received_counter == 25){
|
||||
gps_downlink();
|
||||
gps_msg_received_counter = 0;
|
||||
}
|
||||
#endif
|
||||
gps_pos_available = FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user