Skip to content

Commit

Permalink
clang compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sytelus committed Aug 4, 2017
1 parent 7ba29d2 commit 5c8523e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,29 +43,29 @@ class AirSimSimpleFlightEstimator : public simple_flight::IStateEstimator {
return conv;
}

virtual simple_flight::Axis3r getPosition() const
virtual simple_flight::Axis3r getPosition() const override
{
return AirSimSimpleFlightCommon::vector3rToAxis3r(kinematics_->pose.position);
}

virtual simple_flight::Axis3r transformToBodyFrame(const simple_flight::Axis3r& world_frame_val) const
virtual simple_flight::Axis3r transformToBodyFrame(const simple_flight::Axis3r& world_frame_val) const override
{
const Vector3r& vec = AirSimSimpleFlightCommon::axis3rToVector3r(world_frame_val);
const Vector3r& trans = VectorMath::transformToBodyFrame(vec, kinematics_->pose.orientation);
return AirSimSimpleFlightCommon::vector3rToAxis3r(trans);
}

virtual simple_flight::Axis3r getLinearVelocity() const
virtual simple_flight::Axis3r getLinearVelocity() const override
{
return AirSimSimpleFlightCommon::vector3rToAxis3r(kinematics_->twist.linear);
}

virtual simple_flight::Axis4r getOrientation() const
virtual simple_flight::Axis4r getOrientation() const override
{
return AirSimSimpleFlightCommon::quaternion3rToAxis4r(kinematics_->pose.orientation);
}

virtual simple_flight::GeoPoint getGeoPoint() const
virtual simple_flight::GeoPoint getGeoPoint() const override
{
const auto& geo_point = environment_->getState().geo_point;
simple_flight::GeoPoint conv;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class OffboardApi :
return *state_estimator_;
}

virtual GeoPoint getHomePoint() const
virtual GeoPoint getHomePoint() const override
{
return vehicle_state_.getHomePoint();
}
Expand Down

0 comments on commit 5c8523e

Please sign in to comment.