-
Notifications
You must be signed in to change notification settings - Fork 28
Read the tof-sensors in parallel #224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
amandel
commented
Feb 17, 2021
- primary sensor gives pace
- no wait for result, just get what is ready
- max 30 readings per minute in csv
- nerd display shows number of echo triggers of primary sensor in the middle
- do not report timeout readings (should we do this?)
- inner loop runs more often (no wait())
- need a delay(1)?
- SENSOR_QUIET_PERIOD_AFTER_START_MICRO_SEC to 30ms (was 35)
- relates Switch back to parallel tof-sensor reading #221
Kudos, SonarCloud Quality Gate passed!
|
- primary sensor gives pace - no wait for result, just get what is ready - max 30 readings per minute in csv - nerd display shows number of echo triggers of primary sensor in the middle - do not report timeout readings (should we do this?) - inner loop runs more often (no wait()) - need a delay(1)? - SENSOR_QUIET_PERIOD_AFTER_START_MICRO_SEC to 30ms (was 35) - relates #221 - log measurement loop speed - call display only every 20ms max.
b9c8ffb
to
ff31ab7
Compare
Sind wir uns sicher, dass wir das wollen? Ich hatte das vor einem Jahr auch mal eingebaut um die Anzahl der Messungen zu erhöhen. Damals gab's aber Messfehler, weil z.B. der linke Sensor das Signal des rechten empfangen hat. Wir hatten das dann wieder Rückgängig gemacht. @tobst weißt Du noch mehr Details? |
Wir hatten das auf abwechselnd umgestellt, um auszuschließen, dass die TOF-Sensor-Boards sich gegenseitig stören. Das war insbesondere im Zusammenhang mit der Abschirmung. Es ist aber so, dass es bei den stabilen Sensoren zu keiner Beeinflussung kommt. Meinungen? Edit, da ich erst nach > TIMEOUT ms feststellen kann ob von dem gegenüberliegenden Sensor eine Messung vorliegt und TIMEOUT bei 75ms liegt braucht es die Fallunterscheidung nicht. Es würde also immer frühestens X ms nach Start der gegenüberliegenden Messung eine neue Messung gestartet. Edit2: Das führt allerdings auch dazu, dass rechts nicht gemessen wird wenn der Messzyklus des linken Sensors regelmäßig in unter 50ms durch ist. Das sollte OK sein - der hat ja prio. |
- remove unused code, retain "getDistances" from alternating reading
Kudos, SonarCloud Quality Gate passed!
|
Talkes in monday meeting about this - will merge and create a pre-releaae |