Macros
snippet_configure_drone.h File Reference
#include <config_keys.h>
#include <ardrone_autonomy/NavdataMessageDefinitions.h>
Include dependency graph for snippet_configure_drone.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ARDRONE_CONFIG_KEY_IMM_a10(KEY, NAME, INI_TYPE, C_TYPE, C_TYPE_PTR, RW, RW_CUSTOM, DEFAULT, CALLBACK, CATEGORY)   { if(0!=strcmp(KEY,"custom") && CATEGORY==CAT_COMMON && ((RW & K_WRITE) != 0 || (RW_CUSTOM & K_WRITE) != 0)) SEND_PARAM_NUM(NAME,CATEGORY,DEFAULT) }
 
#define ARDRONE_CONFIG_KEY_IMM_a10(KEY, NAME, INI_TYPE, C_TYPE, C_TYPE_PTR, RW, RW_CUSTOM, DEFAULT, CALLBACK, CATEGORY)   { if(0!=strcmp(KEY,"custom") && CATEGORY!=CAT_COMMON && ((RW & K_WRITE) != 0 || (RW_CUSTOM & K_WRITE) != 0)) SEND_PARAM_NUM(NAME,CATEGORY,DEFAULT) }
 
#define ARDRONE_CONFIG_KEY_REF_a10(KEY, NAME, INI_TYPE, C_TYPE, C_TYPE_PTR, RW, RW_CUSTOM, DEFAULT, CALLBACK, CATEGORY)
 
#define ARDRONE_CONFIG_KEY_STR_a10(KEY, NAME, INI_TYPE, C_TYPE, C_TYPE_PTR, RW, RW_CUSTOM, DEFAULT, CALLBACK, CATEGORY)   { if(0!=strcmp(KEY,"custom") && CATEGORY==CAT_COMMON && ((RW & K_WRITE) != 0 || (RW_CUSTOM & K_WRITE) != 0)) SEND_PARAM_STR(NAME,CATEGORY,DEFAULT) }
 
#define ARDRONE_CONFIG_KEY_STR_a10(KEY, NAME, INI_TYPE, C_TYPE, C_TYPE_PTR, RW, RW_CUSTOM, DEFAULT, CALLBACK, CATEGORY)   { if(0!=strcmp(KEY,"custom") && CATEGORY!=CAT_COMMON && ((RW & K_WRITE) != 0 || (RW_CUSTOM & K_WRITE) != 0)) SEND_PARAM_STR(NAME,CATEGORY,DEFAULT) }
 
#define NAVDATA_STRUCTS_INITIALIZE
 
#define SEND_PARAM_NUM(NAME, CATEGORY, DEFAULT)
 
#define SEND_PARAM_STR(NAME, CATEGORY, DEFAULT)
 

Macro Definition Documentation

#define ARDRONE_CONFIG_KEY_IMM_a10 (   KEY,
  NAME,
  INI_TYPE,
  C_TYPE,
  C_TYPE_PTR,
  RW,
  RW_CUSTOM,
  DEFAULT,
  CALLBACK,
  CATEGORY 
)    { if(0!=strcmp(KEY,"custom") && CATEGORY==CAT_COMMON && ((RW & K_WRITE) != 0 || (RW_CUSTOM & K_WRITE) != 0)) SEND_PARAM_NUM(NAME,CATEGORY,DEFAULT) }

Definition at line 42 of file snippet_configure_drone.h.

#define ARDRONE_CONFIG_KEY_IMM_a10 (   KEY,
  NAME,
  INI_TYPE,
  C_TYPE,
  C_TYPE_PTR,
  RW,
  RW_CUSTOM,
  DEFAULT,
  CALLBACK,
  CATEGORY 
)    { if(0!=strcmp(KEY,"custom") && CATEGORY!=CAT_COMMON && ((RW & K_WRITE) != 0 || (RW_CUSTOM & K_WRITE) != 0)) SEND_PARAM_NUM(NAME,CATEGORY,DEFAULT) }

Definition at line 42 of file snippet_configure_drone.h.

#define ARDRONE_CONFIG_KEY_REF_a10 (   KEY,
  NAME,
  INI_TYPE,
  C_TYPE,
  C_TYPE_PTR,
  RW,
  RW_CUSTOM,
  DEFAULT,
  CALLBACK,
  CATEGORY 
)

Definition at line 31 of file snippet_configure_drone.h.

#define ARDRONE_CONFIG_KEY_STR_a10 (   KEY,
  NAME,
  INI_TYPE,
  C_TYPE,
  C_TYPE_PTR,
  RW,
  RW_CUSTOM,
  DEFAULT,
  CALLBACK,
  CATEGORY 
)    { if(0!=strcmp(KEY,"custom") && CATEGORY==CAT_COMMON && ((RW & K_WRITE) != 0 || (RW_CUSTOM & K_WRITE) != 0)) SEND_PARAM_STR(NAME,CATEGORY,DEFAULT) }

Definition at line 43 of file snippet_configure_drone.h.

#define ARDRONE_CONFIG_KEY_STR_a10 (   KEY,
  NAME,
  INI_TYPE,
  C_TYPE,
  C_TYPE_PTR,
  RW,
  RW_CUSTOM,
  DEFAULT,
  CALLBACK,
  CATEGORY 
)    { if(0!=strcmp(KEY,"custom") && CATEGORY!=CAT_COMMON && ((RW & K_WRITE) != 0 || (RW_CUSTOM & K_WRITE) != 0)) SEND_PARAM_STR(NAME,CATEGORY,DEFAULT) }

Definition at line 43 of file snippet_configure_drone.h.

#define NAVDATA_STRUCTS_INITIALIZE

Definition at line 54 of file snippet_configure_drone.h.

#define SEND_PARAM_NUM (   NAME,
  CATEGORY,
  DEFAULT 
)
Value:
{ \
if(ardrone_application_default_config.NAME!=DEFAULT) \
{ \
ROS_INFO(" SEND: "#CATEGORY"/"#NAME" = %f (DEFAULT = %f)", (float)ardrone_application_default_config.NAME, (float)DEFAULT); \
ARDRONE_TOOL_CONFIGURATION_ADDEVENT (NAME, &ardrone_application_default_config.NAME, NULL); \
} \
}
ARDRONE_TOOL_CONFIGURATION_ADDEVENT(profile_id, buffer, NULL)

Definition at line 12 of file snippet_configure_drone.h.

#define SEND_PARAM_STR (   NAME,
  CATEGORY,
  DEFAULT 
)
Value:
{ \
if(0!=strcmp(ardrone_application_default_config.NAME,DEFAULT)) \
{ \
ROS_INFO("SEND: "#CATEGORY"/"#NAME" = %s (DEFAULT = %s)", ardrone_application_default_config.NAME, DEFAULT); \
ARDRONE_TOOL_CONFIGURATION_ADDEVENT (NAME, ardrone_application_default_config.NAME, NULL); \
} \
}
ARDRONE_TOOL_CONFIGURATION_ADDEVENT(profile_id, buffer, NULL)

Definition at line 21 of file snippet_configure_drone.h.



ardrone_autonomy
Author(s): Mani Monajjemi, Mani Monajjemi
autogenerated on Mon Jun 10 2019 12:39:49