Search found 1976 matches

by PatrikE
Fri Jul 10, 2015 9:47 pm
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 329267

Re: Airplane mode RTH

The config looks correct.
Can you Test the I2C gps on a V2.3 version? ex the FW Nav from April -14
https://multiwii.googlecode.com/svn/bra ... 140402.zip

Just to rule out the new MWii version and the I2C.
by PatrikE
Thu Jul 09, 2015 6:51 pm
Forum: Shields, boards and sensors
Topic: Did I brick my Bluetooth?
Replies: 1
Views: 1331

Re: Did I brick my Bluetooth?

Maybe it have reset to factory default.
Test to connect it direct on a FTDI.
You should get answer from it if you change to correct Baudrate.
by PatrikE
Wed Jul 08, 2015 9:51 am
Forum: Software
Topic: Cleanflight aka Multiwii port to STM32 F10x and F30x
Replies: 761
Views: 1575983

Re: Cleanflight aka Multiwii port to STM32 F10x and F30x

Cleanflight don't have Gps functions for Fixedwing.
Only for visual functions on OSD.
by PatrikE
Wed Jul 08, 2015 9:47 am
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 329267

Re: Airplane mode RTH

Ok problem isolation.
Check the settings in I2C_GPS config.
Baudrate etc.
by PatrikE
Tue Jul 07, 2015 8:11 pm
Forum: Software
Topic: Airplane RTH BaseFlight
Replies: 143
Views: 137482

Re: Airplane RTH BaseFlight

The Fixed wing RTH is integrated in Baseflight official now.
It does RTH and Pos hold.
I have a unofficial version with the Cruise mode too.
BF Dev version
I'm not sure if Baseflight can run on a CC3D board.

I have started a Guide for Baseflight setup to.
http://fotoflygarn.blogspot.se/2015/01/ ... dwing.html
by PatrikE
Mon Jul 06, 2015 10:13 am
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 329267

Re: Airplane mode RTH

That sounds strange!.. " The GPSHOME box switches on and off " It indicates there's something wrong with the FIX. ( >= 5 sat ) At climbout the Motor should be at Max until hold altitude is reached. In all other GPS situations it should hold Cruise throttle and increase/decrease slowly depe...
by PatrikE
Wed Jul 01, 2015 11:02 pm
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 329267

Re: Airplane mode RTH

Try to enable RTH When you lauch.
It will climb out and start cirkling over your head intill you take over.
by PatrikE
Tue Jun 30, 2015 2:29 pm
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 329267

Re: Airplane mode RTH

I2C is practical if you want to connect a OSD.
But use my patched version.

You can fond the Cruise code in gps.c.
Search for GEO
by PatrikE
Thu Jun 25, 2015 7:59 pm
Forum: Getting Started - MultiWii config and setup
Topic: Serial
Replies: 1
Views: 818

Re: Serial

How about this checkbox in Gui settings tab?
Image
by PatrikE
Wed Jun 24, 2015 8:16 am
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 329267

Re: Airplane mode RTH

I had many many problems yesterday with sync of the PPM stream. Sometimes all the channels got blocked or their values were changing. When I went to disarm some servos went to weird positions and the motor went to 45% power !!!. Bad things. This was happening until I modified the limits of the chan...
by PatrikE
Tue Jun 23, 2015 1:46 pm
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 329267

Re: Airplane mode RTH

Ok, I will test with 8ch for now. In config.h like this ? /********************************************************************/ /**** RSSI ****/ /********************************************************************/ //#define RX_RSSI //#define RX_RSSI_PIN A3 #define RX_RSSI_CHAN 8 //RSSI injection...
by PatrikE
Tue Jun 23, 2015 11:43 am
Forum: Boards
Topic: Atmega 328P on Super X 125mm
Replies: 9
Views: 6776

Re: Atmega 328P on Super X 125mm

Weeeelcome to the dark side brm... :twisted:
by PatrikE
Tue Jun 23, 2015 9:03 am
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 329267

Re: Airplane mode RTH

Sounds like a good setup. The 3Way sw i usually set. PassThru|Acro|Horizon . If you have a second 3Way you can set GPSHOLD and RTH on it. But separate switches works fine if you have channels for it. You can inject RSSI as channel 8 or 9 to mwii. But increase from the synctime to >= 27µs to avoid th...
by PatrikE
Mon Jun 22, 2015 2:28 pm
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 329267

Re: Airplane mode RTH

Passthrough Uses no sensors only the input from TX. You get a small delay on the controls and FC is just doing the mixing based on TX. In the current mixtable it's not possible. You will have to modify it for separate inputs. One thing to take in consideration is The Pid's only have one output/Axis....
by PatrikE
Sun Jun 21, 2015 10:13 am
Forum: Connecting elements
Topic: in "Flight Config UI" flight Yaw constantly changing.
Replies: 2
Views: 1740

Re: in "Flight Config UI" flight Yaw constantly changing.

Hi. The acc fluctuation is normal. You can enable some Low Pass Filter to get a cleaner output from the ACC. ex. #define GYRO_LPF_98HZ or lower // 256 is default if nothing is enabled. Yaw is drifting because I-term is building up when it's stationary. It will correct itself when flying. So add some...
by PatrikE
Fri Jun 19, 2015 9:57 pm
Forum: Software development
Topic: Adding and/or refactoring V-Tail, HEX6H, OCTO8H support
Replies: 5
Views: 2313

Re: Adding and/or refactoring V-Tail, HEX6H, OCTO8H support

Hi and welcome. It's quite easy to modify a Mixer for motors. First element is Roll second is Nick Third is Yaw. motor[0] = PIDMIX(+Roll ,-Nick ,+Yaw); //MIDFRONT_L The easiest is to use OCTOFLATX and modify. Since all motors in in parallel line the Roll input need to be 1 for all motors. + on left ...
by PatrikE
Fri Jun 19, 2015 9:32 pm
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 329267

Re: Airplane mode RTH

I did a quick test.. With a diy I2C_GSP module and a diy FC. I had no problem connecting it without I2C errors. First i had errors but then i saw i had a Crius AIO defined and i only used a MPU6050 on the testFC... After i changed it no more errors. You can test it against stock V2.3 or 2.4 to ensur...
by PatrikE
Thu Jun 18, 2015 2:49 am
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 329267

Re: Airplane mode RTH

It's very unstable, rocks side to side a lot, perhaps due to wind or being very untrimmed? That's usually a sign of wrong CG..(Tail heavy) In the latest fw_Nav version i have added a field trim function. It only works via stick command by calibrating gyro inverted on the ground. And that means you ...
by PatrikE
Wed Jun 17, 2015 3:09 pm
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 329267

Re: Airplane mode RTH

The PWM generating code is over my level!.. But i don't experience jitter on my planes. And i agree the loop time is way overkill for a plane! For the Gps functions. I have "disabled" a lot of "Not needed" code to fit it in a 328. A plane can fly with a much simpler GPS code. Que...
by PatrikE
Wed Jun 17, 2015 2:56 pm
Forum: Boards
Topic: Atmega 328P on Super X 125mm
Replies: 9
Views: 6776

Re: Atmega 328P on Super X 125mm

Conclution from the specs..

• Integrated DC/DC voltage booster/Step down for 5v 1~2 cell operation

Processor runs on 5V and regulator accepts 3.3 to 7.4 volts.
You should probably select 5V in the IDE.
It will fail flashing if it's wrong.
by PatrikE
Wed Jun 17, 2015 2:38 pm
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 329267

Re: Airplane mode RTH

I think your Config.h is wrong.
The settings is 115200 and NMEA in the config.(My debug setup)
You need to adjust it to your GPS.

You need to set correct baudrate and protocol.
#define INIT_MTK_GPS Should be able to autoconfigure your GPS like settings in config file.
by PatrikE
Sun Jun 14, 2015 6:39 am
Forum: MultiWii tweaking - flying experience
Topic: Extending Bluetooth Range
Replies: 31
Views: 13903

Re: Extending Bluetooth Range

Check if your phone support OTG.
by PatrikE
Tue Jun 09, 2015 2:44 am
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 329267

Re: Airplane mode RTH

In V2.3 you can use
nav_mode == NAV_MODE_NONE

Or why not update to V2.4 FixedWing With Waypoints?
by PatrikE
Mon Jun 08, 2015 6:44 pm
Forum: Software development
Topic: MultiWii OSD - MWOSD
Replies: 873
Views: 336061

Re: MultiWii OSD - MWOSD

I see the Homarrow is really lagging but it's helpful.. A little creepy music tough;) A warning about the latest Baseflight release... For Ublox init it is set to pedestrian mode. That means GPS will not work properly in speeds over ~105 km/h. That's ok for slower planes but many planes easily excee...
by PatrikE
Mon Jun 08, 2015 4:42 pm
Forum: Software development
Topic: MultiWii OSD - MWOSD
Replies: 873
Views: 336061

Re: MultiWii OSD - MWOSD

I've made a small function to Push MSP messages from MWIi. Mainly for a small Variometer/Telemetry project using a 328 in a soaring plane. Just make a timeinterupt push to get the data you want. msp_push(GPS_SERIAL,MSP_ALTITUDE); In this case get the Vario data sent o the GPS_SERIAL port via a simpl...
by PatrikE
Mon Jun 08, 2015 4:29 pm
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 329267

Re: Airplane mode RTH

Pasthru was a thin i came up with before Nav code. Just to be able to be able to take over manually. And to stop the gyros when i carry the model.(I usually walk ~100m to my "field".) It followed during the tests of RTH. And saved the model more than once when a certain idiot had made some...
by PatrikE
Sun Jun 07, 2015 4:58 pm
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 329267

Re: Airplane mode RTH

rubadub wrote:what's the status of cruise mode and sticky rth?


CruiseMode seems to work.
I have only seen a few people who have tested yet.

Sticky rth is not done anything with yet.
Failsafe RTH is Sticky though.
It's only disabled if GPS mode is changed.
by PatrikE
Sun Jun 07, 2015 4:55 pm
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 329267

Re: Airplane mode RTH

PatrikE, could you seperate the navigation stuff from the gps code? would make the code more readable. thanks Since the Navigation is integrated in V2.4 and my hack basicly just uses direction to waypoint and Alt error. FW code is isolated in a single void. The rest is just some small tweaks to con...
by PatrikE
Wed Jun 03, 2015 10:35 am
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 329267

Re: Airplane mode RTH

For Waypoints figure one is most desirable.
Keep a line between Wp's.
Image
Some more D to stop the overshoot.
Maybe somewhere( P3, D1)

For RTH Booth pic 1 & 2 is quite ok

Is any modifications needed to MWii code to run this?
by PatrikE
Mon Jun 01, 2015 8:33 pm
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 329267

Re: Airplane mode RTH

There's no Naze port of the GPS code from V2.4.
But the current Baseflight have RTH and PosHold integrated.
I hardly believe TC will let Waypoints be intgrared.
by PatrikE
Sun May 31, 2015 10:22 pm
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 329267

Re: Airplane mode RTH

Ok.. I just uploaded the code in my trunk. m Here is a testflight with the code. m Switched to Mission at 0:10. I only cut throttle to loose altitude for landing at 2:40 Otherwise the flight was in mission mode. No other stick inputs. Weather here hasn't been the best for testing but maybe someone e...
by PatrikE
Sun May 31, 2015 9:16 am
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 329267

Re: Airplane mode RTH

I have never got it to track straight either. On the other hand i'm satisfied with getting the plane home with RTH. Played around a bit with PID's but don't get anything clearly better. Maybe the reaction time gets too long. It's more noticeable when flying waypoints. But there it seems I value may ...
by PatrikE
Thu May 28, 2015 10:45 pm
Forum: Getting Started - MultiWii config and setup
Topic: mulitwii config 2.4 java problem easy fix (pictures)
Replies: 10
Views: 16487

Re: mulitwii config 2.4 java problem easy fix (pictures)

Great tips.
Could this be pinned at the top someway?
by PatrikE
Wed May 27, 2015 6:18 pm
Forum: Getting Started - MultiWii config and setup
Topic: Tri Coptor Tail Servo not working.
Replies: 8
Views: 2186

Re: Tri Coptor Tail Servo not working.

#define MEGA_HW_PWM_SERVOS That moves Tailservo to Pin 11 witch isn't available on your board. So comment it to get D2 back /* HW PWM Servo outputs for Arduino Mega.. moves: Pitch = pin 44 Roll = pin 45 CamTrig = pin 46 SERVO4 = pin 11 (aileron left for fixed wing or TRI YAW SERVO) SERVO5 = pin 12 (...
by PatrikE
Wed May 27, 2015 5:19 pm
Forum: Ideas
Topic: Airplane mode RTH
Replies: 824
Views: 329267

Re: Airplane mode RTH

If the 3D model drifts back when the board is tilted something is wrong. Probably sensor orientation. If you have this board MultiWii_PRO_Flight_Controller You should select FFIMUv2 I think. You can see the pinout in the chart here. m FW_Nav_140402 is the latest "stable" relese for FixedWi...
by PatrikE
Mon May 25, 2015 8:18 am
Forum: Getting Started - MultiWii config and setup
Topic: Does multiwii auto calibrate ACC on startup? How to stop tha
Replies: 5
Views: 2133

Re: Does multiwii auto calibrate ACC on startup? How to stop

Acc only calibrates on command.
Gyro calibrates every powerup.
by PatrikE
Sun May 24, 2015 6:50 am
Forum: Getting Started - MultiWii config and setup
Topic: 328P TriCopter, tail servo causes FC to lock up
Replies: 5
Views: 1510

Re: 328P TriCopter, tail servo causes FC to lock up

I guess your servo draws more current than your BEC can deliver.
FC will then brown out and reboot because of the power drop.
Test to use a larger bec or separate bec for the servo.

I had the same problem in air with a plane.. (Not healthy!)
by PatrikE
Fri May 22, 2015 7:13 pm
Forum: MultiWii tweaking - flying experience
Topic: Extending Bluetooth Range
Replies: 31
Views: 13903

Re: Extending Bluetooth Range

If you have a somewhat modern Android phone the 433 USB can be connected via OTG cable.
Fully compatible with EZ gui.

I thought i remembered someone presented a BT antenna hack here.
And found brewski's thread.
viewtopic.php?f=6&t=5250
by PatrikE
Fri May 22, 2015 10:42 am
Forum: General discussions
Topic: Direct RC signal out from PPM
Replies: 7
Views: 2879

Re: Direct RC signal out from PPM

Hi, Did you set up correct in gui? Pull the Midpos slider fully to the left and it will change to channel instead of position. Camstab.png And don't activate Camstab in your case. You can also do it in config like this. #define SERVO_MIN {1020, 1020, 1020, 1020, 1020, 1020, 1020, 1020} #define SERVO...
by PatrikE
Fri May 22, 2015 10:23 am
Forum: Software development
Topic: MW2.4 stripped to the bone with GPS and Promini
Replies: 4
Views: 2062

Re: MW2.4 stripped to the bone with GPS and Promini

https://code.google.com/p/i2c-gps-nav/

It works on 2.4
No toggle Not with current code without some code changes.
And it consumes program space to.
by PatrikE
Thu May 21, 2015 4:51 pm
Forum: Getting Started - MultiWii config and setup
Topic: Servo invert for a tricopter
Replies: 8
Views: 3403

Re: Servo invert for a tricopter

Try to erase Eeprom.
It's probably old scrap left from earlier installation.
by PatrikE
Tue May 19, 2015 9:29 pm
Forum: Software development
Topic: MW2.4 stripped to the bone with GPS and Promini
Replies: 4
Views: 2062

Re: MW2.4 stripped to the bone with GPS and Promini

The Uart senses if you have GPS os FTDI connected.
But only one can be used.

I2C gps save some code size and you will have Uart free.
by PatrikE
Tue May 19, 2015 12:35 am
Forum: General discussions
Topic: Direct RC signal out from PPM
Replies: 7
Views: 2879

Re: Direct RC signal out from PPM

boaterguy wrote:Okay I can do that, but I'm running a mega board so pins A0 and A1 aren't broken out, is there an easy way to change them?


Mega dont use A0 &A1.
Try
34/44 instead of A0
35/45 instead of A1
33/46 instead of A2
by PatrikE
Mon May 18, 2015 10:42 am
Forum: General discussions
Topic: Direct RC signal out from PPM
Replies: 7
Views: 2879

Re: Direct RC signal out from PPM

Cam Stabilisation is still the easy way to do it.
Just select in the servotab witch channel to controll with.
And don't enable Camstab with AUX switch.
Then it will just follow the RC channels.
by PatrikE
Thu May 07, 2015 11:24 am
Forum: Connecting elements
Topic: Interfacing MultiWii with another board
Replies: 3
Views: 1919

Re: Interfacing MultiWii with another board

All Uart's is set to 115200 in config.h
Look in the MWosd project to get some clues how to pull MSP.