29 lines
1.0 KiB
C
29 lines
1.0 KiB
C
/**
|
|
******************************************************************************
|
|
* File Name : sonar.h
|
|
* Description : This file contains the common defines of the Extend
|
|
******************************************************************************
|
|
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
|
#ifndef __SONAR_DRIVER_H
|
|
#define __SONAR_DRIVER_H
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
#include <unistd.h>
|
|
#include <strings.h>
|
|
// #include <ros/ros.h>
|
|
// #include <sensor_msgs/Range.h>
|
|
#include "uart-ctrl.h"
|
|
|
|
/* Exported constants --------------------------------------------------------*/
|
|
|
|
/* Exported macro ------------------------------------------------------------*/
|
|
#define RX_BUFFER_MAX 10
|
|
#define TX_BUFFER_MAX 5
|
|
|
|
/* Exported types ------------------------------------------------------------*/
|
|
|
|
|
|
#endif // __SONAR_DRIVER_H
|
|
/* Exported functions ------------------------------------------------------- */
|
|
// unsigned int distance[4];
|