1.2 KiB
title | html_title | slug |
---|---|---|
The Code | The Code | SR2015 | 2015/code |
The code used for this competition was by far the most complicated and advanced code ever written by a Collyer's team.
The main change between any other year was a co-ordinate based movement system. Any input taken in from the camera was converted to co-ordinates, so we could plot our movement more accurately and allow for any immovable objects such as the internal walls.
The addition of this coordinate system allowed us to create the killer feature of this year, the position correction code. This code allowed us to automatically correct our position after we scanned for a marker, so we could allow for the motors not moving us exact distances.
Other features
- Arc movement
- Distance based movement
- Pre-start calibration
- move 'til touch
- Camera rotation
So, where is it?
Unfortunately, due to the number of features, we have decided to keep the source internal. A lot of blood, sweat and tears (not literally) went into writing this code, and it would be a shame if that were to be used to help any of our opponents.
You can however see the code from some of our other years on our GitHub organisation.