Browse Source

AP_Math: fixed build of Sub with ChibiOS

mission-4.1.18
Andrew Tridgell 7 years ago
parent
commit
f5b24a3838
  1. 1
      libraries/AP_Math/AP_Math.cpp
  2. 2
      libraries/AP_Math/vector2.cpp

1
libraries/AP_Math/AP_Math.cpp

@ -33,6 +33,7 @@ is_equal(const Arithmetic1 v_1, const Arithmetic2 v_2)
template bool is_equal<int>(const int v_1, const int v_2); template bool is_equal<int>(const int v_1, const int v_2);
template bool is_equal<short>(const short v_1, const short v_2); template bool is_equal<short>(const short v_1, const short v_2);
template bool is_equal<long>(const long v_1, const long v_2);
template bool is_equal<float>(const float v_1, const float v_2); template bool is_equal<float>(const float v_1, const float v_2);
template bool is_equal<double>(const double v_1, const double v_2); template bool is_equal<double>(const double v_1, const double v_2);

2
libraries/AP_Math/vector2.cpp

@ -159,5 +159,7 @@ template bool Vector2<float>::is_nan(void) const;
template bool Vector2<float>::is_inf(void) const; template bool Vector2<float>::is_inf(void) const;
template float Vector2<float>::angle(const Vector2<float> &v) const; template float Vector2<float>::angle(const Vector2<float> &v) const;
template bool Vector2<long>::operator ==(const Vector2<long> &v) const;
// define for int // define for int
template bool Vector2<int>::operator ==(const Vector2<int> &v) const; template bool Vector2<int>::operator ==(const Vector2<int> &v) const;

Loading…
Cancel
Save