Skip to content

Commit

Permalink
Minor style change.
Browse files Browse the repository at this point in the history
  • Loading branch information
ilpincy committed Oct 12, 2019
1 parent 085b308 commit 9793847
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ namespace argos {
m_fCurrentVelocity[LEFT_WHEEL] = f_left_velocity * 0.01;
m_fCurrentVelocity[RIGHT_WHEEL] = f_right_velocity * 0.01;
/* Apply noise only if the robot is in motion (at least one of the wheels is moving)*/
if( (m_pcRNG) && ( (f_left_velocity!=0) || (f_right_velocity!=0) ) ) {
if( m_pcRNG &&
((f_left_velocity != 0) ||
(f_right_velocity != 0) )) {
ADD_NOISE(LEFT);
ADD_NOISE(RIGHT);
}
Expand Down

0 comments on commit 9793847

Please sign in to comment.