Acceleration Sampling Frequency Issues
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- Ein halber Tag
- Anfängerfreundlichkeit
- 48/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- cpp
- Bereich
- embedded-iot
Rechercherichtung
The problem is in the accelerometer chip driver, where the whole FIFO buffer is read on each sample instead of only the number of valid entries the chip reports. Start by finding the FIFO read path in that driver and check the linked PineTimeSD pull request #22 for the approach the reporter used. Done means each read fetches only the valid readings, so the sampling rate matches the requested 25 Hz; this needs hardware to verify fully.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Verification
- I searched for similar issues (including closed issues) and found none was relevant.
Introduce the issue
I use a fork of InfiniTime as a data source for my OpenSeizureDetector epileptic seizure detection project.
I noticed that although we were requesting 25 Hz accelerometer sampling frequency, we were receiving data at more like 28 Hz.
The cause seemed to be that each time we read it, we were reading the entire contents of the FIFO buffer on the accelerometer chip, rather than the number of valid readings stated on the chip.
I have fixed this in my fork, but thought you might like to implement the fix in the main InfiniTime firmware too. I also improved the error handling in the accelerometer chip driver as part of the change.
See https://github.com/OpenSeizureDetector/PineTimeSD/pull/22
Preferred solution
You might want to implement the same change (https://github.com/OpenSeizureDetector/PineTimeSD/pull/22) - I don't think it has been fixed in InfiniTime as far as I can see.
I think the 'best' option is to set up accelerometer handling as a separate task and use interrupts to drive the FIFO reading, but that is a bigger change to implement so I haven't done that yet.
Version
No response
- Vorherrschende Sprache
- C
- Sterne
- 3.4k
- Forks
- 1.1k
- Ø Merge
- 6 Std. 10 Min.
- Gemergte PRs (30 T.)
- 5
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus InfiniTimeOrg/InfiniTime
-
Не выключение экранаOffenbug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 56/100
InfiniTimeOrg/InfiniTime#2503 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 55/100
InfiniTimeOrg/InfiniTime#2496 · 5 Kommentare ·
-
BLE handlers use length fields from the packet without checking how much data arrivedEvtl. vergeben @DustinHab hat das vor 59 Tagen übernommen. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 56/100
InfiniTimeOrg/InfiniTime#2485 ·
-
Screen doesn't go to sleep after reset countdown appEvtl. vergeben @SteveAmor hat das vor 100 Tagen übernommen. Offenbug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
InfiniTimeOrg/InfiniTime#2419 · 4 Kommentare ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
InfiniTimeOrg/InfiniTime#2410 ·
Alle Issues in InfiniTimeOrg/InfiniTime
Ähnliche Issues
-
Signed/unsigned mix in the EOCD backward scan rejects valid archives with a 65535-byte commentOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug game: 01008BA02525A000 ios
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
area/ysql kind/bug priority/medium status/awaiting-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
yugabyte/yugabyte-db#37523 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
Maintainer antworten meist innerhalb von 3 Tagen