| 131 | } |
| 132 | |
| 133 | void ImuAccVisual::updateDirection() |
| 134 | { |
| 135 | direction_ = raw_acc_; |
| 136 | if (derotated_ && quat_valid_) |
| 137 | { |
| 138 | direction_ = orientation_ * direction_; |
| 139 | } |
| 140 | |
| 141 | if (acc_vector_) |
| 142 | { |
| 143 | acc_vector_->setDirection(direction_); |
| 144 | acc_vector_->set(arrow_length_ * scale_, arrow_radius_ * scale_, |
| 145 | head_length_ * scale_, head_radius_ * scale_); |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | void ImuAccVisual::setScale(float scale) |
| 150 | { |
nothing calls this directly
no outgoing calls
no test coverage detected