Duplicate log entries on SD Card deck while logging LPS packets at 2ms

All discussions related to the Loco Positioning system
Post Reply
rtkartista09
Beginner
Posts: 2
Joined: Thu Feb 24, 2022 5:29 pm

Duplicate log entries on SD Card deck while logging LPS packets at 2ms

Post by rtkartista09 »

Code: Select all

1     # version
2048   # buffer size in bytes
log   # file name
1     # enable on startup (0/1)
on:fixedFrequency
500     # frequency
1     # mode (0: disabled, 1: synchronous stabilizer, 2: asynchronous)
tdoa2new.ts
tdoa2new.packet_status
tdoa2new.sn-0
tdoa2new.sn-1
tdoa2new.sn-2
tdoa2new.sn-3
tdoa2new.sn-4
tdoa2new.sn-5
tdoa2new.sn-6
tdoa2new.sn-7
tdoa2new.ts-0
tdoa2new.ts-1
tdoa2new.ts-2
tdoa2new.ts-3
tdoa2new.ts-4
tdoa2new.ts-5
tdoa2new.ts-6
tdoa2new.ts-7
tdoa2new.Da7-0
tdoa2new.Da0-1
tdoa2new.Da1-2
tdoa2new.Da2-3
tdoa2new.Da3-4
tdoa2new.Da4-5
tdoa2new.Da5-6
tdoa2new.Da6-7
on:activeMarkerModeChanged
Here tdoa2new is a new variable defined in the lpstdoa2tag.c

On logging around 30% of the data is duplicated. Is it because of the buffer size?
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Duplicate log entries on SD Card deck while logging LPS packets at 2ms

Post by tobias »

Could be, but it feels like the wrong way around. It should drop logging, not duplicate... Try increasing buffer and maybe reduce frequency to find out if there is a overload problem.
Post Reply