Search found 332 matches

by mahowik
Wed Dec 21, 2011 5:34 pm
Forum: Ideas
Topic: Alt. Hold Ideas and discussion
Replies: 193
Views: 126195

Re: Alt. Hold Ideas and discussion

2Hz is enough? How you testing? I'm usually do the following tests, to assest dynamic: 1) Enter to alt. hold with vertical speed (better to do it with baro clamped to constant value) - go up - flick switch - should stop - go down - flick switch - should stop 2) Set a set point 2-3 meters higher tha...
by mahowik
Tue Dec 20, 2011 4:52 am
Forum: Ideas
Topic: Alt. Hold Ideas and discussion
Replies: 193
Views: 126195

Re: Alt. Hold Ideas and discussion

2Hz is enough? How you testing? I'm usually do the following tests, to assest dynamic: 1) Enter to alt. hold with vertical speed (better to do it with baro clamped to constant value) - go up - flick switch - should stop - go down - flick switch - should stop 2) Set a set point 2-3 meters higher tha...
by mahowik
Mon Dec 19, 2011 5:19 pm
Forum: Ideas
Topic: Alt. Hold Ideas and discussion
Replies: 193
Views: 126195

Re: Alt. Hold Ideas and discussion

My config quadX:
- turnigy 2209 28turn 1050kv 15A Outrunner
- props HK 9x5
- plush 18a
- mega1280 + itg3205 + bma020(bw 190hz + LPF 2..3Hz) + hmc5883 + bmp085
- accum 3S 20C 2200mah or 2650mah

Total weight ~800..900g

https://picasaweb.google.com/lh/photo/G ... directlink

thx-
Alex
by mahowik
Mon Dec 19, 2011 6:19 am
Forum: Ideas
Topic: Alt. Hold Ideas and discussion
Replies: 193
Views: 126195

Re: Alt. Hold Ideas and discussion

With normal ACC bandwith (10-25 Hz)? Bandwidth 190 Hz but ACC LPF ~= 2..3Hz static float accTempF[3]; ....... #define lfpFactor 0.987f accTempF[axis] = accTempF[axis]*lfpFactor + accADC[axis]*(1.0f - lfpFactor); accSmooth[axis] = accTempF[axis]; Yes! I see what you wanna to say! It (190hz) was too ...
by mahowik
Mon Dec 19, 2011 5:15 am
Forum: Ideas
Topic: Temperature drift correction for main sensors (ACC and GYRO)
Replies: 3
Views: 1780

Re: Temperature drift correction for main sensors (ACC and G

ziss_dm wrote:Easiest way would be to upgrade to BMA180.. ;)
It is supposed to be compensated as well as ITG3200..


What about ITG3205? :) After 2-3 min outside, it was required to recalibrate gyro again because it became unstable in ACRO also..
by mahowik
Mon Dec 19, 2011 4:49 am
Forum: Ideas
Topic: Temperature drift correction for main sensors (ACC and GYRO)
Replies: 3
Views: 1780

Temperature drift correction for main sensors (ACC and GYRO)

Hi all, Now in winter it so actual!!! Usually I consume at least one battery pack to tune my quadrX stable when I go outside. I have measured the ACC Z value after calibration at home and outside. The diff is about 17..19% with temperatere diff 30C... i.e. if acc_1g=63, it calibrated at home to Z=63...
by mahowik
Mon Dec 19, 2011 4:10 am
Forum: Software development
Topic: Improving Altitude Hold Performance
Replies: 98
Views: 63012

Re: Improving Altitude Hold Performance

Today I have found out one more point related to alt hold stability
viewtopic.php?f=7&t=363&p=6831#p6831
It works at least for my config...
by mahowik
Mon Dec 19, 2011 4:08 am
Forum: Ideas
Topic: Alt. Hold Ideas and discussion
Replies: 193
Views: 126195

Re: Alt. Hold Ideas and discussion

One more note about alt hold stability... At the beginning I got a good results and stable alt hold with using accSmooth instead of accADC in getEstimatedAltitude(). And today I tried to use original version (i.e. with accADC) and have found out that is not working for me... It became very unstable ...
by mahowik
Mon Dec 12, 2011 8:26 pm
Forum: Ideas
Topic: Alt. Hold Ideas and discussion
Replies: 193
Views: 126195

Re: Alt. Hold Ideas and discussion

dramida wrote:What accelerometer and software version are you using? i'll test your settings tomorrow, thank you.

bma020(set to 8g range: acc_1g=63)
software 1.9

most of all you should keep high VEL D... then play with VEL P and ALT P

thx-
Alex
by mahowik
Sun Dec 11, 2011 9:50 pm
Forum: Ideas
Topic: Alt. Hold Ideas and discussion
Replies: 193
Views: 126195

Re: Alt. Hold Ideas and discussion

As for me, I got very good results +/-0.5..1m when it's not windy outside

PID ALT: 3.0 - 0.015 - 0
PID VEL: 5.0 - 0.000 - 45
by mahowik
Thu Dec 08, 2011 12:48 am
Forum: Software development
Topic: MultiWii 1.9
Replies: 211
Views: 82433

Re: MultiWii 1.9

- The head/front will be remembered when you turn on the engines. So it means that you can turn on/off the "simple/head free" mode during the flight... That explains why I got so confused earlier today when I tried it. I thought it "stored" the orientation when the mode was enab...
by mahowik
Wed Dec 07, 2011 5:33 pm
Forum: Software development
Topic: To alex: ACC drift Issue: a bench test:
Replies: 99
Views: 59769

Re: To alex: ACC drift Issue: a bench test:

The devisor /64 was used to mask 6 (5+1bit "new_data") "unused" bits in data registers. With divisor /32 you relaying on the contents of those bits, which is probably not a good idea as you never know what can appear there. Hi ziss_dm, Yes, I know that for 8g the resolution is 6...
by mahowik
Wed Dec 07, 2011 4:30 pm
Forum: Software development
Topic: MultiWii 1.9
Replies: 211
Views: 82433

Re: MultiWii 1.9

A magnetometer is required for head free mode, right? Hi all, I have updated the first post of the related thread http://www.multiwii.com/forum/viewtopic.php?f=7&t=925 pls. post your feedbacks or issues there to have it in one place... HOW TO: - At first you need to have a magnetometer and acce...
by mahowik
Wed Dec 07, 2011 4:21 pm
Forum: Software development
Topic: MultiWii 1.9
Replies: 211
Views: 82433

Re: MultiWii 1.9

BTW: I've tried the new head free mode, and it seems to work just fine.... however, once you're used to 'normal' quad flying, this new mode becomes highly confusing again ..... you're still trying to control, as if standing behind the model.... I think it is especially usefull in a situation where ...
by mahowik
Wed Dec 07, 2011 12:59 am
Forum: Software development
Topic: To alex: ACC drift Issue: a bench test:
Replies: 99
Views: 59769

Re: To alex: ACC drift Issue: a bench test:

So the conclusion for me is: VIBRATIONS. This would be the same conclusion you discussed. But what is the solutioon for that? Hi jevermeister, As for me set range to 8g fix this issue. I still have a little drift (I think it because there is low ACC resolution 64 LSB/g for 8g range) but it's accept...
by mahowik
Tue Dec 06, 2011 4:29 am
Forum: Software development
Topic: Little bug from old inheritance in computeIMU()
Replies: 7
Views: 2849

Re: Little bug from old inheritance in computeIMU()

@Alex I think the common P (gyroData[axis]*dynP8[axis]/10/8) and D terms used both in level and acro mode are probably the most important terms involved in stability. I think the freshness of the level PI parts are less important. But it's very intuitive and it could be wrong, there is no math behi...
by mahowik
Tue Dec 06, 2011 4:05 am
Forum: Ideas
Topic: Multiwii+ Ultrasonic Sensor
Replies: 2
Views: 2725

Re: Multiwii+ Ultrasonic Sensor

Hi Theelectronicguy,

As for now MW doesn't support the sonar. But here a lot of guys wanna to have this ;)
So you can be first! ;)

Just FYI: As I know it's already work great in megapirateng project... you can look the details here http://code.google.com/p/megapirateng/downloads/list

thx-
Alex
by mahowik
Mon Dec 05, 2011 4:14 am
Forum: Software development
Topic: To alex: ACC drift Issue: a bench test:
Replies: 99
Views: 59769

Re: To alex: ACC drift Issue: a bench test:

This is initialization for BMA: #if defined(BMA020) void ACC_init(){ i2c_writeReg(0x70,0x15,0x80); uint8_t control = i2c_readReg(0x70, 0x14); control = control & 0xE0; // control = control | (0x00 << 3); //Range 2G control = control | (0x03 << 3); //Range 8G control = control | 0x06; //Bandwidt...
by mahowik
Mon Dec 05, 2011 12:28 am
Forum: Software development
Topic: Little bug from old inheritance in computeIMU()
Replies: 7
Views: 2849

Re: Little bug from old inheritance in computeIMU()

Hi, I did this, because I think it's more important to feed the PID loop with the freshest data. Doing this mod will feed the freshest data to the angle calculation function and not to the PID loop. If it's more stable, it's however interesting to understand why. Yes, for the rate PID controller it...
by mahowik
Fri Dec 02, 2011 6:01 pm
Forum: Software development
Topic: Little bug from old inheritance in computeIMU()
Replies: 7
Views: 2849

Little bug from old inheritance in computeIMU()

I have found out small issue in computeIMU(). It seems that getEstimatedAttitude() uses "old" (not fresh) gyro values to calculate inclinations. Current code: .... if (ACC) { ACC_getADC(); getEstimatedAttitude(); if (BARO) getEstimatedAltitude(); } if (GYRO) Gyro_getADC(); else WMP_getRawA...
by mahowik
Thu Dec 01, 2011 3:28 pm
Forum: Ideas
Topic: Simple mode for beginers
Replies: 70
Views: 38847

Re: Simple mode for beginers

Hi ziss_dm, Yes it's a good idea to avoid increasing of calculation time, but in case of current implementation the cycle time was not changed because the calculation inside of the annexCode() function, which is called from computeIMU() with constant delay... timeInterleave=micros(); annexCode(); wh...
by mahowik
Thu Dec 01, 2011 1:07 am
Forum: Software development
Topic: MultiWii 1.9
Replies: 211
Views: 82433

Re: MultiWii 1.9

Alexinparis wrote:I've just included it in the last dev ;)

Cool!!! :)
by mahowik
Wed Nov 30, 2011 11:17 pm
Forum: Software development
Topic: MultiWii 1.9
Replies: 211
Views: 82433

Re: MultiWii 1.9

@to all: Also I'm just wanna to promote new mode if not all aware about this. :)
It's already initially tested by some guys and have a good feedbacks.

viewtopic.php?f=7&t=925

russian version: http://forum.rcdesign.ru/f123/thread221 ... ost2970794
by mahowik
Wed Nov 30, 2011 11:10 pm
Forum: Software development
Topic: MultiWii 1.9
Replies: 211
Views: 82433

Re: MultiWii 1.9

Please tell me if this changes I made, make sence! As I'm also Alex and I have posted that changes. So I will reply to you You increased the LPF factor and increased the GYRO value for complimentary filter... And yes, these changes helps to reduce the drift but not resolve this issues at all unfort...
by mahowik
Tue Nov 29, 2011 3:54 pm
Forum: Ideas
Topic: A different approach to levelling ? - drift killer?
Replies: 61
Views: 43931

Re: A different approach to levelling ? - drift killer?

that i will try to explore and post the results here. Problem sounds like this: i can read the x/y inclination (input variables) and i want to hold them in a limit value (desired position) by adjusting the output (motors throttle). Is working similar to PID control but is easier to process and unde...
by mahowik
Mon Nov 28, 2011 7:55 pm
Forum: Ideas
Topic: A different approach to levelling ? - drift killer?
Replies: 61
Views: 43931

Re: A different approach to levelling ? - drift killer?

Hi matbogdan, Are you going to use Artificial Neural Nnetwork (ANN) for this? How you are going to "train" the copter? What will be the input data for this and how you will say to system that is correct behavior for that inputs? I mean that you should be verrryyyy good pilot to train ANN o...
by mahowik
Sun Nov 27, 2011 9:52 pm
Forum: Ideas
Topic: Simple mode for beginers
Replies: 70
Views: 38847

Re: Simple mode for beginers

Hi guys!

Good news! Many thanks for your help!
I agree when it works it can be very usefull.
So I hope AlexInParis will not ignore to include this to sketch :)

thx-
Alex
by mahowik
Fri Nov 25, 2011 1:44 am
Forum: Ideas
Topic: Tunable LFP filter for ACC with float implementation
Replies: 19
Views: 6527

Re: Tunable LFP filter for ACC with float implementation

Small values - usually small inclinations. I agree but you know that ACC more sensitive for vibrations and this noise will be registered to small inclinations for IMU... then integrated etc... Can you explain again how incorrect transfer function of filter (due acumulative round-off errors) can red...
by mahowik
Fri Nov 25, 2011 12:54 am
Forum: Ideas
Topic: Simple mode for beginers
Replies: 70
Views: 38847

Re: Simple mode for beginers

Yes! For this Simple mode the declination not a problem because it uses the diff of heading and simpleModeHold angles. float radDiff = (heading - simpleModeHold) * 0.0174533f; // where PI/180 ~= 0.0174533 So you can try to fly with it p.s. I have updated the first post of this thread for "How t...
by mahowik
Thu Nov 24, 2011 11:07 pm
Forum: Ideas
Topic: Tunable LFP filter for ACC with float implementation
Replies: 19
Views: 6527

Re: Tunable LFP filter for ACC with float implementation

Ok I forgot about this. But I think we can ignore small values. We need to setup correct filter, then we can use even small values because this values will show correct quad position. But what for that cases when you have a vibrations on board/PCB?! In this case small values it's noise... Just to b...
by mahowik
Thu Nov 24, 2011 10:21 pm
Forum: Ideas
Topic: Tunable LFP filter for ACC with float implementation
Replies: 19
Views: 6527

Re: Tunable LFP filter for ACC with float implementation

Hmm why we should reduce precision? Maybe I miss something but I don't read all post about drift - most of new topics here is about drift and ACC the answer is in my first post of this thread http://www.multiwii.com/forum/viewtopic.php?f=7&t=926#p5843 But I'm happy now with my quads and just ma...
by mahowik
Thu Nov 24, 2011 7:01 pm
Forum: Ideas
Topic: Tunable LFP filter for ACC with float implementation
Replies: 19
Views: 6527

Re: Tunable LFP filter for ACC with float implementation

hmmmm... and now I'm fully confused first theory - we should reduce the precision second one - we should increase the precision BTW I have tried to increase precision by increasing form >>4 to >>6 (from 16 to 64). accTemp[axis] = (accTemp[axis] - (accTemp[axis] >>6)) + accADC[axis]; accSmooth[axis] ...
by mahowik
Thu Nov 24, 2011 5:38 pm
Forum: Ideas
Topic: Simple mode for beginers
Replies: 70
Views: 38847

Re: Simple mode for beginers

I checked it, and I did not experienced any error... it's linear... So perhaps your sensor is broken... So, bad news for me, but probably good news for you Could you try this mode? I tested this on the flight and it works In my config, but head/front is "swimming" because of this nonlinea...
by mahowik
Thu Nov 24, 2011 5:15 pm
Forum: Ideas
Topic: Simple mode for beginers
Replies: 70
Views: 38847

Re: Simple mode for beginers

I do not understand that non linear error, sorry but can someone please give an explanation for dummies? it means when you physically rotate the copter (or PCB with sensors) for N angle, after IMU in GUI it shows N+D angle but not N... In my case if N=180 then D= +/-(20..30) degrees and depends fro...
by mahowik
Thu Nov 24, 2011 4:10 pm
Forum: Ideas
Topic: Tunable LFP filter for ACC with float implementation
Replies: 19
Views: 6527

Re: Tunable LFP filter for ACC with float implementation

Hi Ziss, Yes, it seems you are right again If we take into account that accSmooth[axis] is float it will be the same LPF with high accuracy (like current 1.9). BUT why in this case marbalon's version helps to keep level and avoid the drift?! I have also made some test. I have added the cut condition...
by mahowik
Wed Nov 23, 2011 6:48 pm
Forum: Ideas
Topic: Simple mode for beginers
Replies: 70
Views: 38847

Re: Simple mode for beginers

Hi guys,

Could someone test your mag for nonlinear error?
It means when you rotate the copter for 30/60/90/180 etc. IMU should calculate the same. Just check the diff of heading in GUI diff angles/degrees... probably I have broken one...
by mahowik
Tue Nov 22, 2011 7:22 pm
Forum: Ideas
Topic: Simple mode for beginers
Replies: 70
Views: 38847

Re: Simple mode for beginers

Thanks a lot for the comments! I have already found similar in MegaPiratePlane // Declination correction (if supplied) if( fabs(_declination) > 0.0 ) { heading = heading + _declination; if (heading > M_PI) // Angle normalization (-180 deg, 180 deg) heading -= (2.0 * M_PI); else if (heading < -M_PI) ...
by mahowik
Tue Nov 22, 2011 4:30 pm
Forum: Ideas
Topic: Simple mode for beginers
Replies: 70
Views: 38847

Re: Simple mode for beginers

You have to handle magnetic decliniation, if you want to use mag for anything else than heading hold. Take a look at the Arducopter code, there is a clean implementation in the compass library. It will be neccessary anyway, since gps guided flight also needs a precise compass. Thanks a lot! I suppo...
by mahowik
Tue Nov 22, 2011 4:08 pm
Forum: Ideas
Topic: Tunable LFP filter for ACC with float implementation
Replies: 19
Views: 6527

Re: Tunable LFP filter for ACC with float implementation

I can agree with this but you miss second pass because when you are using int implementation with bit operations you miss small values, but if you analyze this example: ACC data 3, old value 0, lfpFactor = 0.27 if fist pass you will get 0*(1-0.27) + 0.27*3 = 0.81 -> then this will be converted to i...
by mahowik
Mon Nov 21, 2011 11:25 pm
Forum: Ideas
Topic: Tunable LFP filter for ACC with float implementation
Replies: 19
Views: 6527

Re: Tunable ACC filter - another method to tune level mode.

Hi Marcin, I have found out the same, that new ACC LPF filter doesn't work as required. As I told before in another thread: Yes, this LPF has good precision/accuracy for small input values, BUT these small ACC values are vibrations as usual... than that vibrations will be integrated and as result we...
by mahowik
Mon Nov 21, 2011 10:14 pm
Forum: Ideas
Topic: Simple mode for beginers
Replies: 70
Views: 38847

Re: Simple mode for beginers

Hi Alex, I don't know about "carefree mode" in Mikrokopter... Yes, I have tested this and it's works, but no so great because my MAG has a big inaccuracy, e.g. if after IMU it has Nord in 0 degree the South will not be 180 degree but about 200-210... As I know in Canada the magnetic field ...
by mahowik
Mon Nov 21, 2011 9:47 pm
Forum: Ideas
Topic: Simple mode for beginers
Replies: 70
Views: 38847

Simple mode for beginers

Hi guys, I have implemented the simple mode for the bad pilots like me . I got the idea (but not the code ) from arducopter project. The main goal is: 1. Remember the YAW angle/orientation when you turn on the engines. 2.Then when you rotating the copter for yaw, it will know where is the "new&...
by mahowik
Sun Nov 20, 2011 7:00 am
Forum: Ideas
Topic: A different approach to levelling ? - drift killer?
Replies: 61
Views: 43931

Re: A different approach to levelling ? - drift killer?

Hi Shikra, Thanks for your idea! As I understand the main goal here to control the reaction speed to achieve necessary inclination. I'm sure you know but just FYI, as I have experienced, you can achieve almost the same by set big "D" (it's related not only for acro but also for stable mode...
by mahowik
Wed Nov 09, 2011 8:46 pm
Forum: Software development
Topic: To alex: ACC drift Issue: a bench test:
Replies: 99
Views: 59769

Re: To alex: ACC drift Issue: a bench test:

Hi guys, Good news! I have tried this fix (talking about increasing of acceleration range for bma020) yesterday and it work perfect, very stable with real ACC Z data (i.e. when TRUSTED_ACCZ uncommented). As I have very noisy/vibrated config I have set the following changes: 1. Set the acceleration r...
by mahowik
Tue Nov 08, 2011 5:24 pm
Forum: Software development
Topic: To alex: ACC drift Issue: a bench test:
Replies: 99
Views: 59769

Re: To alex: ACC drift Issue: a bench test:

Also I'm going to play with Nunchak. As it has analogue acc chip it possible to add the condensers with more capacity to filter unnecessary high frequency (vibrations).
by mahowik
Tue Nov 08, 2011 4:55 pm
Forum: Software development
Topic: To alex: ACC drift Issue: a bench test:
Replies: 99
Views: 59769

Re: To alex: ACC drift Issue: a bench test:

The ADXL345 works fine because in the Multiwii software the acceleration range is set to +/- 8G (register 0x31, 0x0B) and thus there is no saturation of the A to D converter with high frequency motor vibrations. Also the sensitivity is maintained to 256 LSB/g because Full_RES bit is set to 1 and th...
by mahowik
Tue Nov 08, 2011 12:06 am
Forum: Software development
Topic: MultiWii 1.9
Replies: 211
Views: 82433

Re: MultiWii 1.9

I tested that but I am afraid that does not work, stillt twitches, might be even worse. I see the changes in I2C driver there. Probably it's a reason of this issue... from MultiWii_1_9: void waitTransmissionI2C() { uint16_t count = 255; while (!(TWCR & (1<<TWINT))) { count--; if (count==0) { //...
by mahowik
Mon Nov 07, 2011 9:28 pm
Forum: Software development
Topic: To alex: ACC drift Issue: a bench test:
Replies: 99
Views: 59769

Re: To alex: ACC drift Issue: a bench test:

Yes, it was clear :) As I supposed (2nd way) above :)

Thanks in any case.
Alex
by mahowik
Mon Nov 07, 2011 4:03 pm
Forum: Software development
Topic: To alex: ACC drift Issue: a bench test:
Replies: 99
Views: 59769

Re: To alex: ACC drift Issue: a bench test:

ziss_dm wrote:Are you sure, that after changing range to 8G, the acc_1G is still 255? I think, it should be 63?


In case of BMA020 I suppose 2 ways can be here:
1. change the acc_1g accordingly, i.e. 127 for 4g and 63 for 8g
2. reduce the delimiter in ACC_getADC(), i.e. 32 for 4g and 16 for 8g
by mahowik
Mon Nov 07, 2011 4:49 am
Forum: Software development
Topic: To alex: ACC drift Issue: a bench test:
Replies: 99
Views: 59769

Re: To alex: ACC drift Issue: a bench test:

Wow!!! Thanks a lot for the detailed explanation! This is the first time when we have a chance to really understand what is going on with Z acc axis. I will try the 4g/8g with my config. I hope it help to get Z more stable when engines is ON and reduce the acc drift. Only one question: in this case ...