Skip to content

Commit

Permalink
update g4 reversion
Browse files Browse the repository at this point in the history
  • Loading branch information
yangfuyuan committed Jul 17, 2018
1 parent 94441c3 commit 3e38a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CYdLidar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ bool CYdLidar::doProcessSimple(LaserScan &outscan,LaserScan &syncscan, PointClo
for( ; i < count; i++) {
if ((nodes[i].distance_q) != 0) {
float angle = (float)((nodes[i].angle_q6_checkbit >> LIDAR_RESP_MEASUREMENT_ANGLE_SHIFT)/64.0f);
if(reversion&&m_Reversion){
if(reversion&&!m_Reversion){
angle=angle+180;
if(angle>=360){ angle=angle-360;}
nodes[i].angle_q6_checkbit = ((uint16_t)(angle * 64.0f)) << LIDAR_RESP_MEASUREMENT_ANGLE_SHIFT;
Expand Down

0 comments on commit 3e38a49

Please sign in to comment.