Search found 1630 matches

by Alexinparis
Tue Jan 28, 2014 4:38 pm
Forum: Software development
Topic: export vibrations log as csv from multiwiiconf ?
Replies: 6
Views: 2104

Re: export vibrations log as csv from multiwiiconf ?

Or is it for cleaning the data from some random noise that is as high as what the 2 discarded bits can go (3 ?...) ? This is one of the reason: useless info on last bits due to noise. Is it to comply with some later computation in the stabilisation part that needs such truncation yes also, it avoid...
by Alexinparis
Tue Jan 28, 2014 3:53 pm
Forum: Software development
Topic: computeIMU() question
Replies: 3
Views: 1511

Re: computeIMU() question

Hi, 2 parts use the gyro Data : the IMU (where the angles are extracted) and the PID control. Fresh gyro data is more important for PID control as it is what ensure the very short term stability. => that’s why computeIMU() is done before the gyro reading. Empirically, 1 gyro read + 650us delay + 1 g...
by Alexinparis
Thu Jan 23, 2014 11:29 am
Forum: Connecting elements
Topic: MEGA_HW_PWM_SERVOS and a tricopter issues
Replies: 13
Views: 4747

Re: MEGA_HW_PWM_SERVOS and a tricopter issues

Thanks alex...I appreciate the help. How much dev would be required to re-route the TRI tail servo to one of the D44-D46 pins? Is it minimal or very involved? I'd be willing to do it if I could get some assistance and feedback on how it should be done... It would require to know how timers work in ...
by Alexinparis
Thu Jan 23, 2014 11:23 am
Forum: Getting Started - MultiWii config and setup
Topic: expo from MWC or Tx, which is better???
Replies: 4
Views: 1299

Re: expo from MWC or Tx, which is better???

csurf wrote:ok, so then I should completely disable expo & set dual rates to 100%/100% on my radio & setup expo via MWG?

yes,

And because each radio has its own representation of what is 100%/100%.
The advice is to adjust it to match the range [1000;2000] in GUI. It is generally higher than 100%/100%
by Alexinparis
Thu Jan 23, 2014 11:17 am
Forum: Software development
Topic: I think computeRC() needs reevaluation.
Replies: 6
Views: 2873

Re: I think computeRC() needs reevaluation.

Think in integer :

3999/4 = 999
4000/4 = 1000
4003/4 = 1000
4004/4 = 1001
=> 1000 for the range [4000 ;4003]

with +2 :

(3997+2)/4 = 999
(3998+2)/4 = 1000
(4001+2)/4 = 1000
(4002+2)/4 = 1001
=> 1000 for the range [3998 :4001] => more accurate
by Alexinparis
Thu Jan 23, 2014 11:04 am
Forum: Getting Started - MultiWii config and setup
Topic: Quad correcting very slowly in angle mode.
Replies: 9
Views: 2718

Re: Quad correcting very slowly in angle mode.

sidewinder wrote:Also Im tuning it Angle Mode, is that alright or it is absolutely necessary to tune in acro mode? I havent configured tx for acro mode actually, quad takes off either in Angle or Horizon mode.


ACRO mode must be perfectly tuned before using Angle or Horizon mode.
by Alexinparis
Thu Jan 23, 2014 11:02 am
Forum: Getting Started - MultiWii config and setup
Topic: Quad correcting very slowly in angle mode.
Replies: 9
Views: 2718

Re: Quad correcting very slowly in angle mode.

sidewinder wrote:Increasing P at 7 makes the quad jump up and down without much throttle input.


are you sure you tried to increase LEVEL P and not ROLL or PITCH P ?
by Alexinparis
Thu Jan 23, 2014 10:58 am
Forum: Connecting elements
Topic: MEGA_HW_PWM_SERVOS and a tricopter issues
Replies: 13
Views: 4747

Re: MEGA_HW_PWM_SERVOS and a tricopter issues

So, can someone please clarify the following: By running the tail servo off of the D2 pin & with the 'MEGA_HW_PWM_SERVOS' option disabled, am I or am I *not* getting HW PWM for the tail servo? Your are not getting HM PWM, but only software PWM. Don't worry, it still works If not, what can I do ...
by Alexinparis
Thu Jan 23, 2014 10:38 am
Forum: Getting Started - MultiWii config and setup
Topic: expo from MWC or Tx, which is better???
Replies: 4
Views: 1299

Re: expo from MWC or Tx, which is better???

However, I read somewhere that it's preferable to setup expo via the MW GUI due to the fact that is has higher resolution. Is this really the case? Yes it is the case. using the expo on your radio would be the same as using a numerical zoom instead of an optical zoom on a photo. you would loose som...
by Alexinparis
Thu Jan 23, 2014 10:35 am
Forum: MultiWii tweaking - flying experience
Topic: Servo filter?
Replies: 9
Views: 3033

Re: Servo filter?

hi, I'm new here... question: how can I add a feature request to make changing the value of gyroYawSmooth a configurable option through the GUI? I'm coming to MWC from the KK2 world, and the KK2 has a user-configurable option for setting up the servo filter for tricopters. Would this be a reasonabl...
by Alexinparis
Thu Jan 23, 2014 10:29 am
Forum: MultiWii tweaking - flying experience
Topic: Servo filter?
Replies: 9
Views: 3033

Re: Servo filter?

turkawa wrote:Thank you
static int16_t gyroYawSmooth = 2;
fixed the jitter for good..

very strange because this mod does not change anything to the filter...
by Alexinparis
Tue Jan 21, 2014 12:25 am
Forum: Ideas
Topic: Multiwii repository
Replies: 6
Views: 4420

Re: Multiwii repository

So I would also understand that the MW developers would not have the time for this kind of stuff, but others might have and when the MW communitity grows others might join. you got it it's a question of time Another thing is that it should really be integrated in the root of multiwii website to let...
by Alexinparis
Tue Jan 21, 2014 12:20 am
Forum: General discussions
Topic: Can only arm quad with aux switches!! NOT with sticks combo!
Replies: 11
Views: 12340

Re: Can only arm quad with aux switches!! NOT with sticks co

Arm quad with aux was introduced especially because some don't want to use the stick combination.
(could be problematic inflight because you can un arm the motors via sticks)
So as long as you have a ARM box checked, you can't use the stick combo, it's not a bug.
by Alexinparis
Tue Jan 21, 2014 12:14 am
Forum: Software development
Topic: Code changes for Spektrum Satellit
Replies: 16
Views: 5760

Re: Code changes for Spektrum Satellit

So with 1649 and up, when the signal is lost using Spektrum, you can't retrieve it after a good signal ?
I hope it's just a recent bug easy to fix
by Alexinparis
Tue Jan 21, 2014 12:07 am
Forum: Software development
Topic: I think computeRC() needs reevaluation.
Replies: 6
Views: 2873

Re: I think computeRC() needs reevaluation.

done in _shared
the most generic I could
by Alexinparis
Tue Jan 21, 2014 12:06 am
Forum: Software development
Topic: Old versions creeping in again?
Replies: 13
Views: 3819

Re: Old versions creeping in again?

done ;)
by Alexinparis
Fri Jan 17, 2014 12:33 am
Forum: Software development
Topic: Changes with R1625 introduced an error to MS561101 code
Replies: 5
Views: 2674

Re: Changes with R1625 introduced an error to MS561101 code

Sorry for this.

I think I found the bug (tested on the bench with some ice ;) ).
and corrected in r1649
by Alexinparis
Wed Jan 15, 2014 11:27 am
Forum: Software development
Topic: Steal 1ms of looptime? Ask me how.
Replies: 4
Views: 1754

Re: Steal 1ms of looptime? Ask me how.

Nunchunk is not affected. I have this running on mpu6050 for about 6 months. What you did is just remove the twice read + remove the fix delay between the 2 reads + and remove the moving average of gyro at each cycle. besides this, you inverted also the order of ACC vs GYRO read. This order is impo...
by Alexinparis
Wed Jan 15, 2014 11:01 am
Forum: Software development
Topic: Old versions creeping in again?
Replies: 13
Views: 3819

Re: Old versions creeping in again?

I am sure Alex did correct the line 103 in rx.cpp "SerialOpen(1,100000);" to "SerialOpen(SBUS_SERIAL_PORT,100000);" before. But that thing is wrong in shared again. I dont understand why. Subversion mixing up stuff? maybe because it wasn't mentionned here http://www.multiwii.com...
by Alexinparis
Wed Jan 15, 2014 10:43 am
Forum: Software development
Topic: I think computeRC() needs reevaluation.
Replies: 6
Views: 2873

Re: I think computeRC() needs reevaluation.

Hi, yes, you're right: - there is no need for a static rcDataMean[RC_CHANS] array, a single non static var is enough - staying on 4 values is probably more efficient (/16 is faster than /12) - is is also true we can save one index in rcData4Values[RC_CHANS][4] (we can do the same with rcData4Values[...
by Alexinparis
Tue Jan 14, 2014 10:36 am
Forum: Software development
Topic: Atmega328 with fet output for motor brushed
Replies: 39
Views: 23748

Re: Atmega328 with fet output for motor brushed

- 10k to 20k gate resistance on your fet design is a little bit much. - 328 is limited to 4 outputs. Except you throw out arduino timing and use timer 0 for pwm. - 32u4 does have more. I dont know exact numbers. While the chip spec is good, real life is not. Some of the OCXXX are not available on p...
by Alexinparis
Fri Jan 10, 2014 12:39 am
Forum: Ideas
Topic: Multiwii logo contest
Replies: 21
Views: 7784

Re: Multiwii logo contest

Hi, I think it's a good idea to formalize a logo. End of february seems to be fine for a first list. I suggest to open a poll after this period I'm aware of 2 logos for the moment: (see attachments) 1) the one made by a tricopter father (one of the pioneer) Signguy, aka Bob Desmarais m 2) the one ma...
by Alexinparis
Thu Jan 09, 2014 11:52 pm
Forum: Software development
Topic: MW 2.3 sbus problem
Replies: 108
Views: 42432

Re: MW 2.3 sbus problem

Hi,

inserted in r1648 ;)
I hope it's ok
by Alexinparis
Mon Jan 06, 2014 6:19 pm
Forum: MultiWii tweaking - flying experience
Topic: Expected performance of altitude hold and GPS hold modes?
Replies: 5
Views: 3767

Re: Expected performance of altitude hold and GPS hold modes

I have a new hex with the HK AIO board + NEO-6M GPS module, Multiwii 2.3. I'm wondering what sort of performance to expect from the "hold" modes... I have tried them and generally am unimpressed at present; I'd like to know if I should try tweaking, or if my expectations are just a bit un...
by Alexinparis
Mon Jan 06, 2014 6:05 pm
Forum: Software development
Topic: MW 2.3 sbus problem
Replies: 108
Views: 42432

Re: MW 2.3 sbus problem

I agree for a good solution the char timout is a must have. But for a quick fix timing change (and ralphs endbyte check) should do. Considering the difficulty and hostility i experienced introducing small patches for tarduino i'm all about quick fixes now. Hi, Believe me, there is no hostility on m...
by Alexinparis
Mon Jan 06, 2014 5:30 pm
Forum: Software development
Topic: Wishlist - MSP 2.2
Replies: 16
Views: 6781

Re: Wishlist - MSP 2.2

Hi, Bumping for generic get/set framework. I don't see clearly the request. Is it something: - like treym suggests (a generic customMSP table) - or the ability to change any multiwii variable ? <- I don't know how this can be done easily Also, while I'm writing here, a private MSP get/set range that...
by Alexinparis
Mon Jan 06, 2014 5:17 pm
Forum: General discussions
Topic: Renaming this subforum
Replies: 5
Views: 2771

Re: Renaming this subforum

Why only this sub forum ?
I don't think we will suffix every subforum by _8 or _32
" Board index ‹ 32bit section ‹ General discussions " should be explicit enough
by Alexinparis
Mon Jan 06, 2014 4:58 pm
Forum: Software development
Topic: A bug in THROTTLE_ANGLE_CORRECTION
Replies: 13
Views: 5824

Re: A bug in THROTTLE_ANGLE_CORRECTION

Right, there is something wrong here: /100 instead of *100 this error was introduced unintentionally by myself but EstG.V16.Z * 100 / ACC_1G is still not correct: because EstG.V16.Z * 100 can overflow as the result of 16bitx16bit will result in a 16bit temp var (at least on 8bit proc) EstG.V16.Z * ...
by Alexinparis
Mon Jan 06, 2014 4:17 pm
Forum: Software development
Topic: A bug in THROTTLE_ANGLE_CORRECTION
Replies: 13
Views: 5824

Re: A bug in THROTTLE_ANGLE_CORRECTION

Hi gurus, not a programming expert so wasn't sure how to make Alex's suggested change of "cosZ = mul(EstG.V16.Z , 100) / ACC_1G" work. Once I replaced the line in IMU.CPP and enabled AngleCorrection in the config.h, 2.3 wouldn't compile with the following messages: IMU.cpp: In function 'v...
by Alexinparis
Mon Jan 06, 2014 4:12 pm
Forum: Software development
Topic: Flying mode : using a second set of rc/expo rate
Replies: 2
Views: 1457

Re: Flying mode : using a second set of rc/expo rate

Hi,

We have already MULTIPLE_CONFIGURATION_PROFILES for this concept.
It is not currently possible to switch inflight the profile, but a box could be added for this purpose, nothing more.
It would also remove the need to have both set of variables in RAM like dual lookupPitchRollRC[]
by Alexinparis
Mon Jan 06, 2014 3:51 pm
Forum: MultiWii tweaking - flying experience
Topic: Servo filter?
Replies: 9
Views: 3033

Re: Servo filter?

Is there a filter for servo jitter in tricopter tail in config.h or somewhere else?? There is filter for gyro but not for servo i guess.. I looked for it and failed to find any info!! I build my first tri and i have an annoying tail servo jitter problem... Hi, There is a hardcoded filter for yaw tr...
by Alexinparis
Tue Dec 24, 2013 7:21 pm
Forum: Software development
Topic: V2.3 Baro Issue
Replies: 2
Views: 1613

Re: V2.3 Baro Issue

Hi developers, I've just found out that version 2.3 has been released and have tested it. Surprisingly, the copter didn't arm at all. After some research in this forum I found out: It's not a bug, it's a feature! http://www.multiwii.com/forum/viewtopic.php?f=8&t=4246 Unfortunately, this feature...
by Alexinparis
Tue Dec 24, 2013 2:29 pm
Forum: Software development
Topic: A bug in THROTTLE_ANGLE_CORRECTION
Replies: 13
Views: 5824

Re: A bug in THROTTLE_ANGLE_CORRECTION

Right, there is something wrong here: /100 instead of *100 this error was introduced unintentionally by myself but EstG.V16.Z * 100 / ACC_1G is still not correct: because EstG.V16.Z * 100 can overflow as the result of 16bitx16bit will result in a 16bit temp var (at least on 8bit proc) EstG.V16.Z * 1...
by Alexinparis
Wed Dec 11, 2013 10:17 pm
Forum: MultiWii tweaking - flying experience
Topic: [SOLVED]
Replies: 4
Views: 2018

Re: PID - I cant setup D value

try to lower the gyro lpf in config.h (42kHz for instance)
by Alexinparis
Mon Dec 09, 2013 12:50 am
Forum: Getting Started - MultiWii config and setup
Topic: Basic understanding, which motors have to run faster
Replies: 11
Views: 3240

Re: Basic understanding, which motors have to run faster

Hi,

The default PID should be ok to fly any multirotor.
If there is a sudden flip, it is something else. Maybe a wrong ESC-motor couple, or a bad minthrottle setting.
by Alexinparis
Sun Dec 08, 2013 12:58 am
Forum: Software development
Topic: 2.3 is finally here :)
Replies: 97
Views: 104971

Re: 2.3 is finally here :)

Hi,

stick scaling: before the stick rate was an expo factor, now it acts as a proportional factor on the whole range like rc rate. => more response at center now
by Alexinparis
Sun Dec 08, 2013 12:52 am
Forum: Getting Started - MultiWii config and setup
Topic: Basic understanding, which motors have to run faster
Replies: 11
Views: 3240

Re: Basic understanding, which motors have to run faster

When i roll the copter to the right i would expect, that the both right motors turn faster. But this doesn't seem to happen. As you can see on the screenshot the front left and the right back motor turns more than the other. Why is this so? I don't know if we do something basic wrong but maybe you ...
by Alexinparis
Sun Dec 08, 2013 12:49 am
Forum: General discussions
Topic: Controlling a Camera Gimbal using Aux Channel?
Replies: 12
Views: 10082

Re: Controlling a Camera Gimbal using Aux Channel?

you can reverse the rate and adjust servo conf min and max in the GUI, no ?
by Alexinparis
Sun Dec 08, 2013 12:45 am
Forum: Getting Started - MultiWii config and setup
Topic: Problem using serial com
Replies: 6
Views: 1783

Re: Problem using serial com

Hi,

You will have to use the only UART of the nanowii for this and connect RX/TX signal of xbee. You can't use the integrated USB port directly.
Consider xbee is just an UART extension, and on the ground use a ftdi module connected to the xbee.
by Alexinparis
Tue Dec 03, 2013 11:53 pm
Forum: Shields, boards and sensors
Topic: Accelerometer position on frame
Replies: 1
Views: 854

Re: Accelerometer position on frame

I don't think few cm will make any difference except if you have a frame with severe vibrations
by Alexinparis
Tue Dec 03, 2013 11:52 pm
Forum: Software development
Topic: Serial latency/out data
Replies: 12
Views: 3882

Re: Serial latency/out data

UART functions can't block anything in multiwii
hint: interrupt / background sending+receiving
by Alexinparis
Tue Dec 03, 2013 11:34 pm
Forum: Software development
Topic: Atmega328 with fet output for motor brushed
Replies: 39
Views: 23748

Re: Atmega328 with fet output for motor brushed

First 2 channels are OK, last 2 are not. Tested 8khz on nanowii. Motor 3 will go 50% throttle even disarmed, Motor 4 will do 0 to 50% only. The code you did take is a quite old version. New version has other PWM mode which allows 2 times the resolution. This is only relevant for 32khz and 64khz. Bt...
by Alexinparis
Mon Dec 02, 2013 12:33 am
Forum: Software development
Topic: AlexinParis - please comment your changes
Replies: 5
Views: 2016

Re: AlexinParis - please comment your changes

There are some changes only a dev can understand.
The small comment I added in the code should be enough for a real dev.

And as timecop mentioned, not every code change can be translated into a different user experience.
Some like this one is just a code rewrote with no impact on settings.
by Alexinparis
Mon Dec 02, 2013 12:27 am
Forum: Software development
Topic: Atmega328 with fet output for motor brushed
Replies: 39
Views: 23748

Re: Atmega328 with fet output for motor brushed

Alex, TY for implementing my high-freq brushed output in 2.3 shared. It DOES make brushed quads fly much better. 490hz is brutal on low inductance coreless mini motors. Why only for the 328 and not for 32u4 as well? There is a whole community using the 32u4 brushed on the "PocketQuad". St...
by Alexinparis
Thu Nov 28, 2013 12:51 am
Forum: Software development
Topic: Serial latency/out data
Replies: 12
Views: 3882

Re: Serial latency/out data

Hi, I'm not surprised about the latency you noticed using the internal USB of nanowii, because the communication layer is probably buffered somewhere (I never zoom in it, that's why you can still see Arduino function in Serial.cpp). But I'm surprised it's still the case using and external ftdi on a ...
by Alexinparis
Thu Nov 28, 2013 12:44 am
Forum: Software development
Topic: Atmega328 with fet output for motor brushed
Replies: 39
Views: 23748

Re: Atmega328 with fet output for motor brushed

Alex, TY for implementing my high-freq brushed output in 2.3 shared. It DOES make brushed quads fly much better. 490hz is brutal on low inductance coreless mini motors. Why only for the 328 and not for 32u4 as well? There is a whole community using the 32u4 brushed on the "PocketQuad". I ...
by Alexinparis
Fri Nov 22, 2013 5:49 pm
Forum: Getting Started - MultiWii config and setup
Topic: Throttle response no longer proportional?
Replies: 6
Views: 2290

Re: Throttle response no longer proportional?

you could try to reduce the LPF of your gyro in config.h
#define ITG3200_LPF_42HZ
or #define MPU6050_LPF_42HZ
depending on the one you have
by Alexinparis
Tue Nov 19, 2013 5:04 pm
Forum: Software development
Topic: Same speksat and sbus failsafe nonsense in 2.3..
Replies: 5
Views: 2875

Re: Same speksat and sbus failsafe nonsense in 2.3..

Plüschi wrote:Nice and readable isnt it?
Compared to the actual nested ifdef hell


The actual nested ifdef adds probably some useless code using failsafe, but it allows a MSP RC control override even with SBUS or SPEKTRUM.
by Alexinparis
Sun Nov 17, 2013 2:42 pm
Forum: Software development
Topic: GPS NAV
Replies: 964
Views: 401011

Re: GPS NAV

Hi ! Now I have time... so roadmap is the following : 1. Make WinGUI 2.3 ready (almost done) and finish WP upload code 2. Merge MW2.3 release into navi-dev codebase 3. Finish WP uploading code 4. Simulation tests 5. Flight tests It shouldn't take more than 2 weeks. You can follow (and/or test) here...