woensdag 18 mei 2011

Mapping Mars

We've written a program which by keeping track of the light and rotation sensor readings can make a map of the surface of Mars. The map consists of 6 columns of 96 integers. Since one integer has a size of 16 bits, we can store by using bit shifting 16 booleans in one integer, thus creating a bitmap of 96 by 96 bits. One bit corresponds to a surface on Mars of 5 by 5 cm. A 1 on the map corresponds to ground while a 0 corresponds to an edge.

Geen opmerkingen:

Een reactie posten