Skip to content

Commit

Permalink
updated to SDK 1.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
kint.zhao committed Jun 2, 2016
1 parent ae4229c commit 3187e5e
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ Changelog for package rplidar_ros

Forthcoming
-----------
1.5.4 (2016-06-02)
------------------
* Release 1.5.4.
* Update RPLIDAR SDK to 1.5.4
* Support RPLIDAR A2
* Contributors: kint

1.5.2 (2016-04-29)
------------------
Expand Down
2 changes: 1 addition & 1 deletion package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package>
<name>rplidar_ros</name>
<version>1.5.2</version>
<version>1.5.4</version>
<description>The rplidar ros package
support rplidar and rplidar A2
</description>
Expand Down
2 changes: 1 addition & 1 deletion sdk/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ This folder contains RPLIDAR SDK source code which is provided by RoboPeak.

RoboPeak Website: http://www.robopeak.com
SlamTec HomePage: http://www.slamtec.com
RPLIDAR_SDK_VERSION: 1.5.2
RPLIDAR_SDK_VERSION: 1.5.4
Note: The SDK version may not up-to-date.
rplidar product: http://www.slamtec.com/en/Lidar
3 changes: 2 additions & 1 deletion sdk/src/arch/linux/net_serial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,11 @@ bool raw_serial::open(const char * portname, uint32_t baudrate, uint32_t flags)
return false;
}

_is_serial_opened = true;

//Clear the DTR bit to let the motor spin
clearDTR();

_is_serial_opened = true;
return true;
}

Expand Down
3 changes: 2 additions & 1 deletion sdk/src/arch/macOS/net_serial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,11 @@ bool raw_serial::open(const char * portname, uint32_t baudrate, uint32_t flags)
return false;
}

_is_serial_opened = true;

//Clear the DTR bit to let the motor spin
clearDTR();

_is_serial_opened = true;
return true;
}

Expand Down
7 changes: 4 additions & 3 deletions sdk/src/arch/win32/net_serial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ bool raw_serial::open(const char * portname, _u32 baudrate, _u32 flags)
return false;
}

//Clear the DTR bit to let the motor spin
clearDTR();

if (!SetCommTimeouts(_serial_handle, &_co))
{
close();
Expand All @@ -125,6 +122,10 @@ bool raw_serial::open(const char * portname, _u32 baudrate, _u32 flags)

Sleep(30);
_is_serial_opened = true;

//Clear the DTR bit set DTR=high
clearDTR();

return true;
}

Expand Down
3 changes: 3 additions & 0 deletions sdk/src/rplidar_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,9 @@ u_result RPlidarDriverSerialImpl::_cacheCapsuledScanData()
if (ans != RESULT_OPERATION_TIMEOUT && ans != RESULT_INVALID_DATA) {
_isScanning = false;
return RESULT_OPERATION_FAIL;
} else {
// current data is invalid, do not use it.
continue;
}
}

Expand Down

0 comments on commit 3187e5e

Please sign in to comment.