HobbyKing.com New Products Flash Sale
Reply
Thread Tools
This thread is privately moderated by HappySundays, who may elect to delete unwanted replies.
Old Sep 09, 2012, 10:50 PM
Enjoying the sunshine
HappySundays's Avatar
Australia, NSW, Sydney
Joined Feb 2011
3,065 Posts
Discussion
OpenAero32 on AfroFlight32 hardware

OpenAero32 Alpha 1.2 released

Change log:
  1. Added Flying wing + drag rudder mixer
  2. Updated to include baseflight revisions to r251
  3. Fixed mag hold

Release notes:
Mag hold now works. Don't forget to enter a value for Mag P[] otherwise you will get no rudder deflection.
To try the new drag rudder mixer, type "mixer fw_drag" in the CLI.
Don't forget to do a stick calibration with "cal sticks" too.
Outputs:
  1. Throttle 1
  2. Throttle 2
  3. Left elevon
  4. Right elevon
  5. Left drag rudder
  6. Right drag rudder

What is OpenAero32?
OpenAero firmware has matured the point that it fills the needs of most aeroplane and camera stability applications, but is constrained by the 8-bit hardware of the Atmel range and the complete lack of hardware PWM etc.
OpenAero32 will be completely free from these constraints.

Required software tools
Android and Windows-based GUI by nicodh
Android version: http://www.rcgroups.com/forums/showthread.php?t=1667520
Windows version: http://www.rcgroups.com/forums/showthread.php?t=1667516

Also a terminal emulator program such as Hercules or Hyperterminal will be required.

Source code is available at http://code.google.com/p/nextcopterplus/ in the 'OpenAero32' directory.

OpenAero32 user guide (preliminary)
http://code.google.com/p/nextcopterp...ro32_UserGuide

Naze32 manual:
http://www.abusemark.com/downloads/naze32_rev1.pdf

READ THIS FIRST:
At a minimum, after loading OpenAero32 you will have to set up the following:
1. Enable CPPM with "feature PPM" if needed.
2. Set the channel order with the "map" command.
3. Set the channel for a second aileron if used.
4. Set the flapmode to match your TX setup. See user guide for details.
5. Set a flap channel. See user guide.
6. Calibrate the acc for autolevel with "cal acc" in the flying attitude.
7. Calibrate the sticks in the flying position with "cal sticks".
8. Set any servo trims to neutral with "S[servo number]_trim = [whatever]". Do NOT use your TX trims.
9. Set the stability and autolevel triggers using the GUI

Only then will you have something you can test/play with.

DO NOT USE:
1. Any GPS functionality
2. Any baro functionality
...as your model will likely crash, catch fire and burn to ash.

WARNING:
OpenAero32 is always armed.
As such, make sure you have any props off when setting up.

This code has not been flight tested. Use at your own risk.

Files
HappySundays is offline Find More Posts by HappySundays
Last edited by HappySundays; Jan 28, 2013 at 02:00 AM.
Reply With Quote
Sign up now
to remove ads between posts
Old Sep 09, 2012, 10:51 PM
Enjoying the sunshine
HappySundays's Avatar
Australia, NSW, Sydney
Joined Feb 2011
3,065 Posts
Reserved
HappySundays is offline Find More Posts by HappySundays
Reply With Quote
Old Sep 09, 2012, 11:15 PM
You are a "go" for reentry
Maxthrottle's Avatar
High Orbit.....
Joined Jun 2009
6,761 Posts
Looking forward to the new plate form.
Maxthrottle is online now Find More Posts by Maxthrottle
RCG Plus Member
Latest blog entry: Freewing 90mm F-16C
Reply With Quote
Old Sep 10, 2012, 02:09 AM
Registered User
SupraGo's Avatar
Canada, AB, Vegreville
Joined Jun 2009
171 Posts
More memory, more power, more hardware to do it all, and the price for the hardware is reasonable. Will be REALLY interesting to see where this will be in six months or so?
I remember TriWiiCopter a year and a half ago, and see where it is now.
Be Happy not only on Sunday
Looking forward to this.
Bill
SupraGo is offline Find More Posts by SupraGo
Reply With Quote
Old Sep 10, 2012, 02:50 AM
Registered User
Joined Sep 2010
2,426 Posts
Yeah that imu I linked to has the same sensors so it should work (remember my afro has just stm32+mpu3050), with the addition of that imu I will get all the other sensors (and of course disable that 4200 lousy gyro).

Openlrs has also the function of telemetry, they call it "transparent serial bridge", so maybe it could also transfer the info the FC will give to it.

What about that thing, that it would look for valid signal on throttle of 9x receiver, and if no signal it initiates rth?

If I may offer some ideas for further functions (when basics will be already stable): - geofencing could be interesting (http://code.google.com/p/ardupilot-mega/wiki/GeoFencing)

Are you going to add support for a airspeed sensor too? ( http://store.diydrones.com/Breakout_...br-0004-03.htm )
msev is online now Find More Posts by msev
Last edited by msev; Sep 10, 2012 at 03:32 AM.
Reply With Quote
Old Sep 10, 2012, 05:02 AM
Enjoying the sunshine
HappySundays's Avatar
Australia, NSW, Sydney
Joined Feb 2011
3,065 Posts
Quote:
Originally Posted by msev View Post
Are you going to add support for a airspeed sensor too? ( http://store.diydrones.com/Breakout_...br-0004-03.htm )
How would you calibrate an air pressure sensor for airspeed?
You'd have to have a specfic pitot tube arrangement and I'd imagine it'd be less accurate than gps?

I don't plan to add any more device drivers, just port the OpenAero functionality and have the CLI GUI updated to allow setup of all the variables.
HappySundays is offline Find More Posts by HappySundays
Reply With Quote
Old Sep 10, 2012, 05:37 AM
Registered User
Joined Sep 2010
2,426 Posts
Yeah I meant this kit with pitots: https://store.diydrones.com/Kit_MPXV...v7002dp-01.htm

Its very important to know airspeed..And its very precise...Arduplane uses it...Here is an example, as you know gps measures groundspeed...it doesn't take wind into effect, while this sensor does..So it can prevent stalls.
msev is online now Find More Posts by msev
Reply With Quote
Old Sep 11, 2012, 03:02 AM
Registered User
Joined Sep 2010
2,426 Posts
What about altitude hold Happy?
msev is online now Find More Posts by msev
Reply With Quote
Old Sep 11, 2012, 03:44 AM
Enjoying the sunshine
HappySundays's Avatar
Australia, NSW, Sydney
Joined Feb 2011
3,065 Posts
Quote:
Originally Posted by msev View Post
What about altitude hold Happy?
Why not? A bit trickier than a multicopter as it would take a looong time to react to altitude change requests, but hmmm...

I can see the airspeed thing being useful if there was ever any kind of auto piloting.

Hmmm, this could get out of hand lol...
HappySundays is offline Find More Posts by HappySundays
Reply With Quote
Old Sep 11, 2012, 03:54 AM
Registered User
Joined Sep 2010
2,426 Posts
Naah one step at a time ...I think you are such a briliant programmer that it will be a piece of cake for you :P.

Which revision of naze32 do you own?

Throttle will be controlled by FC right?
msev is online now Find More Posts by msev
Last edited by msev; Sep 11, 2012 at 04:05 AM.
Reply With Quote
Old Sep 11, 2012, 05:53 AM
Enjoying the sunshine
HappySundays's Avatar
Australia, NSW, Sydney
Joined Feb 2011
3,065 Posts
Quote:
Originally Posted by msev View Post
Naah one step at a time ...I think you are such a briliant programmer that it will be a piece of cake for you :P.
Which revision of naze32 do you own?
I'm a lazy-ass programmer to be honest
I have one of the older green boards. I think it was the second cut and the first to be sold in any number.
It's missing the exposed TX/RX pads.
I hope to buy one of the newest ones and the FrSky level shifter as soon as the Delrin cases are back in.

Quote:
Throttle will be controlled by FC right?
Ahhh hmmm. Normally no, but in CPPM mode it gets passed through to a servo/ESC output.
However obviously in some advanced modes it would need to have control but you'd have to keep safety in mind.
HappySundays is offline Find More Posts by HappySundays
Reply With Quote
Old Sep 11, 2012, 06:12 AM
Registered User
Joined Sep 2010
2,426 Posts
But all the sensor combos in all revisions will be supported?
msev is online now Find More Posts by msev
Reply With Quote
Old Sep 11, 2012, 06:51 AM
Enjoying the sunshine
HappySundays's Avatar
Australia, NSW, Sydney
Joined Feb 2011
3,065 Posts
Quote:
Originally Posted by msev View Post
But all the sensor combos in all revisions will be supported?
Well I just pulled out the sonar code as that seemed surely pointless for an aeroplane. I don't think it works very well anyway. Everything else is there.
No plans to touch any other sensors.

The code is based on the latest r205 release but it branches from here on. I can't keep updating it from baseflight although others are welcome to.
HappySundays is offline Find More Posts by HappySundays
Reply With Quote
Old Sep 11, 2012, 04:30 PM
Registered User
Joined Sep 2010
2,426 Posts
Cool yeah it should remain as is...There are a lot of sensors already supported, it is enough..Yeah sonar is pointless..Have you tried gps code? Some guys are having problems with their flytron gps's..I also have one of those gps's as you know.
msev is online now Find More Posts by msev
Reply With Quote
Old Sep 12, 2012, 06:12 AM
Enjoying the sunshine
HappySundays's Avatar
Australia, NSW, Sydney
Joined Feb 2011
3,065 Posts
I have not tried GPS yet. I have an MTK module I bought from Adafruit recently.
http://adafruit.com/products/746
HappySundays is offline Find More Posts by HappySundays
Reply With Quote
Reply

Thread Tools

Similar Threads
Category Thread Thread Starter Forum Replies Last Post
New Product zeroGravity - An STM32 Flightcontroller based on PIPO32 hardware Jessestr Multirotor Talk 40 Jun 25, 2012 09:18 PM
Sold AfroFlight32 FC Board UK telfel Aircraft - Electric - Multirotor (FS/W) 1 May 02, 2012 11:20 AM
Poll Hardware vs. No Hardware patternpilot1 Slope 31 Mar 07, 2012 12:08 AM
Sold AfroFlight32 ~ without mag ~ timecop Aircraft - Electric - Multirotor (FS/W) 6 Feb 27, 2012 05:35 PM