Commits

Leigh Honeywell committed 018a243

latest hat iteration

  • Participants
  • Parent commits c0b365b

Comments (0)

Files changed (1)

   if(heading == 0) {
     buzzerness = 255;
   } else if(heading <= buzzerlim) {
-    buzzerness = (int)((buzzerlim - heading)/buzzerlim * 255.0);
+    buzzerness = (int)((buzzerlim - heading)/buzzerlim * 65.0) + 190;
   } else if(negheading <= buzzerlim) {
-    buzzerness = (int)((buzzerlim - negheading)/buzzerlim * 255.0);
+    buzzerness = (int)((buzzerlim - negheading)/buzzerlim * 65.0) + 190;
   }
   
   analogWrite(buzzerPin, buzzerness);