ref #39 #40 moved all stuff left in KLib into Indoor. We are now able to perform localization without the need of KLib. Only K::Gnuplot is needed for drawing, but this will be separated into an own project in the future
This commit is contained in:
@@ -36,7 +36,7 @@ struct MagnetometerData {
|
||||
}
|
||||
|
||||
float magnitude() const {
|
||||
return std::sqrt( x*x + y*y + z*z );
|
||||
return std::sqrt( x*x + y*y + z*z );
|
||||
}
|
||||
|
||||
MagnetometerData& operator += (const MagnetometerData& o) {
|
||||
@@ -73,9 +73,9 @@ private:
|
||||
};
|
||||
|
||||
namespace std {
|
||||
MagnetometerData sqrt(const MagnetometerData& o) {
|
||||
return MagnetometerData(std::sqrt(o.x), std::sqrt(o.y), std::sqrt(o.z));
|
||||
}
|
||||
inline MagnetometerData sqrt(const MagnetometerData& o) {
|
||||
return MagnetometerData(std::sqrt(o.x), std::sqrt(o.y), std::sqrt(o.z));
|
||||
}
|
||||
}
|
||||
|
||||
#endif // INDOOR_IMU_MAGNETOMETERDATA_H
|
||||
|
||||
Reference in New Issue
Block a user