Skip to content

[tof] Bug? No results printed from 2nd sensor #31

@finalyards

Description

@finalyards

At tof/vl_api:

$VARIANT=8 make -f Makefile.dev m
...
                Data #0: (18°C, at 0.672s)
4.783683 [INFO ] [[[Valid(21), Valid(19), Invalid(33, 1), Valid(7)], [Invalid(21, 1), Invalid(36, 4), Invalid(0, 5), Invalid(42, 1)], [Invalid(12, 1), Valid(1), Invalid(32, 1), Valid(8)], [Valid(9), Valid(40), Valid(49), Valid(36)]]]
4.800813 [DEBUG] Woke up to INT edge (now high; slept 17ms)
4.806446 [DEBUG] New data from #0
4.857692 [DEBUG] No new data from #1
4.857765 [DEBUG] Timing [ms] (total 108.036): wait+read 108.016, passing 0.02
4.864136 [DEBUG] No new data from #0
4.893073 [DEBUG] No new data from #1
4.893098 [DEBUG] Going to sleep (INT high).
4.893144 [INFO ]
                Data #0: (19°C, at 0.748s)
4.893188 [INFO ] [[[Valid(22), Invalid(3, 1), Valid(2), Valid(2)], [Invalid(31, 1), Invalid(0, 5), Valid(32), Invalid(48, 1)], [Valid(24), Invalid(2, 1), Invalid(0, 1), Valid(8)], [Invalid(2, 1), Valid(41), Valid(33), Valid(32)]]]
4.944777 [DEBUG] Woke up to INT edge (now high; slept 51ms)
4.950408 [DEBUG] New data from #0
4.968907 [DEBUG] No new data from #1
4.968979 [DEBUG] Timing [ms] (total 111.157): wait+read 111.138, passing 0.019
5.158504 [DEBUG] After scans are done, 1 result(s) still in the Channel.
5.158540 [INFO ]
                Data #0: (18°C, at 0.892s)
5.158583 [INFO ] [[[Valid(4), Invalid(10, 1), Valid(1), Valid(8)], [Invalid(6, 1), Invalid(2, 1), Invalid(0, 5), Invalid(13, 1)], [Valid(24), Valid(1), Valid(32), Invalid(0, 1)], [Valid(20), Valid(34), Valid(33), Valid(33)]]]
Firmware exited successfully

Notice how it's only "Data #0". It should be equally "Data #0" and "Data #1". What's going on?

This is not urgent at the moment, for the author. And occasionally "Data #1" does show up. But it's something that should be looked into!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions