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

« back to all changes in this revision

Viewing changes to src/cpp/urg/ScipHandler.cpp

  • 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:
4
4
 
5
5
  \author Satofumi KAMIMURA
6
6
 
7
 
  $Id: ScipHandler.cpp 1705 2010-02-19 10:33:05Z satofumi $
 
7
  $Id: ScipHandler.cpp 1948 2011-04-19 09:59:29Z satofumi $
8
8
*/
9
9
 
10
10
#include "ScipHandler.h"
142
142
        char scip20_expected_response[] = { 0, -1 };
143
143
        if (! response(return_code, "SCIP2.0\n", scip20_expected_response)) {
144
144
          error_message_ =
145
 
            "SCIP1.1 protocol is not supported. Please update URG firmware, or reconnect after a few seconds.";
 
145
            "SCIP1.1 protocol is not supported. Please update URG firmware, or reconnect after a few seconds because sensor is booting.";
146
146
          return false;
147
147
        }
148
148
        laser_state_ = LaserOff;
202
202
    snprintf(send_buffer, 10, "SS%06ld\n", baudrate);
203
203
    int return_code = -1;
204
204
    // !!! ���ɐݒ�Ώۂ̃{�[���[�g�A�̏ꍇ�̖߂�l�� ss_expected... �ɒlj�����
205
 
    char ss_expected_response[] = { 0, 0x3, 0x4, -1 };
 
205
    char ss_expected_response[] = { 0, 0x3, 0x4, 0xf, -1 };
206
206
    if (! response(return_code, send_buffer, ss_expected_response)) {
207
207
      error_message_ = "Baudrate change fail.";
208
208
      return false;