Ignore bad scans, add documentation.

This commit is contained in:
Piv
2020-09-22 21:41:10 +09:30
parent f5fde9a23c
commit be85d7d39e
2 changed files with 94 additions and 12 deletions

View File

@@ -20,7 +20,6 @@ func main() throws {
extension SerialPort: LidarSerial{
public func setBaudrate(baudrate: Int) {
// TODO: handle different baudrates. Only need this for now.
switch baudrate{
default:
setSettings(receiveRate: .baud115200, transmitRate: .baud115200, minimumBytesToRead: 3, timeout: 1)