Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Sensor Streaming + Locator tracking #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

abramhindle
Copy link

This adds simple and rudimentary sensor streaming and locator tracking.

A ball at rest

Locator Detected!{Xpos:129 Ypos:-168 Accel:100 Xvel:0 Yvel:0}
Locator Detected!{Xpos:129 Ypos:-168 Accel:100 Xvel:0 Yvel:0}
Collisions: 0
Trying to enable Collision Detection!
Trying to enable LOcator!
2014/09/08 00:24:43 Sending Data Streaming 260046848 Mask2
Locator Detected!{Xpos:129 Ypos:-168 Accel:100 Xvel:0 Yvel:0}
Locator Detected!{Xpos:129 Ypos:-168 Accel:100 Xvel:0 Yvel:0}

Then I kick it

Collision Detected!{X:1 Y:886 Z:0 Axis:2 XMagnitude:4 YMagnitude:33 Speed:0 Timestamp:4320702}
Collisions: 1
Locator Detected!{Xpos:126 Ypos:-177 Accel:176 Xvel:23 Yvel:-695}
Locator Detected!{Xpos:129 Ypos:-191 Accel:96 Xvel:-51 Yvel:-220}
Collisions: 1
Locator Detected!{Xpos:129 Ypos:-196 Accel:101 Xvel:0 Yvel:-31}
Locator Detected!{Xpos:129 Ypos:-197 Accel:100 Xvel:0 Yvel:0}
Collisions: 1
Locator Detected!{Xpos:129 Ypos:-197 Accel:101 Xvel:0 Yvel:0}
Locator Detected!{Xpos:129 Ypos:-198 Accel:143 Xvel:-37 Yvel:-110}
Collision Detected!{X:-810 Y:875 Z:0 Axis:2 XMagnitude:35 YMagnitude:40 Speed:0 Timestamp:4323470}
Collisions: 2
Locator Detected!{Xpos:130 Ypos:-175 Accel:82 Xvel:84 Yvel:98}
Locator Detected!{Xpos:130 Ypos:-175 Accel:100 Xvel:-5 Yvel:20}
Collisions: 2
Locator Detected!{Xpos:130 Ypos:-174 Accel:101 Xvel:0 Yvel:0}
Locator Detected!{Xpos:130 Ypos:-174 Accel:100 Xvel:0 Yvel:0}

@nathany
Copy link

nathany commented Sep 8, 2014

Woah! Very cool.

We should probably look at adding this stuff to hybridgroup/Gobot as this was just a temporary fork.

Some of my other changes aren't merged yet though. (Or even sent to them)

@nathany
Copy link

nathany commented Sep 9, 2014

I'll get my other changes into https://github.com/hybridgroup/gobot so that you can submit a pull request to their dev branch. Will let you know once it's in.

@nathany
Copy link

nathany commented Sep 10, 2014

Here's the collision struct. hybridgroup#105

I still haven't come up with a great solution for configuring the collision sensitivity (in terms of the API, due to having defaults). hybridgroup#90

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants