[Positioner] EvAAL: fix AOI printing
The AOI (Area Of Interest) number must be printed only if greater than zero.
This commit is contained in:
parent
db63c88a45
commit
307da87760
|
@ -94,8 +94,12 @@ void OutputTCPSocketEvAAL::write(const Result &result)
|
||||||
<< "OwlPS "
|
<< "OwlPS "
|
||||||
<< position.get_x() << ' '
|
<< position.get_x() << ' '
|
||||||
<< position.get_y() << ' '
|
<< position.get_y() << ' '
|
||||||
<< static_cast<uint64_t>(request_time) << ' '
|
<< static_cast<uint64_t>(request_time) << ' ' ;
|
||||||
<< area_of_interest << '\n' ;
|
|
||||||
|
if (area_of_interest > 0)
|
||||||
|
str << area_of_interest ;
|
||||||
|
|
||||||
|
str << '\n' ;
|
||||||
|
|
||||||
if (send_data(str.str()))
|
if (send_data(str.str()))
|
||||||
acknowledge() ;
|
acknowledge() ;
|
||||||
|
|
Loading…
Reference in New Issue