Search found 1976 matches

by PatrikE
Wed Apr 22, 2015 10:22 am
Forum: Shields, boards and sensors
Topic: APM 2.6 to run Multiwii ?
Replies: 8
Views: 4123

Re: APM 2.6 to run Multiwii ?

setelu wrote:Hi guys, I'm new to all this. I have the apm 2.6 and I want to know if I can use the MultiWii program to modify code and test different cofiguraciones for a quadricopter.

APM board uses SPI bus and MWii I2C.

Not compatible without adding SPI protocol in MWii.
by PatrikE
Tue Apr 14, 2015 2:58 pm
Forum: General discussions
Topic: Question Bicopter vs Dualcopter
Replies: 2
Views: 4034

Re: Question Bicopter vs Dualcopter

Dualcopter have two counterrotating props like a simple coaxial helicopter. Motors controll Yaw and two servos control Roll and nick. Here's a video showing a Singlecopter.(Only one motor) but same principles. m You can search for Singlecopter in the forum. Or something like this. m A Bi copter can ...
by PatrikE
Sun Apr 12, 2015 1:14 pm
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 330411

Re: Airplane mode RTH

In my case, I don't use MW's failsafe, and instead use my receiver's programmable failsafe settings. So, I have RTH setup on an aux switch and can still make use of a sticky RTH feature. In that case MWii don't know it's in Failsafe. In a real failsafe case your plane will be circling over home unt...
by PatrikE
Sat Apr 11, 2015 4:43 pm
Forum: Software development
Topic: Sonar HC-SR04 Support now implemented in MW2.4
Replies: 102
Views: 74383

Re: Sonar HC-SR04 Support now implemented in MW2.4

When I pitch or roll the quadcopter drops altitude. I assume this is because the sonar is angled away from the ground and it thinks that it needs to reduce height. This code is already in IMU.cpp. It's something people have played with to compensate Throttle/Tilt on Helicopters. Maybe it can be use...
by PatrikE
Fri Apr 10, 2015 10:26 am
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 330411

Re: Airplane mode RTH

A small Update on the latest dev. In MissionPlanner this Modes is supported but need to be verified. MISSION_WAYPOINT - OK MISSION_JUMP - ? MISSION_RTH - ? Modes not supported by 328p FC and will result in PosHold. Should work on Mega FC's but needs to be verified. MISSION_HOLD_TIME MISSION_HOLD_UNL...
by PatrikE
Fri Apr 10, 2015 10:02 am
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 330411

Re: Airplane mode RTH

Hi Rub.. Like a Sticky mode.. When regaining control after Failsafe it would be good to not release the RTH until Pilot takes command... As it is now it just releases the moment Failsafe conditions is OK and can leave the plane in Pasthru. Fence function have kind of that. You must toggle RTH before...
by PatrikE
Thu Apr 09, 2015 10:31 am
Forum: Software development
Topic: Navigation based failsafe
Replies: 24
Views: 10272

Re: Navigation based failsafe

It should be possible to use same code i use for Fxedwing navigation code
by PatrikE
Wed Apr 08, 2015 4:10 pm
Forum: Getting Started - MultiWii config and setup
Topic: Copter not enough power
Replies: 7
Views: 2379

Re: Copter not enough power

Normally caused by vibrations...
Balance motors and props.
by PatrikE
Wed Apr 08, 2015 10:05 am
Forum: Shields, boards and sensors
Topic: Is there a way to read the internal sensors of your card?
Replies: 1
Views: 1287

Re: Is there a way to read the internal sensors of your card

If you search an Arduino playground you can find example code for most common sensors to start with.
http://playground.arduino.cc/Main/Inter ... rdware#DOF
Or Google for library for your sensors.
by PatrikE
Sun Apr 05, 2015 10:45 am
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 330411

Re: Airplane mode RTH

Well im lost in the IMU stuff. Just some other unsorted thoughts...(Rambling..) The way it works today isn't really perfect. If the plane is moving heading is overwritten By GPS. (that's OK.) But when the plane is stationary It's not. That means the heading jumps back to where Mag or Gyro say it's p...
by PatrikE
Sun Apr 05, 2015 10:22 am
Forum: General discussions
Topic: Quadcopter with wing
Replies: 5
Views: 2868

Re: Quadcopter with wing

That would be interesting if I could take a look at it. Do you think I somehow could use QUADX for hover-mode and FLYING_WING for fly-mode and toggle between them from one of the switches on the transmitter? Mwii cant handle multiple models like that. You need to create a new model and add both ser...
by PatrikE
Wed Apr 01, 2015 11:29 am
Forum: Getting Started - MultiWii config and setup
Topic: Can't Arm after Activating Failsafe
Replies: 9
Views: 3183

Re: Can't Arm after Activating Failsafe

If ex throttle is below threshold value Failsafe is activated and you can see that ANGLE mode always is active in Gui.

This goes for the first 4 channels.
Check the ANGLE box in Gui.
If it's always active you have triggered Failsafe somehow.
by PatrikE
Tue Mar 31, 2015 9:22 pm
Forum: General discussions
Topic: Quadcopter with wing
Replies: 5
Views: 2868

Re: Quadcopter with wing

You need to create a mixer that combine motors and control surfaces.
The transformation can be done in several ways.
Either you can switch from transmitter or you can use the sensors to handle the switching.
I have done about same on SingleCopter once.
I think i still have the code somewhere.
by PatrikE
Mon Mar 30, 2015 2:05 pm
Forum: Getting Started - MultiWii config and setup
Topic: Mount rotation offset setting?
Replies: 5
Views: 2114

Re: Mount rotation offset setting?

Cereal_Killer wrote:Is changing the def.h really the ONLY way, can't you just use the overrides in config.h?

It's enough to do the changes in config.h
by PatrikE
Mon Mar 30, 2015 8:06 am
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 330411

Re: Airplane mode RTH

As i understand you use / prefer GPS bearing instead of mag for RTH. I do since planes usually don't fly where the nose points. But often a bit sideways in wind. GPS gives a more true course. Today i just overwrite MAG course if it diff from GPS. But it would be nice to use sensor fusion with gyro ...
by PatrikE
Sun Mar 29, 2015 9:45 pm
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 330411

Re: Airplane mode RTH

The navigation for fixedwing is written for RTH as it is now.
It need to be modified to be able to run ex Althold separatly.

Cap is short for capacitator.(Kondensator)
And is connected on a free servo output.
It filters out some of the dips in power.
by PatrikE
Sun Mar 29, 2015 5:40 pm
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 330411

Re: Airplane mode RTH

Actually Baromode is only for copters and handles only throttle and can stall the plane if you use Elevator. Disable Barocode in config.h with this define or don't use it.. #define SUPPRESS_BARO_ALTHOLD I will isolate the code later. I guess you're on the correct path on the other issues!.. Bad cali...
by PatrikE
Sun Mar 29, 2015 11:43 am
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 330411

Re: Airplane mode RTH

Well this is what i have come up with. Reused most calculations from inside MWii code. Hijacking safe_wp_distance as distance to make it settable from WinGui You also need to take a look at Fence radius . It will force the plane to RTH if it exceeds that distace. #ifdef FIXEDWING static int32_t hh; ...
by PatrikE
Sat Mar 28, 2015 7:40 pm
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 330411

Re: Airplane mode RTH

Does anyone have the formula room calculate longitude scaling available?
That seems.to be the last piece missing now.
by PatrikE
Fri Mar 27, 2015 9:14 pm
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 330411

Re: Airplane mode RTH

Can this latest approach be easily ported to naze32 -> baseflight? Since a lot of people are using that on that platform aparently , cruise mode would be a really nice addition. How about rally points do you think they would be portable to baseflight? Cruise mode Yes but Maybe we can test it on 8bi...
by PatrikE
Fri Mar 27, 2015 1:02 pm
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 330411

Re: Airplane mode RTH

A raw Idé how to implement it. I think this inside void GPS_set_next_wp function should do it. Just add the difference to the hold pos. if (f.GPS_mode == GPS_MODE_HOLD && f.MAG_MODE){ #define PRESET_DIST 1000 // Move WP forward xx meter #define GEO_SKALEFACT 110.0f // Scale to match meters f...
by PatrikE
Fri Mar 27, 2015 11:25 am
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 330411

Re: Airplane mode RTH

I had a much simpler approach in mind. Need to think about code size to support PRO mini FC's too. Constant update would mean it you get some wind drift and model turns right next_WP_loc would be right of the original target. And i don't like the Idé of letting a model flying away in infinity.(I hav...
by PatrikE
Fri Mar 27, 2015 9:01 am
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 330411

Re: Airplane mode RTH

I'm on it atm.. Just have to test if it works as good for real as in theory first.. Thinking to avoid more flightmodes. If Mag is active when hold is activated move pos ex 1km ahead. And simply use Poshold to maintain altitude ad navigate. When it reaches the target it will start circling there. 1 k...
by PatrikE
Thu Mar 26, 2015 3:13 pm
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 330411

Re: Airplane mode RTH

Hi.
Set Mwii failsafe on.
Olrs stop send ppm at failsafe.
Fixedwing Rth failsafe will take care of everything.
It is not the same as Mwii original FS.
You can check my blog where it's explained.
And a link to the absolute latest version.
Witch I have tested several flights now an it behaves good.
http://fotoflygarn.blogspot.com/2012/03 ... plane.html
by PatrikE
Wed Mar 25, 2015 9:53 am
Forum: Software development
Topic: AP FlightMode in upcoming 2.4
Replies: 14
Views: 7291

Re: AP FlightMode in upcoming 2.4

Uploaded a corrected file in previos post.
viewtopic.php?f=8&t=6220&p=62446#p62446
by PatrikE
Tue Mar 24, 2015 10:57 pm
Forum: Software development
Topic: AP FlightMode in upcoming 2.4
Replies: 14
Views: 7291

Re: AP FlightMode in upcoming 2.4

Your right again.
Or will work better.
by PatrikE
Tue Mar 24, 2015 2:53 pm
Forum: Software
Topic: Harakiri aka multiwii port to stm32
Replies: 1502
Views: 562600

Re: Harakiri aka multiwii port to stm32

Hoppsan.

You can get that if it's too long time between valid msp-packages.
Open protocoll.cpp
search for MSP_SET_RAW_RC

rcSerialCount = 50; // 1s transition
Increase to 150.
by PatrikE
Tue Mar 24, 2015 9:34 am
Forum: Getting Started - MultiWii config and setup
Topic: Change flying wing throttle pin
Replies: 6
Views: 1647

Re: Change flying wing throttle pin

dwhittin999 wrote:Awesome. It worked. Thanks PatrikE. You just showed me much about how the program works. :D

Then you can add more servos and motors for new functions ;) .
by PatrikE
Tue Mar 24, 2015 9:24 am
Forum: Software development
Topic: AP FlightMode in upcoming 2.4
Replies: 14
Views: 7291

Re: AP FlightMode in upcoming 2.4

Your'e right Carlos... Thats where it should go. I was somewhere in the blue and made the change in my modified version and didn't think about it. After line 1145 is the correct insert point. But here's a correct file to download and replace the original. MultiWii_AP_MODE.zip And placed in the prope...
by PatrikE
Mon Mar 23, 2015 11:28 am
Forum: Getting Started - MultiWii config and setup
Topic: Change flying wing throttle pin
Replies: 6
Views: 1647

Re: Change flying wing throttle pin

Use V2.4 And you should get the correct pinnout. In v2.3 W2 is on pin 37. Some info for setting up planes. m Otherwise you can do some Hacks.. In def.h Find the defs for flying wing. Change #define NUMBER_MOTOR 1 to 2 In Output find Mixtable for the wing. motor[0] = servo[7]; if (f.PASSTHRU_MODE) { ...
by PatrikE
Sun Mar 22, 2015 6:23 pm
Forum: Getting Started - MultiWii config and setup
Topic: Change flying wing throttle pin
Replies: 6
Views: 1647

Re: Change flying wing throttle pin

If you have 11 as left wing and 12 as right wing you have MEGA_HW_PWM_SERVOS defined in config.
Then throttle chould be on Pin 8

If you comment #define MEGA_HW_PWM_SERVOS Motor pin is 3 and wings is on pins 6 & 7.
by PatrikE
Sun Mar 22, 2015 11:49 am
Forum: Getting Started - MultiWii config and setup
Topic: WinGUI connection problem.
Replies: 16
Views: 5216

Re: WinGUI connection problem.

Hi Frank.
WinGui crashes like your's if
#define USE_MSP_WP isn't enabled in Config.h
But the older "Stable" version don't have support for Waypoints.


If you use my Version it's set as V2.3 in order to work with Wingui.
MWii Gui from V2.3 & V2.4 will work.
by PatrikE
Sun Mar 22, 2015 11:29 am
Forum: Software development
Topic: Artificial height limit
Replies: 3
Views: 1803

Re: Artificial height limit

Hello fpv_downunder, If you use GPS, it is already there, in config.h: MAX_NAV_ALTITUDE 100 // in meter Regards, Rudolf Only during Navigation!... Use V2.4 with this. Replace your original file with this MultiWii.cpp. m Add.in config.h #define LIMIT_ALTITUDE 100 // Max Ceiling in Meter It will alwa...
by PatrikE
Fri Mar 20, 2015 11:38 am
Forum: Software development
Topic: AP FlightMode in upcoming 2.4
Replies: 14
Views: 7291

Re: AP FlightMode in upcoming 2.4

Patrik, can u be more specific?? Where to restore your code snippet?? Why it was excluded by EOS after his NAV version?? (is there a conflict between AP Aflightmode and NAvigation??) In released Version 2.4 m After line 1145 in multiwii.cpp ln:1144 if (f.GPS_FIX) { ln:1145 if (GPS_numSat >5 ) { Ins...
by PatrikE
Thu Mar 19, 2015 3:00 pm
Forum: ESCs, propellers , servos and radios
Topic: Servo trigger on certain altitude (high altitude balloon)
Replies: 6
Views: 3028

Re: Servo trigger on certain altitude (high altitude balloon

You might consider to use Lock after closing. Or when descending xx m/sec if something happens on the way up ex a Balloon burst Otherwise it will open again on the way down! Your code keeps it open regardless if it's ascending or descending between the altitudes. And freefall speed can be around Mac...
by PatrikE
Wed Mar 18, 2015 1:17 pm
Forum: ESCs, propellers , servos and radios
Topic: Servo trigger on certain altitude (high altitude balloon)
Replies: 6
Views: 3028

Re: Servo trigger on certain altitude (high altitude balloon

This should work #if defined(CAMTRIG) #define OPEND_HATCH 1000 // µs #define CLOSED_HATCH 2000 #define OPEN_AT_ALT 250000// cm #define CLOSE_AT_ALT 300000 static boolean lock = false; if(est.EstAlt > CLOSE_AT_ALT) servo[2] = CLOSED_HATCH; lock = true; else if( est.EstAlt > OPEN_AT_ALT && !lo...
by PatrikE
Wed Mar 18, 2015 9:54 am
Forum: ESCs, propellers , servos and radios
Topic: Servo trigger on certain altitude (high altitude balloon)
Replies: 6
Views: 3028

Re: Servo trigger on certain altitude (high altitude balloon

The Altitude in Mwii is 32-bit and have a range of -2,147,483,648 to 2,147,483,647 cm. Easiest should be to make a new model in MWii. And a new mixer in output to handle the servo. Maybe you want to control more servos or functions too? It should be easy to make a release function that controls ball...
by PatrikE
Wed Mar 18, 2015 9:17 am
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 330411

Re: Airplane mode RTH

Hi Rub, The goal was from start a working Failsafe RTH for safer FPV. That works well now. Next goal is to merge it in the new Multiwii V2.4 version. With working Waypoints etc. Im almost there now. I just need more in air testing atm. Flying season is almost here again now. Later i will try to add ...
by PatrikE
Mon Mar 16, 2015 3:37 pm
Forum: Pictures & Videos
Topic: SingleCopter
Replies: 6
Views: 6883

Re: SingleCopter

Time to unleash it and maiden soon now!... ;)
by PatrikE
Mon Mar 16, 2015 10:45 am
Forum: Software development
Topic: 2.4 is finally here :)
Replies: 71
Views: 102211

Re: 2.4 is finally here :)

@stonemag,

Can you provide compiled Gui's for non developers?
Not everyone have a compiler installed or the knowledge howto..

Win,Mac & Linux for most users.
by PatrikE
Sun Mar 15, 2015 6:24 pm
Forum: Software
Topic: AfroMini32 PPM to Servo (Baseflight)?
Replies: 3
Views: 2009

Re: AfroMini32 PPM to Servo (Baseflight)?

set small_angle = 25
Only arms if angle is smaller than 25 degrees.

180 should disable completely it i think.
by PatrikE
Sun Mar 15, 2015 3:19 pm
Forum: Software
Topic: AfroMini32 PPM to Servo (Baseflight)?
Replies: 3
Views: 2009

Re: AfroMini32 PPM to Servo (Baseflight)?

I'm not sure it works at all with the new servohandeling in BF. I guess you will have to buikd a custom servomixer. I have made a tool to build the mixers for windows. It's explained in my howto with link to the program. m The latest version is here.(might be unstable yet) m And a tip on servonumber...
by PatrikE
Sat Mar 14, 2015 12:28 pm
Forum: Software development
Topic: GPS NAV
Replies: 964
Views: 406171

Re: GPS NAV

Mission data stored in EEPROM? I nead mission correction in flaight. Is there possible to implement this function? Yes mission is stored in eeprom. So modifying it may/will cause glitches. In my opinion mission should be stored in eeprom then copy to RAM while arming and if the FC is armed FC shoul...
by PatrikE
Sat Mar 14, 2015 11:09 am
Forum: Software development
Topic: AP FlightMode in upcoming 2.4
Replies: 14
Views: 7291

Re: AP FlightMode in upcoming 2.4

This should be a cleaner way to implement it. No messing with anything else than resetting the coordinates. if (f.GPS_mode == GPS_MODE_HOLD && abs(rcCommand[ROLL]) > AP_MODE || abs(rcCommand[PITCH]) > AP_MODE) { GPS_set_next_wp(&GPS_coord[LAT], &GPS_coord[LON],&GPS_coord[LAT], &a...
by PatrikE
Sat Mar 14, 2015 9:23 am
Forum: Software development
Topic: AP FlightMode in upcoming 2.4
Replies: 14
Views: 7291

Re: AP FlightMode in upcoming 2.4

I think it should be as a option in PH mode.
Not everyone have advanced radios or skills to program them correctly.
by PatrikE
Sat Mar 14, 2015 9:16 am
Forum: ESCs, propellers , servos and radios
Topic: Carbon Fiber vs Nylon
Replies: 1
Views: 1401

Re: Carbon Fiber vs Nylon

Vibrations!...
I have cf props that have adapter rings in wrong diameter.
Check that the rings have a press fit in the hole.
If they can fall out or move they don't center properly.
by PatrikE
Wed Mar 11, 2015 8:40 pm
Forum: Software development
Topic: GPS NAV
Replies: 964
Views: 406171

Re: GPS NAV

The goal was from beginning to have a working Failsafe and RTH for Planes. Using only a MPU 6050 and GPS for a really poormans setup. And to avoid Magnetic interference etc as bonus. It works satisfying now with the current code. Split up like you say could be a good improvement. We can use the old ...
by PatrikE
Wed Mar 11, 2015 4:43 pm
Forum: Software development
Topic: GPS NAV
Replies: 964
Views: 406171

Re: GPS NAV

Feel free to improve.
It would be nice with fresh eyes on the code.
It's easy to be blind after a while.