So i got the motor commands to respond, it seems that the original values:
//#define ROLLKP 0.015
//#define ROLLKD 0.15
//#define PITCHGAIN 0.015
//#define PITCHKD 0.15
are to low and don't produce much response.
If I raise them to the following, the motor commands start to respond
//#define ROLLKP 0.2
//#define ROLLKD 0.15
//#define PITCHGAIN 0.2
//#define PITCHKD 0.15
the board seems to work ok, and using a receiver I can make each motor
speed up, slow down accordingly to which stick I move. I also can tell
that the motors are changing speed when I pitch and roll, so it
appears that everything is kinda working, it's just slow. I have my
machine mounted to a platform that allows it to pitch and roll, so I
can try it with props before trying to fly it. Anyway, so when I add
the props, it looks like it attempts to keep the quad level but the
response it just to slow. If I give it 50% throttle, I would expect it
to balance or if I try to pitch or yaw with the receiver, it should
try and correct after I let go of the sticks. Watching the UAV Quad
Monitor, it pretty evident that the response is not responding fast
enough to correct or keep the quad level.
I haven't tried the self test because the board responds when I pitch
and roll the quad an I'm using the v3 board and the self test doesn't
look to support it...
Do you have any idea what the update rate is on the control loop?
Regards,
Bryan
The Quad distribution options.h file has:
#define ROLLKP 0.015 //
#define ROLLKD 0.150 //
#define PITCHGAIN 0.015 //!!!!! Used in Heli (.2)
#define PITCHKD 0.150 //!!!!! Used in Heli (.1)
#define FILTERSHIFT 0 // filter shift divide
Bryan's option.h has:
#define ROLLKP 1.0 //
#define ROLLKD 0.5 //
#define PITCHGAIN 1.0 //!!!!! Used in Heli (.2)
#define PITCHKD 0.5 //!!!!! Used in Heli (.1)
#define FILTERSHIFT 5 // filter shift divide
Fist off, Jerry must hardwire FILTERSHIFT somewhere or the code would not
work with 0 (at least not with any vibrations). But Bryan has 5...a HUGE
difference.
Bryan's gains are also VERY large compared to Jerry's. However, if he is
filtering at that large a differnce it would explain the high gains.
Maybe if I understand the sources of these differences I could help.
Best,
John
John
----- Original Message -----
From: "Bryan Walter" <bw4...@gmail.com>
To: <uavhel...@googlegroups.com>
John
----- Original Message -----
From: "Bryan Walter" <bw4...@gmail.com>
To: <uavhel...@googlegroups.com>
Sent: Sunday, January 09, 2011 12:54 PM
Best,
John
----- Original Message -----
From: "Bryan Walter" <bw4...@gmail.com>
To: <uavhel...@googlegroups.com>
Sent: Sunday, January 09, 2011 12:54 PM
I was playing around with the values and making BIG changes to try and
see what it did, which is why the gains were so high and the filter
values were so large.
So I have changed FILTERSHIFT = 0 and the gains to:
#define ROLLKP 0.2
#define ROLLKD 0.1
#define PITCHGAIN 0.2
#define PITCHKD 0.1
and it still very sluggish, as the attached image shows. To create the
image, I pitched forward and then back and then rolled right and left.
It seems to take 5 to 10 seconds for the response to settle. Likewise,
when I add the motors and pitch and roll the craft, the motors speed
up and slow down as they should however it's takes seconds to respond.
It's also a little odd that nothing is showing up in the z gyro plot.
Anyway, thanks for the feedback...I keep fiddling.
Bryan
I re-solder all the pins and nothing changed...looks like I have a bad
daughter board.
Thanks for your suggestions.
Regards,
Bryan
Did you re-flow the board with hot air? I'm thinking that since the
output is 3.3, it's a chip problem and not a cold joint.
Regards,
Bryan
Were you able to get the self test routine to run on your board? This is
the best way to see if the hardware is working. It basically lets you move
the UDB around and you watch three servos move for pitch/roll/yaw. This
should tell you if the gyros are working or not.
I'm not sure if there is a self test for the Invensense gyros or not, but I
can tell you how to mod the code that is on the MP download site if you
want.
Probably worth a test before resoldering or returning the board.
Let me know what you would like to do
Best,
John
----- Original Message -----
From: "Bryan Walter" <bw4...@gmail.com>
To: <uavhel...@googlegroups.com>
Sent: Sunday, January 09, 2011 4:24 PM
Subject: Re: X Gyro is sluggish
I think I'll try for a replacement board first, but I bought it a
while ago....we'll see how good sparkfun's customer service is ;)
Did you re-flow the board with hot air? I'm thinking that since the
output is 3.3, it's a chip problem and not a cold joint.
Regards,
Bryan
On Sun, Jan 9, 2011 at 4:16 PM, Bryan Walter <bw4...@gmail.com> wrote:
> yup.
>
> On Sun, Jan 9, 2011 at 4:04 PM, Marc-X <marcus...@gmail.com> wrote:
>> Just to be sure: You have a UDB3 (with the Inversense IXZ-500 gyros?)
>>
>> / Marc
>>
>> On Jan 9, 11:52 pm, Bryan Walter <bw4...@gmail.com> wrote:
>>> I get 3.3V on all the power lines, the grounds look good but I get 3.3
>>> at one of the output pins, the others two are closer to 2V.
>>>
>>> I re-solder all the pins and nothing changed...looks like I have a bad
>>> daughter board.
>>>
>>> Thanks for your suggestions.
>>>
>>> Regards,
>>>
>>> Bryan
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Sun, Jan 9, 2011 at 3:05 PM, Marcus Fahl�n <marcus.fah...@gmail.com>
The self test project doesn't have the new board (V3) but I assume
it's as simple as copying the header file from another project and
including the Invensense header file, right?
Regards,
Bryan
>>>> On Sun, Jan 9, 2011 at 3:05 PM, Marcus Fahlén <marcus.fah...@gmail.com>
Regards,
Bryan
>>>> On Sun, Jan 9, 2011 at 3:05 PM, Marcus Fahl�n <marcus.fah...@gmail.com>
/Marc
> >>>> On Sun, Jan 9, 2011 at 3:05 PM, Marcus Fahl�n
> read more �