Show result of angle conversion
- Author
- Satofumi KAMIMURA
- Id:
- sync_time_stamp.c,v 799c195d046c 2011/01/14 05:10:38 hokuyo
#include "open_urg_sensor.h"
#include <stdio.h>
int main(int argc, char *argv[])
{
int min_step;
int max_step;
if (open_urg_sensor(&urg, argc, argv) < 0) {
return 1;
}
printf(
"urg_step2deg(%d): %f\n", min_step,
urg_step2deg(&urg, min_step));
printf(
"urg_step2deg(%d): %f\n", max_step,
urg_step2deg(&urg, max_step));
printf(
"urg_step2rad(%d): %f\n", min_step,
urg_step2rad(&urg, min_step));
printf(
"urg_step2rad(%d): %f\n", max_step,
urg_step2rad(&urg, max_step));
return 0;
}