Firmware
Macros
px4_defines.h File Reference

Generally used magic defines. More...

#include <px4_log.h>

Go to the source code of this file.

Macros

#define PX4_PARAM_DEFAULT_VALUE_NAME(_name)   PARAM_##_name##_DEFAULT
 
#define PX4_PARAM_DEFINE_INT32(_name)   PARAM_DEFINE_INT32(_name, PX4_PARAM_DEFAULT_VALUE_NAME(_name))
 
#define PX4_PARAM_DEFINE_FLOAT(_name)   PARAM_DEFINE_FLOAT(_name, PX4_PARAM_DEFAULT_VALUE_NAME(_name))
 
#define PX4_ERROR   (-1)
 
#define PX4_OK   0
 
#define PX4_ARRAY2D(_array, _ncols, _x, _y)   (_array[_x * _ncols + _y])
 
#define PX4_R(_array, _x, _y)   PX4_ARRAY2D(_array, 3, _x, _y)
 

Detailed Description

Generally used magic defines.