mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-10-01 03:43:46 +08:00
Fix orientation in map (#21863)
* fix calibrated orientation * update ref * cleaner * update ref * master * update again * update ref again again * actually compiled this tim,e old-commit-hash: e0087fc313b4032532e3736a4be2b07510a0c9bf
This commit is contained in:
@@ -129,7 +129,7 @@ void MapWindow::timerUpdate() {
|
||||
|
||||
if (localizer_valid) {
|
||||
auto pos = location.getPositionGeodetic();
|
||||
auto orientation = location.getOrientationNED();
|
||||
auto orientation = location.getCalibratedOrientationNED();
|
||||
|
||||
float velocity = location.getVelocityCalibrated().getValue()[0];
|
||||
float bearing = RAD2DEG(orientation.getValue()[2]);
|
||||
|
||||
@@ -17,7 +17,7 @@ QMapbox::CoordinatesCollections model_to_collection(
|
||||
|
||||
Eigen::Vector3d ecef(positionECEF.getValue()[0], positionECEF.getValue()[1], positionECEF.getValue()[2]);
|
||||
Eigen::Vector3d orient(calibratedOrientationECEF.getValue()[0], calibratedOrientationECEF.getValue()[1], calibratedOrientationECEF.getValue()[2]);
|
||||
Eigen::Matrix3d ecef_from_local = euler2rot(orient).transpose();
|
||||
Eigen::Matrix3d ecef_from_local = euler2rot(orient);
|
||||
|
||||
QMapbox::Coordinates coordinates;
|
||||
auto x = line.getX();
|
||||
|
||||
Reference in New Issue
Block a user