History

Let's use a fixed vector for the camera position so that the target doesn't move with lean.

Andrzej Kapolka committed 13 years ago

Commit 648aacb1 parent 70c5a946 files · +22 −5Browse files

Showing the changes to interface/src/SerialInterface.cpp (1 of 6 files). Show all

Unified · Split

interface/src/SerialInterface.cpp+2−2
@@ -296,8 +296,8 @@ void SerialInterface::readData(float deltaTime) { · 295 unmodified lines
296296 _estimatedAcceleration = estimatedRotation * _estimatedAcceleration;
297297
298298 // Update estimated position and velocity
299− float const DECAY_VELOCITY = 0.95f;
300− float const DECAY_POSITION = 0.95f;
299+ float const DECAY_VELOCITY = 0.975f;
300+ float const DECAY_POSITION = 0.975f;
301301 _estimatedVelocity += deltaTime * _estimatedAcceleration;
302302 _estimatedPosition += deltaTime * _estimatedVelocity;
303303 _estimatedVelocity *= DECAY_VELOCITY;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t