Fix for hack that worked around iOS app

Files at this revision

API Documentation at this revision

Comitter:
roysandberg
Date:
Wed May 11 02:28:16 2016 +0000
Parent:
4:d3858592d3b5
Commit message:
Version with heart rate 30 second mode

Changed in this revision

Actuator_Waveforms.cpp Show annotated file Show diff for this revision Revisions of this file
Actuator_Waveforms.h Show annotated file Show diff for this revision Revisions of this file
--- a/Actuator_Waveforms.cpp	Thu Apr 07 23:54:15 2016 +0000
+++ b/Actuator_Waveforms.cpp	Wed May 11 02:28:16 2016 +0000
@@ -114,6 +114,24 @@
 };
 const Waveform lra_rampdown = {LRA_AUTOON,12,lra_rampdown_data};
 
+// reward pattern is ramp up plus 2 staccato buzzes
+const unsigned char lra_reward_pattern_data[] = {
+		0xFF, 0x02,   // ramp up
+		0x90, 0x15,
+		0xA0, 0x15,
+		0xB0, 0x10,
+		0xD0, 0x09,
+		LRA_AUTOON_MAX, 0x05,
+		0x00, 0x03,
+		LRA_AUTOON_MAX, 0x0D,  // click
+		0x80, 0x09,
+		LRA_AUTOON_MAX, 0x0D,  // click
+		0x80, 0x09
+};
+const Waveform lra_reward_pattern = {LRA_AUTOON,22,lra_reward_pattern_data};
+
+
+
 //--------------------------------------------------------//
 //LRA Standard Effects in Dumb Mode
 //Note: Using ERM mode to emulate dumb drive, so it must be scaled for 2Vrms
--- a/Actuator_Waveforms.h	Thu Apr 07 23:54:15 2016 +0000
+++ b/Actuator_Waveforms.h	Wed May 11 02:28:16 2016 +0000
@@ -31,6 +31,7 @@
 extern const Waveform lra_alert;
 extern const Waveform lra_rampup;
 extern const Waveform lra_rampdown;
+extern const Waveform lra_reward_pattern;
 
 //--------------------------------------------------------//
 //LRA Standard Effects in Dumb Mode