Defines | Functions
ardrone_driver.cpp File Reference
#include "ardrone_driver.h"
#include "teleop_twist.h"
#include "video.h"
#include <signal.h>
#include <config_keys.h>
#include "NavdataMessageDefinitions.h"
Include dependency graph for ardrone_driver.cpp:

Go to the source code of this file.

Defines

#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 NAVDATA_STRUCTS_SOURCE
#define SEND_PARAM_NUM(NAME, CATEGORY, DEFAULT)
#define SEND_PARAM_STR(NAME, CATEGORY, DEFAULT)

Functions

void controlCHandler (int signal)
int main (int argc, char **argv)

Define 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) }
#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) }

Definition at line 766 of file ardrone_driver.cpp.

#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);    \
        }                                                                                                  \
    }
#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);     \
        }                                                                                                  \
    }

Function Documentation

void controlCHandler ( int  signal)

Definition at line 793 of file ardrone_driver.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 803 of file ardrone_driver.cpp.



ardrone_autonomy
Author(s): Mani Monajjemi
autogenerated on Mon Jan 6 2014 11:03:00