Ben Evans / Mbed 2 deprecated Defender_Game

Dependencies:   mbed

Revision:
85:87bc28b151d8
Parent:
82:3211b31e9421
--- a/Map/Map_test.h	Tue May 26 14:39:45 2020 +0000
+++ b/Map/Map_test.h	Tue May 26 19:38:48 2020 +0000
@@ -2,19 +2,19 @@
 #define MAP_TEST_H
 
 /** Map Test
- * @brief Checks that the map moves to the correct x position depedning on 
+ * @brief Checks that the map moves to the correct x position depending on 
  * joystick input
  * @author Benjamin Evans, University of Leeds
  * @date April 2020
  * @return true if test are passed 
  */
 bool map_move_test(Direction d_, int expected_x_position) {
-    // Objects reqired for test
+    // Objects required for test
     Map map;
     N5110 lcd;
     Gamepad pad;
     
-    // Initialise map in start postion of -84,42
+    // Initialise map in start position of -84,42
     pad.init();
     map.init(pad); 
     
@@ -24,10 +24,10 @@
     // As can't rea pixel of the LCD
     map.draw_map(lcd, d_);
     
-    // Reads start postion of map drawn
+    // Reads start position of map drawn
     int map_start_draw_postion = map.get_position_x_map();
     
-    // Checks final position with espected
+    // Checks final position with expected
     if (map_start_draw_postion  == expected_x_position) {
         printf ( "Passed!\n");
         return true;
@@ -38,4 +38,4 @@
     }
 }
 
-#endif
\ No newline at end of file
+#endif