--
--
---
You received this message because you are subscribed to the Google Groups "uavdevboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uavdevboard...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/uavdevboard/ef5696e6-a01a-43bc-b737-d740043dcf0d%40googlegroups.com.
#if (NORADIO == 1) |
if (1) |
#else |
if (udb_flags._.radio_on) |
--
--
---
You received this message because you are subscribed to the Google Groups "uavdevboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uavdevboard...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/uavdevboard/d83dc15e-2555-40b3-882c-8257e719bb75%40googlegroups.com.
--
--
---
You received this message because you are subscribed to the Google Groups "uavdevboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uavdevboard...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/uavdevboard/4d440c5a-8205-40b1-a8f6-4a3f5ab05e28%40googlegroups.com.
Hi Roby,DR_PERIOD is used to initialize a countdown clock to determine if the GPS has stopped reporting. If it has, then the GPS is no longer used in the IMU bias compensation computations. Take a look in the "dead reckoning" code:In order to assure the "freshness" of the GPS data, each time the GPS adjustments are applied to the IMU estimates, the clock ticks down one. Each time a valid GPS message is received, the clock is reset to DR_PERIOD. If the clock reaches zero, the GPS is no longer used and the IMU computations go into full "dead reckoning", GPS-less mode.The the addition of "4" to the nominal reset value is to provide some margin in the logic. In other words, the clock ticks down and additional 4 more "ticks" after the GPS stops reporting before we give up on the GPS.If and when the GPS resumes, the clock starts up again and the compensation computations resume.Best regards,Bill
On Mon, Jan 6, 2020 at 12:44 PM Roby <roberts...@gmail.com> wrote:
Hello Bill,--I am wondering why you added four in this line: #define DR_PERIOD (int16_t)((HEARTBEAT_HZ/GPS_RATE)+4).Is it to take into account one time step delay in the GPS readings?Regards,Roby
--
---
You received this message because you are subscribed to the Google Groups "uavdevboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uavde...@googlegroups.com.