clbarnes / pixybattle

https://github.com/WomensCodingCircle/pixybattle.git
0 stars 1 forks source link

Get list of blocks from full pan sweep #24

Closed clbarnes closed 7 years ago

clbarnes commented 7 years ago

I think it would be great to convert the weird pan units (0-1000) into degrees azimuth (-60 to 60) so that it's more sensible for other people looking in. You need to be able to convert degrees back into the weird pan units, too (int((degrees + 60) / 120 * 1000)).

You could also convert the block locations/sizes etc. into degrees, and then subtract the camera pan from the locations so that the location is in the whole field of view rather than just every single snapshot - you might need to do some averaging or something to figure out object permanence while panning.

I also think you should return something other than the weird blocks global because working in C arrays just isn't necessary - a tuple would be fine.

clbarnes commented 7 years ago

Also remember that the changes we made to your branch on the robot weren't added, committed or pushed with git!

zqwei commented 7 years ago

we decided to only return a single targeted object