SLAA877 December 2018 MSP430FR2633
The default sensor sample rate, sensor timing and motion parameters in the example gesture software have been selected to provide good sensor response with the CAPT-BSWP board. Each sensor's gesture time and motion parameters are configurable and can be tuned for different gesture responsiveness. You are encouraged to experiment with the sensor gesture parameters and sample rate settings.
To change the sensor sampling rate, modify the g_uiApp data structure element found at the very end of the file CAPT_UserConfig.c as shown here. Keep in mind this file will be overwritten if updated from the CapTIvate Design Center.
.ui16ActiveModeScanPeriod = 10,
Build and reprogram the MSP430FR2633 target MCU.
To see how the gesture tuning process works,perform all the steps above to enable streaming the slider gesture data to the CapTIvate Design Center. While data is being displayed, perform a tap on the slider sensor. The sensor's sample count, touch status and gesture output should appear in the oscilloscope view. Make sure the appropriate channels for the Tap gesture are enabled. Experiment with fast and slow finger taps. If your tap gesture meets the min and max timing parameters your plot should appear similar to the Valid Tap example shown in Figure 5.
If your finger tap is slow, the gesture may not be detected because the finger was touching too long and the ui16TouchSampleCount_Max parameter was exceeded. In this case your plot will look similar to the Invalid Tap example shown inFigure 7 . Try the tap again but this time the finger should touch only briefly.
If you finger tap is too quick, the gesture may not be detected because the finger was not touching long enough and did not meet the ui16TouchSampleCount_Min parameter. The plot should appear similar to the Invalid Tap example shown in Figure 6 . If you desire a quicker response, modify the ui16TouchSampleCount default value from 3 to 2, or possibly 1. With the sample rate at 20msec, going from 3 to 1 is effectively decreasing the time from 60msec to 20msec. Build and reprogram the MSP430FR2633 target MCU. Test again to see if the gesture detects the tap reliably.
Experiment with the swipe and slide gesture to see how the time and distance parameters affect the sensor's responsiveness. Adjust accordingly to achieve your desired response.