Joe Shotton / Mbed 2 deprecated ELEC2645_Project_ll16j23s

Dependencies:   mbed ll16j23s_test_docs

Revision:
6:6c9453397f4a
Parent:
5:06fa7674622a
Child:
7:dd84e0fab346
diff -r 06fa7674622a -r 6c9453397f4a Food/Food.cpp
--- a/Food/Food.cpp	Sat May 23 17:16:44 2020 +0000
+++ b/Food/Food.cpp	Sat May 23 20:01:00 2020 +0000
@@ -6,7 +6,6 @@
     _x = 22; // starts off-screen
     _y = 30;
     _frame = 0; 
-    srand(3); //CHANGE THIS TO ACCELERAOMETRE VALUE
 }
 
 Food::~Food()
@@ -18,7 +17,7 @@
 {
     mag.init();
     Data _values = mag.get_values();
-    _seed = 10000*(_values.mx + _values.my + _values.mz);
+    _seed = 1000000*(_values.mx + _values.my + _values.mz);
     srand(_seed);
 }