Defines

hokuyo.h File Reference

#include <math.h>
#include <robottype.h>
Include dependency graph for hokuyo.h:
This graph shows which files directly or indirectly include this file:

Defines

#define HOKUYO_ARRAY_SIZE   (sizeof(((struct hokuyo_scan_type*)0)->data) / sizeof(((struct hokuyo_scan_type*)0)->data[0]))
#define HOKUYO_SPLIT_DIVISION   1024
#define HOKUYO_INITIAL_MEASUREMENT   44
#define HOKUYO_FINAL_MEASUREMENT   725
#define HOKUYO_START_ANGLE   (239.77/2)
#define HOKUYO_INDEX_TO_DEG(x)   (HOKUYO_START_ANGLE-(x)*360.0/HOKUYO_SPLIT_DIVISION)
#define HOKUYO_INDEX_TO_RAD(x)   (HOKUYO_INDEX_TO_DEG(x)/180.0*M_PI)
#define HOKUYO_DEG_TO_INDEX(d)   ((HOKUYO_START_ANGLE-(d))/(360.0/HOKUYO_SPLIT_DIVISION))

Define Documentation

#define HOKUYO_ARRAY_SIZE   (sizeof(((struct hokuyo_scan_type*)0)->data) / sizeof(((struct hokuyo_scan_type*)0)->data[0]))
#define HOKUYO_DEG_TO_INDEX (   d  )     ((HOKUYO_START_ANGLE-(d))/(360.0/HOKUYO_SPLIT_DIVISION))
#define HOKUYO_FINAL_MEASUREMENT   725
#define HOKUYO_INDEX_TO_DEG (   x  )     (HOKUYO_START_ANGLE-(x)*360.0/HOKUYO_SPLIT_DIVISION)
#define HOKUYO_INDEX_TO_RAD (   x  )     (HOKUYO_INDEX_TO_DEG(x)/180.0*M_PI)
#define HOKUYO_INITIAL_MEASUREMENT   44
#define HOKUYO_SPLIT_DIVISION   1024
#define HOKUYO_START_ANGLE   (239.77/2)