Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 31, 2007, 4:25:06 PM (17 years ago)
Author:
nicolasc
Message:

merged FICN_test back to FICN

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/SpaceshipSteering.cc

    r742 r768  
    104104      if(speedRotateUpDown_ < 0)
    105105        speedRotateUpDown_ += accelerationRotateUpDown_*time;
    106       if(abs(speedRotateUpDown_)<accelerationRotateUpDown_*time)
     106      if(fabsf(speedRotateUpDown_)<accelerationRotateUpDown_*time)
    107107        speedRotateUpDown_ = 0;
    108108    }
     
    128128      if(speedRotateRightLeft_ < 0)
    129129        speedRotateRightLeft_ += accelerationRotateRightLeft_*time;
    130       if(abs(speedRotateRightLeft_)<accelerationRotateRightLeft_*time)
     130      if(fabsf(speedRotateRightLeft_)<accelerationRotateRightLeft_*time)
    131131        speedRotateRightLeft_ = 0;
    132132    }
     
    152152      if(speedLoopRightLeft_ < 0)
    153153        speedLoopRightLeft_ += accelerationLoopRightLeft_*time;
    154       if(abs(speedLoopRightLeft_)<accelerationLoopRightLeft_*time)
     154      if(fabsf(speedLoopRightLeft_)<accelerationLoopRightLeft_*time)
    155155        speedLoopRightLeft_ = 0;
    156156    }
Note: See TracChangeset for help on using the changeset viewer.