dev20120219 and new features... info?

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
Post Reply
Magnetron
Posts: 124
Joined: Tue Jul 05, 2011 4:32 pm

dev20120219 and new features... info?

Post by Magnetron »

Hi I noticed in dev20120219 a new set of features like Passthru, Headfree, Beeper... could someone give more info?
Thanks.

Alexinparis
Posts: 1630
Joined: Wed Jan 19, 2011 9:07 pm

Re: dev20120219 and new features... info?

Post by Alexinparis »

passthru is for static wing config (like flying wing) to be able to control directly servos via bypassing the IMU
headfree is like mikrokopter carefree
beeper is something that will make your buzzer beeps in case you loose the multi

Magnetron
Posts: 124
Joined: Tue Jul 05, 2011 4:32 pm

Re: dev20120219 and new features... info?

Post by Magnetron »

Thank Alex.
Good job!

timecop
Posts: 1880
Joined: Fri Sep 02, 2011 4:48 pm

Re: dev20120219 and new features... info?

Post by timecop »

I see that proper acc-Z based althold has been ripped out again, are there any plans to bring it back?
This is the only solution to proper althold - if you think Naza/etc rev up the engines immediately as you knock it off position because they're using an overpriced pressure sensors, you're dead wrong, man. It's because they're using AccZ.

Alexinparis
Posts: 1630
Joined: Wed Jan 19, 2011 9:07 pm

Re: dev20120219 and new features... info?

Post by Alexinparis »

Hi,

Yes, I know this. AccZ is mandatory for short term ALT correction. It's probably useful to counter wind gusts.
You can notice VEL PID is still there, even if the code was commented ;)
The plan is to bring it back once pure baro alt hold is confirmed to work on many setups.

pm1
Posts: 136
Joined: Sun Jan 22, 2012 7:26 pm

Re: dev20120219 and new features... info?

Post by pm1 »

Hi,
maybe I am wrong, but please check the follwing code:

void getEstimatedAltitude(){
...
BaroLow+=BaroHistTab[(BaroHistIdx + temp32 + 1 + BARO_TAB_SIZE)%BARO_TAB_SIZE]; //sum older samples

I think the existing code has the latest value in the older samples.

Best regards
Peter

miniquad
Posts: 65
Joined: Wed Mar 23, 2011 8:17 pm

Re: dev20120219 and new features... info?

Post by miniquad »

I installed the latest dev released on my mini quad and I am finally able to fly in regular mode (gyro only). However, the stable mode seems to be really unstable. The quad is gradually oscillating more and more in stable mode and on bench test in GUI the motor commands do not look accurate. Is is something others are experiencing as well?
I am using ITG3200, BMA180 and HMC5883L sensors with cycle times at around 2700+ ms.

Sharkcopter
Posts: 21
Joined: Fri Feb 24, 2012 3:12 pm

Re: dev20120219 and new features... info?

Post by Sharkcopter »

I installed the latest dev released on my quadri bat now I can not change more parameters with my LCD (three-wire, with the 1.8p2 works perfectly).
There is a bug?
On the LCD I can see MultiWii parameters confused with strange characters and seems that there is an overflow.
Thanks in advance
Sergio

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: dev20120219 and new features... info?

Post by Hamburger »

Wrong terminal type?

Sharkcopter
Posts: 21
Joined: Fri Feb 24, 2012 3:12 pm

Re: dev20120219 and new features... info?

Post by Sharkcopter »

I think no, I have a three wire serial LCD with Gnd / +5 V / Rx that i use for other quadri with 1.8p2 and work fine.
I enabled # define LCD_SERIAL3W.

nhadrian
Posts: 421
Joined: Tue Oct 25, 2011 9:25 am

Re: dev20120219 and new features... info?

Post by nhadrian »

Could somebody help activate AUX3 to D12 port in dev_20120219?
More detailed infos here:
viewtopic.php?f=6&t=1256

JohnyGab
Posts: 144
Joined: Sat Oct 29, 2011 4:41 am

Re: dev20120219 and new features... info?

Post by JohnyGab »

Just want to know

EstAlt


is in ...meter?...mm? cm?

timecop
Posts: 1880
Joined: Fri Sep 02, 2011 4:48 pm

Re: dev20120219 and new features... info?

Post by timecop »

Changed to cm in latest code. It's also not accurate since it uses generic Pa->meters formula without correction by GPS or etc.

JohnyGab
Posts: 144
Joined: Sat Oct 29, 2011 4:41 am

Re: dev20120219 and new features... info?

Post by JohnyGab »

I know, but its to be displayed into my OSD, so I needed to know what range it is ;)

thanks

Wayne
Posts: 86
Joined: Sun Jul 31, 2011 10:44 pm

Re: dev20120219 and new features... info?

Post by Wayne »

I loaded dev_20120219 onto my new Radio Shack Mega2560 yesterday, aligned the ACCs, Gyros and MAG. This morning I got a chance to fly it.
Everything was as expected and the new altitude hold is unbelievable.
Even in today’s cold wind the BARO held, even with a little forward flight.
Thanks to all that had input with this dev.
That being said I loaded dev_20120225 tonight, the eprom settings stayed but the MAGs orientation had to be changed in the sketch between -0219 and -0225.
Anyone else had to do this?

Magnetron
Posts: 124
Joined: Tue Jul 05, 2011 4:32 pm

Re: dev20120219 and new features... info?

Post by Magnetron »

What are improvements in 20120225 dev?

ronco
Posts: 317
Joined: Thu Aug 18, 2011 2:58 pm

Re: dev20120219 and new features... info?

Post by ronco »

Hi,

as far as i know:

- new Sensor orientation rage (viewtopic.php?f=8&t=1259)
- better alt hold (viewtopic.php?f=8&t=562)
- motor 1-6 is now 11 bit PWM for mega (viewtopic.php?f=8&t=1219)
- arduino promicro(atmega32u4) support (viewtopic.php?f=8&t=1145)
- some bugfix on software PWM for Promini (motor 5-8) (viewtopic.php?f=8&t=1246)


regards

Felix

wilco1967
Posts: 156
Joined: Thu Aug 18, 2011 6:04 pm
Location: Winterswijk, Netherlands

Re: dev20120219 and new features... info?

Post by wilco1967 »

Hi,

Loaded dev 20120225, and as others have reported, baro works marvelous (BMP-085)..... Thanks !

However, there seems to be a problem with camstab (already since 20120203 I think it was)....
Camstab light comes on in GUI, but no response from servo's....
Earlier versions (before 0203) were OK.

My setup: Flyduino Mega board, with WM+, BMA-020, 5883 & BMP-085 on a Tri.
Also noticed, I had to change the mag orientation in this revision

KeesvR
Posts: 194
Joined: Fri May 27, 2011 6:51 pm
Location: The Netherlands

Re: dev20120219 and new features... info?

Post by KeesvR »

Hi Wilco, I've the same setup as yours.
What exactly do you have to change for the mag (I haven't tried this latest one) its easier as looking for myself.

Thanks.

javitech
Posts: 8
Joined: Mon Feb 28, 2011 10:19 pm

Re: dev20120219 and new features... info?

Post by javitech »

hey wilco1967, i have same problem with camstab, no working servos....

also i loaded 20120225, and i see many problems for configure sensors, i have itg3205 and bma020,BMP085, and baro works like shit for me, i go back to 20120219...

regards.


wilco1967 wrote:Hi,

Loaded dev 20120225, and as others have reported, baro works marvelous (BMP-085)..... Thanks !

However, there seems to be a problem with camstab (already since 20120203 I think it was)....
Camstab light comes on in GUI, but no response from servo's....
Earlier versions (before 0203) were OK.

My setup: Flyduino Mega board, with WM+, BMA-020, 5883 & BMP-085 on a Tri.
Also noticed, I had to change the mag orientation in this revision

wilco1967
Posts: 156
Joined: Thu Aug 18, 2011 6:04 pm
Location: Winterswijk, Netherlands

Re: dev20120219 and new features... info?

Post by wilco1967 »

I had to change from #define MAG_ORIENTATION(X, Y, Z) {magADC[ROLL] = -Y; magADC[PITCH] = X; magADC[YAW] = Z;}

To #define MAG_ORIENTATION(X, Y, Z) {magADC[ROLL] = X ; magADC[PITCH] = Y; magADC[YAW] = -Z;}

So Y became -X, X became Y, and Z became -Z. But I think it depends on how your sensor is mounted.
ACC and Gyro orientation remained the same. Only the MAG has changed

Better check yours is correct before flying at http://www.multiwii.com/faq#How_should_ ... directions

EDIT....

On the quad, I noticed also the gyro and ACC need changing.....
Last edited by wilco1967 on Mon Feb 27, 2012 8:49 pm, edited 1 time in total.

KeesvR
Posts: 194
Joined: Fri May 27, 2011 6:51 pm
Location: The Netherlands

Re: dev20120219 and new features... info?

Post by KeesvR »

Thanks, I use the stock settings, for this I check whats wright for me.

wilco1967
Posts: 156
Joined: Thu Aug 18, 2011 6:04 pm
Location: Winterswijk, Netherlands

Re: dev20120219 and new features... info?

Post by wilco1967 »

wilco1967 wrote:Hi,

Loaded dev 20120225, and as others have reported, baro works marvelous (BMP-085)..... Thanks !

However, there seems to be a problem with camstab (already since 20120203 I think it was)....
Camstab light comes on in GUI, but no response from servo's....
Earlier versions (before 0203) were OK.

My setup: Flyduino Mega board, with WM+, BMA-020, 5883 & BMP-085 on a Tri.
Also noticed, I had to change the mag orientation in this revision


Not sure if reported somewhere already, but I think I found the problem with camstab not working...

In MultiWii_dev tab, the following is defined.

#define BOXACC 0
#define BOXBARO 1
#define BOXMAG 2
#define BOXCAMSTAB 3
#define BOXCAMTRIG 4
It looks like this means, camSTAB is supposed to be on the 4rd row (0,1,2,3, i.e. 4th) row from the GUI)
CamTRIG is supposed to be on the 5th row....

However, in the GUI, they are just reversed...
When I configure the GUI to activate canTRIG on a switch, the camstab starts to work....

So it seems like it is just a text error in the GUI..... :)

Alexinparis
Posts: 1630
Joined: Wed Jan 19, 2011 9:07 pm

Re: dev20120219 and new features... info?

Post by Alexinparis »

Hi,
nice find ;)
thanks

Post Reply