fixed two bugs in ActivityButterPressure:

1) when barometer produces false measurements, we needed some kind of upper boundary
2) coding error static.. while initializing this object over multiple test iterations isnt the best idea
This commit is contained in:
toni
2017-11-06 18:04:55 +01:00
parent 284c6b11a6
commit 3f8d21e146
4 changed files with 11 additions and 6 deletions

View File

@@ -48,6 +48,7 @@ public:
if (startNode.getType() == GridNode::TYPE_STAIR) {var *= 3;}
// adjust the state's heading using the control-data
//TODO: if motionaxis detects landscaping, do not do this!
state.heading.direction += ctrl->turnSinceLastTransition_rad + var;
//set kappa of mises