pos-sys-cam: avoid infinite loop
when camera has not been seen for a whilepull/1/head
parent
23b285da14
commit
b7aca28332
|
@ -60,7 +60,7 @@ void PositionSysCamera::update(){
|
||||||
do{
|
do{
|
||||||
valid_data = getDataAtIndex_backwardsFromCurrent(i);
|
valid_data = getDataAtIndex_backwardsFromCurrent(i);
|
||||||
i++;
|
i++;
|
||||||
}while(!valid_data.ySeen && !valid_data.bSeen);
|
}while(!valid_data.ySeen && !valid_data.bSeen && i < dim);
|
||||||
|
|
||||||
if(valid_data.ySeen || valid_data.bSeen){
|
if(valid_data.ySeen || valid_data.bSeen){
|
||||||
posx = valid_data.posx;
|
posx = valid_data.posx;
|
||||||
|
|
Loading…
Reference in New Issue