Bläddra i källkod

fix: 增加cmath头文件

CN\guohui27 2 år sedan
förälder
incheckning
91bf20ed28
2 ändrade filer med 2 tillägg och 0 borttagningar
  1. 1 0
      unit_test/test_cursample_calib.cpp
  2. 1 0
      unit_test/test_torqobs.cpp

+ 1 - 0
unit_test/test_cursample_calib.cpp

@@ -4,6 +4,7 @@
 #include <tuple>
 #include "scope.h"
 #include "test_user.h"
+#include <cmath>
 
 class CurSampleCalibTest : public testing::Test
 {

+ 1 - 0
unit_test/test_torqobs.cpp

@@ -6,6 +6,7 @@
 #include "test_user.h"
 #include "PmsmSimUt.h"
 #include "motor_sim_helper.h"
+#include <cmath>
 
 class TorqObsTest : public testing::Test
 {