Skip to content

Commit

Permalink
fixed compilation error for windows
Browse files Browse the repository at this point in the history
tmori committed Dec 17, 2024
1 parent 4174c7c commit efe1121
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions drone_control/common/include/frame_types.h
Original file line number Diff line number Diff line change
@@ -3,13 +3,11 @@

#ifdef WIN32
#define _USE_MATH_DEFINES
#endif
#include <cmath>
#else
#include <cmath>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
//#ifndef M_PI
//#define M_PI 3.14159265358979323846
//#endif

#define DEGREE2RADIAN(v) ( (v) * M_PI / (180.0) )
#define RADIAN2DEGREE(v) ( (180.0 * (v)) / M_PI )

0 comments on commit efe1121

Please sign in to comment.