Skip to content

Commit

Permalink
fixed compilation error for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tmori committed Dec 16, 2024
1 parent fb48028 commit 36127a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drone_control/common/include/frame_types.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#ifndef _FRAME_TYPES_HPP_
#define _FRAME_TYPES_HPP_

#include "drone_physics_osdep.h"
#ifdef _WIN32
#define _USE_MATH_DEFINES
#include <cmath>
#endif

// M_PI を使えるようになります
#define DEGREE2RADIAN(v) ( (v) * M_PI / (180.0) )
#define RADIAN2DEGREE(v) ( (180.0 * (v)) / M_PI )
#define RPM2EULER_RATE(v) ( ((v) * 2 * M_PI) / 60.0 )
Expand Down

0 comments on commit 36127a7

Please sign in to comment.