Fix for hack that worked around iOS app
Diff: Actuator_Waveforms.cpp
- Revision:
- 5:c9d71618070d
- Parent:
- 4:d3858592d3b5
--- 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