Does the PPS code work for the new INS example for OpenIMU?

26 Mar 2020, 16:28

Hi,

I have put break points on TIM2_IRQHandler and I am never seeing this code called.

I have set the the following as per the docs:

void initUserDataProcessingEngine()
{
InitUserAlgorithm(); // default implementation located in file user_algorithm.c
platformEnableGpsPps(TRUE); // Init PPS sync engine
}

What am I doing wrong?

Regards,

Simonrob

Log in to reply
27 Mar 2020, 00:46

Hi Simonrob,

Could you tell me more details about what you want to do? So, I can get a firmware engineer to help you.

Dong

27 Mar 2020, 13:43

Dong,

I am trying to work out if the pps code actually works and what it is doing, I have the IMU connected to a Ublox zed-f9p with the pps connect to pin 2 . I now can see that the interrupt is being serviced, but I can't work out in the code as bits are commented out if the timestamp is being adjusted accordingly.

Looking at in DataAcquisitionSupport.c and ONE_PPS_EXTI_IRQHandler.

Why is ppsDetected commented out?

void ONE_PPS_EXTI_IRQHandler(void)
{
OSEnterISR();

if(platformIsGpsPPSUsed()){

// ppsDetected = 1;
}

EXTI->PR = ONE_PPS_EXTI_LINE;  ///< Clear the interrupt bit

OSExitISR();

}

Simon

29 Mar 2020, 17:23

@dong bump

31 Mar 2020, 00:39

@simon-rob , I will find the firmware engineer to answer your question.

31 Mar 2020, 00:50

1 PPS signal is processed inside timer5 interrupt routine.
ppsDetected is set inside function platformSetPpsTimeStamp(ts)

6 Apr 2020, 16:15

@Andrey Bondarev,

I can see how ppsDetected is set in Timer5, but as far as I can tell timer5 isn't triggered by the pps input on pin 2.

Timer0 gets trigger by the input on pin 2.

My question as I can't figure it out, is how is the timestamp being synchronised by the pps input?

Many thanks,

Simon

10 Apr 2020, 08:29

@Andrey-Bondarev

Bump

21 Apr 2020, 10:16

@Andrey-Bondarev @Dong-xiaoguang Any updates?

29 Apr 2020, 09:38

@Andrey-Bondarev @Dong-xiaoguang

Are you guys still working?

Please can you confirm that the time stamp is being synchronised by the external PPS signal as I cannot see how it is?

Please correct me if I am wrong?

30 Apr 2020, 00:52

PPS sync should work properly as long as 1PPS pulse provided to PPS pin.
Proper timestamp so far supported only for ublox binary nav-pvt message.

Log in to reply