~vibhavp/ubuntu/saucy/urg/merge-from-debian

« back to all changes in this revision

Viewing changes to samples/c/md_scan.c

  • Committer: Bazaar Package Importer
  • Author(s): Albert Huang
  • Date: 2011-05-20 11:33:03 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110520113303-u8niofzwzcea0osk
Tags: 0.8.12-1
* New upstream release (closes: #624987)
* Add debian/watch file
* Bump standards-version to 3.9.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
  \author Satofumi KAMIMURA
9
9
 
10
 
  $Id: md_scan.c 1684 2010-02-10 23:56:38Z satofumi $
 
10
  $Id: md_scan.c 1950 2011-05-07 08:18:39Z satofumi $
11
11
*/
12
12
 
13
13
#include "urg_ctrl.h"
14
 
#include "delay.h"
 
14
#include "urg_delay.h"
15
15
#include <stdio.h>
16
16
#include <stdlib.h>
17
17
#include <assert.h>
47
47
  int timestamp = -1;
48
48
  int previous_timestamp;
49
49
  int remain_times;
50
 
  int scan_msec;
 
50
  //int scan_msec;
51
51
  urg_parameter_t parameter;
52
52
  int ret;
53
53
  int n;
54
54
  int i;
 
55
  urg_t urg;
55
56
 
56
57
  /* Connection */
57
 
  urg_t urg;
 
58
  urg_initialize(&urg);
58
59
  ret = urg_connect(&urg, device, 115200);
59
60
  if (ret < 0) {
60
61
    urg_exit(&urg, "urg_connect()");
70
71
    exit(1);
71
72
  }
72
73
  urg_parameters(&urg, &parameter);
73
 
  scan_msec = urg_scanMsec(&urg);
 
74
  //scan_msec = urg_scanMsec(&urg);
74
75
 
75
76
  /* Request for MD data */
76
77
  /* To get data continuously for more than 100 times, set capture times equal