Changeset 768 for code/branches/FICN/src/orxonox/SpaceshipSteering.cc
- Timestamp:
- Dec 31, 2007, 4:25:06 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/SpaceshipSteering.cc
r742 r768 104 104 if(speedRotateUpDown_ < 0) 105 105 speedRotateUpDown_ += accelerationRotateUpDown_*time; 106 if( abs(speedRotateUpDown_)<accelerationRotateUpDown_*time)106 if(fabsf(speedRotateUpDown_)<accelerationRotateUpDown_*time) 107 107 speedRotateUpDown_ = 0; 108 108 } … … 128 128 if(speedRotateRightLeft_ < 0) 129 129 speedRotateRightLeft_ += accelerationRotateRightLeft_*time; 130 if( abs(speedRotateRightLeft_)<accelerationRotateRightLeft_*time)130 if(fabsf(speedRotateRightLeft_)<accelerationRotateRightLeft_*time) 131 131 speedRotateRightLeft_ = 0; 132 132 } … … 152 152 if(speedLoopRightLeft_ < 0) 153 153 speedLoopRightLeft_ += accelerationLoopRightLeft_*time; 154 if( abs(speedLoopRightLeft_)<accelerationLoopRightLeft_*time)154 if(fabsf(speedLoopRightLeft_)<accelerationLoopRightLeft_*time) 155 155 speedLoopRightLeft_ = 0; 156 156 }
Note: See TracChangeset
for help on using the changeset viewer.