mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-08 18:52:46 +08:00
add definition of MAX_RAND
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <px4_defines.h>
|
||||
#include <assert.h>
|
||||
#include <time.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -146,6 +146,8 @@ __END_DECLS
|
||||
#define OK 0
|
||||
#define ERROR -1
|
||||
|
||||
#define MAX_RAND 32767
|
||||
|
||||
#if defined(__PX4_QURT)
|
||||
#define M_PI 3.14159265358979323846
|
||||
#define M_PI_2 1.57079632679489661923
|
||||
@@ -209,6 +211,7 @@ __END_DECLS
|
||||
#define fminf(x, y) ((x) > (y) ? y : x)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user