change timestamp to uint64 to fix #516

This commit is contained in:
Jaden Weiss 2018-05-18 19:49:02 -04:00
parent d7d776a0f3
commit 10789b9933
No known key found for this signature in database
GPG Key ID: 47D33FABE50962E0
2 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ func TestLeapMotionDriverParser(t *testing.T) {
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].Y(), 236.007)
gobottest.Assert(t, parsedFrame.Hands[0].Z(), 76.3394)

View File

@ -66,7 +66,7 @@ type Frame struct {
R [][]float64 `json:"r"`
S float64 `json:"s"`
T []float64 `json:"t"`
Timestamp int `json:"timestamp"`
Timestamp uint64 `json:"timestamp"`
}
// X returns hand x value