Re: [WiiC] Wiic returns invalid IR coordinates!
Brought to you by:
gabriele82rm
|
From: Gabriele R. <ran...@di...> - 2011-04-25 01:01:04
|
Hi Christian, thanks for signaling and solving this bug. I just committed the fix. Gabriele Il 18/04/11 17.07, Christian Mueller ha scritto: > Hi again, > > I found the error and I tried to fix it with the following one: > > So do at line 410 in wiicpp.cpp > > for(index = 0; index < 4; index++) instead of for(index = 0; index < > mpWiimotePtr->ir.num_dots; index++) > > since in case if the dot at [2] is not visible any more, the number of > ir.num_dots=3. > So it ll iterate [0],[1],[2]. but it will not iterate to [3] which is a > valid point!!! > and [2] will be an invalid point like (0,1023) > > So iterate over the whole vector of size 4! then with isVisble() > function such points like (0,1023) are filtered out and you get all > correct points > > > I dont know whether this is the correct solution but it has worked in my > case. > > Cheers > > Christian > > > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Wiic-Users mailing list > Wii...@li... > https://lists.sourceforge.net/lists/listinfo/wiic-users -- Gabriele Randelli Dipartimento di Informatica e Sistemistica Sapienza Università di Roma Via Ariosto 25, 00185 ROMA, Italy Tel: +39 06 7727 4003 Web: http://www.dis.uniroma1.it/~randelli E-mail: ran...@di... |