Skip to content

Releases: einride/xsens-go

v0.9.2: Add generated mock packages

11 Sep 16:46
Compare
Choose a tag to compare
Go 1.13 module resolver looks at test packages and will fail if there
are empty packages.

v0.9.1: Add FixType enum

08 Aug 09:42
Compare
Choose a tag to compare
Improves readability of the FixType field of GNSSPVTData.

Output configuration support

11 Feb 20:52
Compare
Choose a tag to compare
Rewrite to support all possible output formats

This rewrite is meant to provide a number of improvements:

* Zero-allocation measurement data reading (using bufio.Scanner)
* Support for all output formats (Float32, FP1220, FP1632, Float64)
* Support for coordinate systems
* Support for programmatic output configuration
* CLI support for output configuration

The test suite relies partly on recorded data with different output
configurations. See `testdata/` for more info.

Reading mesaurements from a pre-configured device now has the API:

~~~go
port, err := serial.OpenPort(&serial.Config{
    Name:     portName,
    Baud:     xsens.DefaultSerialBaudRate,
    Size:     xsens.MinLengthOfMessage,
    StopBits: xsens.DefaultSerialStopBits,
})
if err != nil {
    panic(err)
}
defer func() {
    if err := port.Close(); err != nil {
        panic(err)
    }
}()
if err := port.Flush(); err != nil {
    panic(err)
}
sc := xsens.NewMessageScanner(port)
var d xsens.MeasurementData
for sc.Scan() {
    if sc.Message().Identifier() != xsens.MessageIdentifierMTData2 {
        continue
    }
    if err := d.UnmarshalMTData2(sc.Message()); err != nil {
        panic(err)
    }
    for _, id := range d.DataIdentifiers {
        // handle data type present in message
    }
}
if sc.Err() != nil {
      panic(sc.Err())
}
~~~

v0.8.1

12 Nov 11:22
Compare
Choose a tag to compare
Bump einride/build

v0.8.0

07 Nov 15:18
Compare
Choose a tag to compare
Rename package from xsensgo to xsens

First draft version

05 Nov 13:20
Compare
Choose a tag to compare
Clean up code for proper structure

Much of the code had legacy structure, this is the first commit
for ordering the package