question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What counts as a "SWITCH"?

See original GitHub issue

Adding on to #159, I’m wondering what counts as a “SWITCH”.

I looked at the docstring for the code here, but it still doesn’t seem right. If I’m reading this correctly, then the following scenario would be a switch:

Instance i in frame t is assigned to track_id 0. At frame t + 1, instance i is assigned to track_id 1.

Another possibility for a switch (or actually 2 switches) is if instance i and instance j at frame t are assigned to track_ids 0 and 1, respectively. And at frame t + 1, instance i is now assigned to 1, and instance j is now assigned to 0.

image Figure 1. A possible switch.

For the image above, I would think it would log the event as a switch because the first update would map Oid=0 to Hid=0 and Oid=1 to Hid=1. Then, the 2nd update will map Oid=0 to Hid=1 and Oid=0 to Hid=1 (which will probably result in some error). Because Oid=0 is now mapped to Hid-1 instead of Hid=0, shouldn’t this be logged as a switch?

Thanks.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
cheindcommented, Jun 22, 2022

Thanks @jvlmdr 😃

0reactions
jvlmdrcommented, Jun 21, 2022

Are you happy for me to close this issue? Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nintendo Switch - Nintendo - Official Site
The Nintendo Switch family is home to exclusive games from franchises like Super Smash Bros.™, The Legend of Zelda™, Mario Kart™, and many...
Read more >
Counting up and down with a switch - Java - Chief Delphi
Hi We are using counters with switches on digital inputs to check for rapid changes in the switch. We would like the counter...
Read more >
Counting Switch Bounces : 4 Steps - Instructables
Bouncing occurs when a switch changes position and proceeds to bounce off of (or momentarily lose contact with) its electrical contact.
Read more >
counting switch changes - Question - Mbed
Create a system which counts the number of times a digital switch is pressed or changed, and lights an LED when 10 instances...
Read more >
counts every time switch turned on/off | All About Circuits
Each section with a switch, 2 resistors, capacitor, and XOR (exclusive-OR) gate form an "edge detector" circuit. It gives you a brief pulse...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found