change timestamp to uint64 to fix #516
This commit is contained in:
parent
d7d776a0f3
commit
10789b9933
|
@ -89,7 +89,7 @@ func TestLeapMotionDriverParser(t *testing.T) {
|
||||||
t.Errorf("ParseFrame incorrectly parsed frame")
|
t.Errorf("ParseFrame incorrectly parsed frame")
|
||||||
}
|
}
|
||||||
|
|
||||||
gobottest.Assert(t, parsedFrame.Timestamp, 4729292670)
|
gobottest.Assert(t, parsedFrame.Timestamp, uint64(4729292670))
|
||||||
gobottest.Assert(t, parsedFrame.Hands[0].X(), 117.546)
|
gobottest.Assert(t, parsedFrame.Hands[0].X(), 117.546)
|
||||||
gobottest.Assert(t, parsedFrame.Hands[0].Y(), 236.007)
|
gobottest.Assert(t, parsedFrame.Hands[0].Y(), 236.007)
|
||||||
gobottest.Assert(t, parsedFrame.Hands[0].Z(), 76.3394)
|
gobottest.Assert(t, parsedFrame.Hands[0].Z(), 76.3394)
|
||||||
|
|
|
@ -66,7 +66,7 @@ type Frame struct {
|
||||||
R [][]float64 `json:"r"`
|
R [][]float64 `json:"r"`
|
||||||
S float64 `json:"s"`
|
S float64 `json:"s"`
|
||||||
T []float64 `json:"t"`
|
T []float64 `json:"t"`
|
||||||
Timestamp int `json:"timestamp"`
|
Timestamp uint64 `json:"timestamp"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// X returns hand x value
|
// X returns hand x value
|
||||||
|
|
Loading…
Reference in New Issue