Normally OpenCV for Android displays the preview in landscape mode. For STEMbot1 and STEMbot2 I needed to display the preview in a portrait mode.
Here is the code I came up with.
In your manifest file change the orientation from landscape to portrait.
The following is code to control two RC servos using the timers on a MSP430G2231.
The only interrupt occurs when the timer counter overflows (approximately every 16ms).
Simply set Servo1Abs or Servo2Abs to the desired servo position // 2000 - 10000
#define SERVO_CENTER 5625 // Measure by adjusting until scope shows 1500us
#define SERVO_MIN 1875
Added by eric gregori on July 12, 2013 at 5:38pm — No Comments