Updated the UGEAR Ifdef to be able to accomodate different downlink

rates
This commit is contained in:
OSAM-UAV Team
2008-10-07 21:00:06 +00:00
parent 3cf44fcc02
commit 02cc26a370
+8
View File
@@ -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;
}
}