ArDrone SDK 1.8 added
[mardrone] / mardrone / ARDrone_SDK_Version_1_8_20110726 / ARDroneLib / Soft / Common / ardrone_common_config.h
1 /**
2  *  \file     ardrone_common_config.h
3  *  \brief    Ardrone Specific data for configuration
4  *  \author   Sylvain Gaeremynck <sylvain.gaeremynck@parrot.com>
5  *  \version  1.0
6  */
7
8 #ifndef _ARDRONE_COMMON_CONFIG_H_
9 #define _ARDRONE_COMMON_CONFIG_H_
10
11 #define CURRENT_NUM_VERSION_CONFIG  1
12
13 #define CAMIF_NUM_BUFFERS               2
14 #define COM_INPUT_LANDING_TIME          (2)         /* Time drone is waiting for input before landing */
15
16 /**
17  * \enum print_mask_t
18  * \brief mask to choose where to syslog
19 */
20 typedef enum {
21   UART_PRINT = 1,
22   WIFI_PRINT = 2,
23   FLASH_PRINT = 4
24 } print_mask_t;
25
26 /**
27  * \enum  ADC_COMMANDS
28  * \brief ADC commands.
29 */
30 typedef enum
31 {
32   ADC_CMD_STARTACQ                = 1,  /**< command to start acquisition with ADC                            **/
33   ADC_CMD_STOPACQ                 = 2,  /**< command to stop acquisition with ADC                             **/
34   ADC_CMD_RESYNC                  = 3,  /**< command to resync acquisition with ADC                           **/
35   ADC_CMD_TEST                    = 4,  /**< command to ADC send a test frame (123456)                        **/
36   ADC_CMD_VERSION                 = 5,  /**< command to ADC send his number : version (MSB) subversion (LSB)  **/
37   ADC_CMD_SELECT_ULTRASOUND_22Hz  = 7,  /**set the ultrasound at 22,22Hz                                      **/
38   ADC_CMD_SELECT_ULTRASOUND_25Hz  = 8,  /**set the ultrasound at 25Hz                                         **/
39   ADC_CMD_SEND_CALIBRE            = 13, /**command to ADC to send the calibration                             **/
40   ADC_CMD_RECEVED_CALIBRE         = 14, /**command to ADC to receved a new calibration                        **/
41   ADC_CMD_GET_HARD_VERSION        = 15, /**get the hard version of the navboard                               **/
42   ADC_CMD_ACTIVE_SEPARATION       = 16, /**enabled the separation of sources ultrasound                       **/
43   ADC_CMD_STOP_SEPARATION         = 17, /**disables the ultrasound source separation                          **/
44   ADC_CMD_RECEVED_PROD            = 18, /**command to ADC to receved the prod data                            **/
45   ADC_CMD_SEND_PROD               = 19, /**command to ADC to send the prod data                               **/
46   ADC_CMD_ACTIVE_ETALONAGE        = 20, /**command to ADC to send PWM ultrasond in continue                   **/
47   ADC_CMD_ACTIVE_ULTRASON         = 21, /**command to ADC to stop send PWM ultrasond in continue              **/
48   ADC_CMD_ACTIVE_TEST_ULTRASON    = 22, /**teste de la perturbation de l'ultrason par le wifi                 **/
49 } ADC_COMMANDS;
50
51
52 #endif // _ARDRONE_COMMON_CONFIG_H_