Re: Add a mag chip?
« Reply #15 on: January 06, 2017, 06:41:36 pm »
Got it.  I think the key here is that it needs to be close enough to fly...  and reasonable for the aircraft design.  Ie: not off by 30 degrees and/or upside down.

Glad to hear I'm on the right track.

I'm just about ready to retest non-GPS level flight.

I'm going to make a separate post about having to do a full [re] firmware update.

Thanks again!

Paul




Sent from my iPad using Tapatalk

Re: Add a mag chip?: Almost There
« Reply #16 on: January 08, 2017, 11:13:06 pm »
After re-flashing the entire board, I redid all initial configuration and got good level flight (with minimal drift) in basic navigation with just a couple small tweaks to the roll and pitch values.

I then did temperature calibration, since winter is happening here in Ohio.  :) and ran an AutoTune cycle "just to be safe".

Hooked up GPS and Mag, ran through those calibrations, Mag set to Aux Only

Took 180 roll and 180 pitch to line up the Artificial Horizon correctly.  By the way, contrary to my early attempt this put the 3 blue bars "pretty close" to 0. And this put the AH pretty level, with just a bit of pitch showing.

It looked like my first mag calibration was good, but after I restarted everything the mag status was consistently yellow.  So I redid the mag calibration and am now getting consistent green (with AuxOnly).  Only thing I can think of is that my PC was too close to the quad, so I move it as far away as I could and still reach the keyboard while doing the calibration routing.

Did a test flight in "attitude" mode again, and once again had very good leveling, no further tweaking required!

After I set up a GPS hold mode and I got ready to test, one of my motors quit working.  Not sure if I got a little snow somewhere it shouldn't be or if something else is going on, but the sun is going down so I'll pick up here [hopefully] tomorrow.

Re: Add a mag chip?: How bad is YELLOW ?
« Reply #17 on: January 09, 2017, 11:02:28 pm »
When I followed up today, I've stil got one motor not responding, so I need to diagnose root cause on that.

But I'm seeing Aux MAG Yellow again, most of the time.  Walking it around will get some green, but not "always".

Looking at the numbers, it looks like it's running between 5% and 10% out a lot of the time.

Is this "normal"?  If not, what else should I look at?

re-posting my antennae configuration.  Is this a likely culprit?  Anything else to consider?  Or is this something to not worry about?

Re: Add a mag chip?
« Reply #18 on: January 10, 2017, 03:57:41 am »
P.S.  My motor problem is a bad "channel" in a 4-in-1 ESC.  I'm assuming that wouldn't affect my mag calibration, as the problem exists while motors are not powered up at all.

Re: Add a mag chip?
« Reply #19 on: January 10, 2017, 04:52:38 am »
One important thing that should be shouted out from th speakers when you want to do mag calibration is that it is always reading mag data once you start the calibration.  You can't for instance set the quad on your car (metal), start calibration, pick it up, ... set it back down on the car ... finish calibration.  Calibration must be done without any bad stuff at any time from start to finish.

Re: Add a mag chip?
« Reply #20 on: January 10, 2017, 05:52:50 pm »
One important thing that should be shouted out from th speakers when you want to do mag calibration is that it is always reading mag data once you start the calibration.  You can't for instance set the quad on your car (metal), start calibration, pick it up, ... set it back down on the car ... finish calibration.  Calibration must be done without any bad stuff at any time from start to finish.

Understood, and I don't think that is the issue.  Is it possible though that the battery lead, coming up and over the battery could be the inconsistent point here?  Ie: I might not be paying enough attention to positioning this consistently.


Sent from my iPad using Tapatalk

Re: Add a mag chip?
« Reply #21 on: January 11, 2017, 08:53:37 pm »
You should mount the battery with same orientation each time.  That's easy for me since I need the lead coming out on one side...

Make sure all wires are twisted.  That means battery to connector and connector to PDB too.

1609 fixed a bug in the mag calibration, so you should be using 1609.  (I forget when that bug was introduced...)

Recalibrate your mags without setting it down (not even on the ground) during the calibration.

Re: Add a mag chip?
« Reply #22 on: January 11, 2017, 09:33:26 pm »
Cool.  I'm running 16.09, so I think my key opportunities are
    Consistent battery placement
    Twisting of battery leads/PDB leads
    Consistent routing of the battery leads
    Mag Calibration "positioning"

I have been doing most calibration attempts outside, but setting the quad on my concrete drive.  I'm assuming that a wooden table a couple feet off the ground would be OK, or are you just saying to keep it fully "hand held" during calibration?  Obviously that would be nearly impossible to keep fully still/oriented "just right" if just keeping it hand-held.

Either way, looks like I've got a bad ESC, so it'll be a few days before I resume flight tests.

Best regards,

Paul

Re: Add a mag chip?
« Reply #23 on: January 12, 2017, 06:32:19 am »
A wooden table is probably OK.  I set mine on a wooden railing, but I'm careful to keep it away from known nails.

And it is less a problem if you are using AuxOnly mag, since the aux mag is mounted higher than the OnBoard.  Please use AuxOnly.

Re: Add a mag chip?
« Reply #24 on: February 17, 2017, 12:19:41 am »
I'm back in the air now after replacing my speed controller.  I got a good mag calibration, with one battery (a 4S 1800 mah) but then again got slightly yellow status (running 5-8% error rate most of the time) when I switched to a slightly smaller battery (a 4S 1600mah).  There are several inches clearance between the battery and mag, and I made sure to run the battery leads in the same position.  Could the difference in calibration be from just the different battery size?

I went ahead and tried a position hold on both batteries.  Position hold was pretty successful, but it did a bit of a pendulum swing fore and aft that seemed to keep getting larger.   I had previously done an AutoTune and when I switched to "bank 3" (where my AutoTune settings were stored) it seemed to reduce the oscillation significantly, although those settings are too touchy for me when flying LOS.  Both batteries responded pretty much the same, so I feel like the "yellow" status wasn't significant enough to cause me any real issues.

As a side note, the only thing I had to watch out for is that when I switched out of stabilize mode to position hold, the throttle was way out of whack.  I had set the position hold to use "altitude" assist.  When I switched INTO position hold, I had to add a lot of throttle to hold altitude.  Conversely, I had to immediately cut a lot of throttle when I switched back to stabilize mode.  I assume 50% position is what's needed to maintain altitude in that mode, so I think the best solution to assist with transition would be to adjust my throttle position in Stabilize to manage level hover ~ 50%... is that the right thinking?  Or is there something else I should do?  (right now I'm flying in stabilize hover @ about 30% throttle.)

Mateusz

  • *
  • 808
Re: Add a mag chip?
« Reply #25 on: February 17, 2017, 08:09:31 am »
Obviously that would be nearly impossible to keep fully still/oriented "just right" if just keeping it hand-held.

I just but in and comment on previous. It depends what sensor is calibrated in procedure and what that sensor reads.

For Mag it reads magnetic field and that's it. It does it by collecting samples continuously, the movements suggested by wizard are just to cover all directions. It does not say it has to be montionless at each position. What I do is I skip first 5 steps and on last one I do slowly as many rotations in all ways as possible to cover sphere with samples. (alpha version of Android app shows that sphere but Android mag calibration is in testing phase).

When you do gyro calibration it must be montionless. If you do accel it must be perfectly aligned. When you do temp calibration this one is performed on two sensors, baro and gyro. Gyro is sensitive to movement and baro to pressure and lighting. With temp calibration board must be all time motionless and in complete darkness.

That's it, just think what sensor measures and what is calibrated.

I use 12-14cm pol for my gps+mag unit, and mast is mounted firmly using two screws. Masts mounted on one screw are useless as they would rotate after calibration.

Good luck ;)

Re: Add a mag chip?
« Reply #26 on: February 17, 2017, 12:02:28 pm »
I got a good mag calibration, with one battery (a 4S 1800 mah) but then again got slightly yellow status (running 5-8% error rate most of the time) when I switched to a slightly smaller battery (a 4S 1600mah).  There are several inches clearance between the battery and mag, and I made sure to run the battery leads in the same position.  Could the difference in calibration be from just the different battery size?
Generally, you are running such low current when the motors are off, that it just doesn't even see the battery.  This assumes that battery wires (and others) are twisted properly and battery is several inches from your mag.  I presume you have an aux mag and have your mag settings set to "aux only" (important (you don't have to recal mags just to change this)).  Mags should be generally green.  Movement during mag calibrations should always be slow (say take 3 seconds to get from one position to the next) for best calibration.  By force of habit I always set my auxmagsettings and revocalibration .mag_bias to 0,0,0 and auxmagsettings and revocalibration .mag_transform to 1,0,0,0,1,0,0,0,1 before mag cal, but that shouldn't be necessary in 16.09.

I went ahead and tried a position hold on both batteries.  Position hold was pretty successful, but it did a bit of a pendulum swing fore and aft that seemed to keep getting larger.
Was it toilet bowl or just pendulum?  Anyway, these are a sign of bad mags.  It could be calibration and it could be wires not twisted / routed well enough.  If you are seeing a lot of yellow with motors stopped, I would focus on mag cal until that is better.

I had previously done an AutoTune and when I switched to "bank 3" (where my AutoTune settings were stored) it seemed to reduce the oscillation significantly, although those settings are too touchy for me when flying LOS.
Assuming you are flying ATtitude mode...  Either the AT tune is good or bad.  If good, then it should be very "locked" to exactly what you ask it to do.  That should feel better, not worse in LOS.  Is yaw the main problem there?  If so you can reduce the yaw rate / rate mode response yaw to tame that down.  For pitch / roll you reduce the max bank angle: attitude / attitude mode response

Both batteries responded pretty much the same, so I feel like the "yellow" status wasn't significant enough to cause me any real issues.
Mags are important and should usually be green.

I had set the position hold to use "altitude" assist.
I suggest VelocityRoam over PH.  It's the same when sticks are in the center and it lets you drive it around.  "Altitude assist"?  I am guessing you mean "Assisted Control"?  That is generally for adding "PositionHold" to non GPS flight modes.  I don't know what it does to PH.  I haven't used it.  You might try VR with Assist off.

As a side note, the only thing I had to watch out for is that when I switched out of stabilize mode to position hold, the throttle was way out of whack.  When I switched INTO position hold, I had to add a lot of throttle to hold altitude.  ...  Right now I'm flying in stabilize hover @ about 30% throttle.
Yes.  Any mode that stabilizes aLtitude uses 50% stick to mean "don't change aLtitude".  If you are hovering at 30% throttle your props may be too big unless you know you built a real rocket.  What motors props battery weight are you running at 4s?

Re: Add a mag chip?
« Reply #27 on: February 17, 2017, 07:07:28 pm »
Wow... Lots of feedback... I love it!

I'm not at home at the moment, but will try to respond with what I can.

First of all, I am pretty highly powered here.  It is the HobbyKing Qaunum 270 (now) with 2205 motors 4s. I think the props are bullnose 5040s.  Hover on 3s is around 50% stick, but 4s gets up pretty quick.

I guess the sensitivity issue after auto tune was partially because I generally fly Acro+ Mode.  That's just too touchy for me after the auto tune settings unless I'm FPV.

The oscillation I was seeing was purely front to back... Nothing side to side, and it wasn't toilet bowl.

When I was out of the wind, didn't seem to happen at all but in steady but light wind it quickly showed up.

I agree that straight Position Hold isn't very useful ongoing, but was trying to verify that mode before I moved on to others.

I probably have 4 inches clearance between the mag and the battery, but I did fail to twist the battery leads.  I can try that when I recalibrate.

I never heard anyone point out slow transition when doing calibration.  Again, had good results till I switched battery, so don't know if that was part of the issue or not, but I'll certainly give that a try too.

In the photo below, I am being sure to keep the battery leads down around the battery, not looping over as shown.  But everything else is representative.


Sent from my iPad using Tapatalk
« Last Edit: February 17, 2017, 11:23:54 pm by proctoidpaul »

Re: Add a mag chip?
« Reply #28 on: February 17, 2017, 07:22:28 pm »
P.S.  Yes, I was using Aux Mag only.


Sent from my iPad using Tapatalk

Re: Add a mag chip?
« Reply #29 on: February 18, 2017, 04:15:28 am »
Any time you change power or weight you should run AT again.

Or you can tune with the heaviest / least powerful configuration and your lighter / more powerful configurations will be a little less than they could be but still fly quite nicely.  If you tune light/powerful and drop down to heavy/less power you get oscillations (IIRC).