24 lines
1.2 KiB
Markdown
24 lines
1.2 KiB
Markdown
---
|
|
title: The Code
|
|
html_title: The Code | SR2015
|
|
slug: 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](https://github.com/SR-CLY).
|