update to r1317 on my H6 but had no gimbal control on roll but had it on pitch.
updated to r1342 and had no control on either output.
back to 2.1 and normal gimbal operation on both pitch and roll.
Using SirusGPS sensor board on Pro mini. Roll servo connected to pin 12
Any ideas?
Multiwii dev 1317 and 1342 cam stab problems
-
- Posts: 1630
- Joined: Wed Jan 19, 2011 9:07 pm
Re: Multiwii dev 1317 and 1342 cam stab problems
Hi,
It should be ok now with the last rev.
Could you download the last dev and replace def.h by this one ?
https://code.google.com/p/multiwii/sour ... ared/def.h
It should be ok now with the last rev.
Could you download the last dev and replace def.h by this one ?
https://code.google.com/p/multiwii/sour ... ared/def.h
Re: Multiwii dev 1317 and 1342 cam stab problems
Hi,
Just uploaded pre2.2 and all working fine.
Thanks heaps Alexinparis.
Just uploaded pre2.2 and all working fine.
Thanks heaps Alexinparis.
Re: Multiwii dev 1317 and 1342 cam stab problems
Hi, SERVO_MIX_TILT does not work on 2.2 pre, running on r1342 with this code mod to super simple
all running fine, but now the servos just jam up, both just pull up and hum?
I'm not sure if I can put the above code in, if so not sure where as the output file has changed a lot! (not a coder)
any help would be great
thanks
Shane
Code: Select all
#ifdef SERVO_MIX_TILT
// Simple CameraGimbal By Bledy http://youtu.be/zKGr6iR54vM
if (rcOptions[BOXCAMSTAB]) {
#define LOWPASSFILTER(OLDVALUE,VALUE,FILTER) ((VALUE*(8-FILTER)+OLDVALUE*FILTER)/8)
#define TILT_FILTER 7 // (7 maximum filtering 0:no filter)
int16_t s0 = constrain(TILT_PITCH_MIDDLE - (-TILT_ROLL_PROP) * angle[PITCH] /16 - TILT_ROLL_PROP * angle[ROLL] /16 , TILT_PITCH_MIN, TILT_PITCH_MAX);
int16_t s1 = constrain(TILT_ROLL_MIDDLE + (-TILT_ROLL_PROP) * angle[PITCH] /16 - TILT_ROLL_PROP * angle[ROLL] /16 , TILT_ROLL_MIN, TILT_ROLL_MAX);
servo[0]=LOWPASSFILTER(servo[0],s0,TILT_FILTER);
servo[1]=LOWPASSFILTER(servo[1],s1,TILT_FILTER);
} else {
// to use it with A0_A1_PIN_HEX
#if defined(A0_A1_PIN_HEX) && (NUMBER_MOTOR == 6) && defined(PROMINI)
servo[2] = constrain(TILT_PITCH_MIDDLE + rcData[AUX3]-1500 , TILT_PITCH_MIN, TILT_PITCH_MAX);
servo[3] = constrain(TILT_ROLL_MIDDLE + rcData[AUX4]-1500, TILT_ROLL_MIN, TILT_ROLL_MAX);
#else
servo[0] = constrain(TILT_PITCH_MIDDLE + rcData[AUX3]-1500 , TILT_PITCH_MIN, TILT_PITCH_MAX);
servo[1] = constrain(TILT_ROLL_MIDDLE + rcData[AUX4]-1500, TILT_ROLL_MIN, TILT_ROLL_MAX);
#endif
}
#endif
all running fine, but now the servos just jam up, both just pull up and hum?
I'm not sure if I can put the above code in, if so not sure where as the output file has changed a lot! (not a coder)
any help would be great
thanks
Shane
Re: Multiwii dev 1317 and 1342 cam stab problems
Hi, found where to put the code, all working again!
thanks
Shane
thanks
Shane