Search found 46 matches

by Lecostarius
Thu Nov 12, 2015 10:24 pm
Forum: General discussions
Topic: MultiWii project still active?
Replies: 6
Views: 3220

Re: MultiWii project still active?

Wow - I did not know there exists a Spanish subforum :-)
by Lecostarius
Thu Nov 12, 2015 10:20 pm
Forum: Software development
Topic: IMU.cpp - Attitude of the Estimated Vector
Replies: 2
Views: 2285

Re: IMU.cpp - Attitude of the Estimated Vector

Hi, this is related to the fact that the angles measure two rotations where one is executed after the other. The order counts: if you first do the pitch rotation, and then the roll you get a different result than if you first rotate around roll and then pitch. Therefore, the formulas for the inversi...
by Lecostarius
Sun Sep 06, 2015 9:35 pm
Forum: Shields, boards and sensors
Topic: Bluetooth connectivity problems
Replies: 1
Views: 1579

Re: Bluetooth connectivity problems

I am not completely sure, but I guess you should post any Naze32 related question in the 32bit threads and not here. Chances are smaller that ppl in the 8bit section have much to say about the Naze32.
by Lecostarius
Sat Sep 05, 2015 5:45 pm
Forum: Software development
Topic: MW2.4 IMU.cpp bugs?
Replies: 28
Views: 10264

Re: MW2.4 IMU.cpp bugs?

David,

2nd version is right. The >> operator divides by two as often as its argument says, so by changing >>3 into >>2 we divide by 4, not by 8 any more. To compensate that, we omit the *2.

So it is alt.EstAlt = (alt.EstAlt * 3 + BaroAlt ) >> 2; just as Dennis wrote.

--Leco
by Lecostarius
Sun Aug 30, 2015 10:52 pm
Forum: Software development
Topic: MW2.4 IMU.cpp bugs?
Replies: 28
Views: 10264

Re: MW2.4 IMU.cpp bugs?

From your description I assume you might have looked at a version of the following: m I checked the code in 2.4 in IMU.cpp and it does not look as if the description in that document is accurate at all. In particular, the relative importance of accelerometer versus barometer is fixed at 1.5%/98.5% (...
by Lecostarius
Sun Aug 30, 2015 10:23 pm
Forum: Software development
Topic: MW2.4 IMU.cpp bugs?
Replies: 28
Views: 10264

Re: MW2.4 IMU.cpp bugs?

@ravid can you send me the URL of the description how to tune the ALT hold PID? I tried that myself today. All I can say is that D is required, which is probably due to a huge amount of smoothing that is applied to the Baro readings, and hence a large time delay. For me, large values of D (30 to 40)...
by Lecostarius
Wed Aug 26, 2015 11:08 pm
Forum: Software development
Topic: MW2.4 IMU.cpp bugs?
Replies: 28
Views: 10264

Re: MW2.4 IMU.cpp bugs?

David, I am not the best person to comment on the tuning process for Alt Hold PID since I did not have to tune it, it worked out of the box. I hope someone reads this who can help... anyway, if I find the time I will try myself the tuning and see how it behaves. If I do so, I will keep you updated. ...
by Lecostarius
Mon Aug 24, 2015 10:21 pm
Forum: Software development
Topic: MW2.4 IMU.cpp bugs?
Replies: 28
Views: 10264

Re: MW2.4 IMU.cpp bugs?

@Plüschi: thanks for the suggestion. It is much better readable like this. @ravid: I have a CRIUS AIOP and ALT HOLD is working. It is stupid, of course - I fly in hilly terrain, and it holds altitude over sea level, which means that it does not hold altitude above ground if going uphill or downhill....
by Lecostarius
Sun Aug 23, 2015 7:47 pm
Forum: Software development
Topic: MW2.4 IMU.cpp bugs?
Replies: 28
Views: 10264

Re: MW2.4 IMU.cpp bugs?

Here is the MW2.4 code: if(calibratingB > 0) { logBaroGroundPressureSum = log(baroPressureSum); baroGroundTemperatureScale = ((int32_t)baroTemperature + 27315) * (2 * 29.271267f); // 2 * is included here => no need for * 2 on BaroAlt in additional LPF calibratingB--; } // baroGroundPressureSum is no...
by Lecostarius
Sat Aug 22, 2015 11:19 pm
Forum: Ideas
Topic: Documentation for MultiWii firmware
Replies: 3
Views: 5238

Re: Documentation for MultiWii firmware

Definitely!

Can you please post here once you have published the material? :-)

Best, Leco
by Lecostarius
Sat Aug 22, 2015 11:14 pm
Forum: Software development
Topic: MW2.4 IMU.cpp bugs?
Replies: 28
Views: 10264

Re: MW2.4 IMU.cpp bugs?

Many thanks for sharing your observations! I guess the code with the alt estimation is correct as it is currently in 2.4. If you modified the 6 by a 7, what happens is that the relative impact of the new noisy barometer reading is reduced (a bit), and in general, your results are too big by a factor...
by Lecostarius
Fri Jul 31, 2015 7:21 pm
Forum: Software development
Topic: CRIUS AIOP v2.0/v2.1 dataflash logging
Replies: 17
Views: 5986

Re: CRIUS AIOP v2.0/v2.1 dataflash logging

After a quick scan through 2.4 code, I would say it is no problem to run the data logger in 2.4. The main issue is that the current design puts the logging commands all over the code, to make sure they do not spiky-fy the cycle time too much. Writing lengthy datagrams to the flash is time consuming....
by Lecostarius
Wed Jul 29, 2015 9:05 pm
Forum: ESCs, propellers , servos and radios
Topic: Need a TX recommendation
Replies: 6
Views: 3236

Re: Need a TX recommendation

Thanks a lot! I think it will be a Taranis, then. @FengShuiDrone: you are using two RX because each one of them does not have enough channels, right? Other than that, I can not see how you can make more independent functions available than the number of TX channels you have. But even so, with the ma...
by Lecostarius
Wed Jul 29, 2015 8:55 pm
Forum: Software development
Topic: CRIUS AIOP v2.0/v2.1 dataflash logging
Replies: 17
Views: 5986

Re: CRIUS AIOP v2.0/v2.1 dataflash logging

Question: is it worth it to switch from 2.3 to 2.4? If I would move to 2.4, I would certainly port my data logger to 2.4. But so far, I have not seen a compelling reason. Some of the discussion in the 2.4 forum even seemed to indicate that 2.4 is less stable than 2.3 was. I think you have tried it, ...
by Lecostarius
Thu Jul 16, 2015 9:43 pm
Forum: ESCs, propellers , servos and radios
Topic: Need a TX recommendation
Replies: 6
Views: 3236

Need a TX recommendation

Hi all, I would like to control a gimbal. I have a DX6i which has the 4 analog stick channels, plus two switchable channels (on/off, basically).This is clearly insufficient so I need to upgrade. But to what? I am looking for a FC that has 6 (more would be better but 6 will do) analog channels: the 4...
by Lecostarius
Wed Jun 24, 2015 11:31 pm
Forum: Shields, boards and sensors
Topic: HK Multiwii Pro with 90A current sensor
Replies: 2
Views: 2200

Re: HK Multiwii Pro with 90A current sensor

I dont know this sensor. Is it a current sensor, or a voltage sensor, or both? You say "current" all the time and then talk about voltage, so this part is unclear to me. I have current sensors which go both directions (positive and negative current), and therefore, do not read zero when th...
by Lecostarius
Sun Jun 21, 2015 12:08 am
Forum: Software development
Topic: How do I get debug info from the MultiWii to a Terminal/GUI?
Replies: 2
Views: 1909

Re: How do I get debug info from the MultiWii to a Terminal/

Serial.cpp contains a nice interrupt-driven serial library. It offers SerialWrite(uint8_t port, uint8_t c). I added SerialPrint(int port,char *message) to it as this: void SerialPrint(uint8_t port, char *s) { while (*s) SerialWrite(port, *s++); } #include "Serial.h" and you are ready to go...
by Lecostarius
Wed Mar 25, 2015 7:24 pm
Forum: Connecting elements
Topic: Problem with pultruded CFK tubes
Replies: 2
Views: 1702

Re: Problem with pultruded CFK tubes

I wish I had bought mine at the same supplier...
By the way, can you give me the coordinates of your supplier? I think I will become his customer, too :-)

(you can PM me if you dont want to post advertisements into the forum)

Cheers, Leco
by Lecostarius
Thu Mar 19, 2015 11:52 pm
Forum: Software development
Topic: 2.4 is finally here :)
Replies: 71
Views: 102172

Re: 2.4 is finally here :)

Hi all, thank you for the great work! -- By the way, where should any bug reports for 2.4 go? Incidentally, I have a bug report . Inflight calibration with the CALIB switch does not work as designed. The fix is as follows: lines 1016..1018 of MultiWii.cpp currently look like this (in 2.4, but the bu...
by Lecostarius
Sun Mar 15, 2015 10:06 pm
Forum: Connecting elements
Topic: Problem with pultruded CFK tubes
Replies: 2
Views: 1702

Problem with pultruded CFK tubes

Hi all, after my copter got more and more "wobbly" in the air, I discovered the reason: one of the arms - made of a CFK tube - was still very rigid against bending, but no longer against torsion. I could easily turn it by 10-20 degrees back and forth. This was not a problem with the fixati...
by Lecostarius
Wed Mar 11, 2015 11:17 pm
Forum: Shields, boards and sensors
Topic: Crius Aio Pro V2.0 and Crius Aio Pro V2.1
Replies: 9
Views: 13200

Re: Crius Aio Pro V2.0 and Crius Aio Pro V2.1

At least with Crius their engineers build quality products & know how to lay out boards as per manufacturer chip design parameters. Crius AIOP is the benchmark for the APM/ 8 bit Megapirates branch because of the reliability of these boards which appear to be copied from APM2.5 but with excepti...
by Lecostarius
Wed Mar 11, 2015 11:08 pm
Forum: Shields, boards and sensors
Topic: TX mid point drift
Replies: 8
Views: 2856

Re: TX mid point drift

I have the same with my TX. And no, it does not cause issues - there is a deadband implemented.

Cheers, Leco
by Lecostarius
Tue Mar 03, 2015 9:34 am
Forum: Shields, boards and sensors
Topic: Temperature dependency - copter not booting when cold?
Replies: 9
Views: 5745

Re: Temperature dependency - copter not booting when cold?

I found a clue to what stops my copter from booting in the cold: I think it is the accelerometer. I connected a cold, non-booting copter to MultiWiiConf and found that the ACC reading indicated that the device was tilted 90 degrees (which it wasn't). The ACC reading would also not change over time, ...
by Lecostarius
Sun Feb 22, 2015 1:58 pm
Forum: Shields, boards and sensors
Topic: MultiWii Sensors
Replies: 11
Views: 3789

Re: MultiWii Sensors

Hi Ammarali,

I just checked and the log file for a 65 second flight has 10 MByte (in human-readable ASCII) or 520 kByte as Matlab .mat file, so I can post neither of them here. PM me your email and I will send it to you.

BTW, which hardware do you have?

Cheers, Leco
by Lecostarius
Sat Feb 21, 2015 10:21 am
Forum: Shields, boards and sensors
Topic: MultiWii Sensors
Replies: 11
Views: 3789

Re: MultiWii Sensors

Maybe you want to take a look into the datalogging for Crius AIOP v2 that I posted elsewhere in this forum. I set out to do exactly the same that you did - analyze in detail the control loop behaviour and how the PID works. I am now logging all the relevant sensor values every MultiWii cycle - so es...
by Lecostarius
Fri Feb 20, 2015 5:16 pm
Forum: Ideas
Topic: Computer Controlled Programmable MultiWii Y6
Replies: 7
Views: 3272

Re: Computer Controlled Programmable MultiWii Y6

I think the easiest way to control a flying MultiWii drone via a computer is by Bluetooth. Basically, attach a bluetooth class 1 (for range) dongle to your copter, and then connect to this using simple serial protocol (any terminal program will do that). That enables you to give commands (using the ...
by Lecostarius
Wed Feb 18, 2015 1:35 pm
Forum: Software development
Topic: Initialization of PWM for Mega boards
Replies: 1
Views: 1458

Initialization of PWM for Mega boards

Everyone, I stumbled over the initialization of the compare registers for timers 3 and 4 for the Atmel Mega controllers. This is used to set the PWM rate. In Output.cpp there is the following line: ICR3 |= 0x3FFF; // TOP to 16383; If ICR3 is set to 16383, the PWM frequency will be half of (16 MHz / ...
by Lecostarius
Sun Feb 15, 2015 9:45 pm
Forum: MultiWii tweaking - flying experience
Topic: Is there sth wrong with zero D (Pitch & Roll)?
Replies: 6
Views: 3402

Re: Is there sth wrong with zero D (Pitch & Roll)?

Well, I tried to optimize them. It is embarassing to say, but I do not notice -probably due to a lack of flying experience- a huge difference in performance between P values as long as they are in the range between 2 and 10 or so. Less than 2 or more than 10 is pretty bad though. The response gets &...
by Lecostarius
Sun Feb 15, 2015 3:04 pm
Forum: MultiWii tweaking - flying experience
Topic: Is there sth wrong with zero D (Pitch & Roll)?
Replies: 6
Views: 3402

Re: Is there sth wrong with zero D (Pitch & Roll)?

I did a logging of the Gyro values inflight and found that for the default values of D, the motor PWM signals are sometimes dominated by D response, probably due to noise with the Gyros (probably vibrations, I guess). That D induces control signal is very spiky. Therefore I reduced D to very little ...
by Lecostarius
Sun Feb 08, 2015 11:36 pm
Forum: Software development
Topic: CRIUS AIOP v2.0/v2.1 dataflash logging
Replies: 17
Views: 5986

Re: CRIUS AIOP v2.0/v2.1 dataflash logging

A bit unrelated but I did not want to open a new thread for that. It took me a while to figure out how the three LEDs on the CRIUS AIOP v2 board are connected, and how I can program them. Thought I can save someone else the time to look it up. Here it is: red LED (LED A) - Arduino digital pin 13 - A...
by Lecostarius
Sun Feb 08, 2015 11:26 pm
Forum: Shields, boards and sensors
Topic: Temperature dependency - copter not booting when cold?
Replies: 9
Views: 5745

Re: Temperature dependency - copter not booting when cold?

I still do not know the reason, but it is not the Transmitter. I put the copter outside and kept the transmitter indoors in the warm, and the problem appeared again. So it is most unlikely unrelated to the radio.
If I eventually find the reason for that problem I will post it here.

-- Leco
by Lecostarius
Sun Feb 01, 2015 11:09 pm
Forum: Shields, boards and sensors
Topic: I2C OLED thread
Replies: 62
Views: 60060

Re: I2C OLED thread

All, not power-up related, but in case you want to use the OLED and control the row and column when printing characters to the screen and want to use the 8x5 font that is supplied with the MWii code, the function that sets the cursor position is not right. It looks like this (in LCD.cpp): void i2c_O...
by Lecostarius
Mon Jan 26, 2015 9:17 pm
Forum: Shields, boards and sensors
Topic: Temperature dependency - copter not booting when cold?
Replies: 9
Views: 5745

Re: Temperature dependency - copter not booting when cold?

Thanks for the input, I did not think about that. Way to try without oscilloscope would be to keep the TX outside for 30 min and the copter indoors, and then try to fire it up with the cold TX. I will try and report the result.

Cheers, Leco
by Lecostarius
Sun Jan 25, 2015 9:31 pm
Forum: Shields, boards and sensors
Topic: Temperature dependency - copter not booting when cold?
Replies: 9
Views: 5745

Temperature dependency - copter not booting when cold?

Hi everyone, I encounter the problem that my copters are not booting up properly. I have the assumption that it is related to temperature - they are always booting without trouble when it is warm (indoors), and often have trouble when I try to fly outside when it is cold. When I bring them back into...
by Lecostarius
Mon Jan 12, 2015 5:51 pm
Forum: Software development
Topic: CRIUS AIOP v2.0/v2.1 dataflash logging
Replies: 17
Views: 5986

Re: CRIUS AIOP v2.0/v2.1 dataflash logging

Hello Brewski, it is based on the MultiWii code from the official svn repository, last August. So most likely its a standard 2.3. The details about the svn version that I used originally, and the directory in the svn that I cloned, are in the documentation (cannot check it out from here, sorry). Che...
by Lecostarius
Sun Jan 11, 2015 6:53 pm
Forum: Software development
Topic: CRIUS AIOP v2.0/v2.1 dataflash logging
Replies: 17
Views: 5986

Re: CRIUS AIOP v2.0/v2.1 dataflash logging

Everyone, just to avoid confusion: this is *not* any flavor of official release. It is just something I wrote for myself and what I considered might be useful for others too, so I am sharing it. Beginners should definitely stay away from it and rather go for one of the well-maintained and thorougly ...
by Lecostarius
Sun Jan 11, 2015 6:36 pm
Forum: Software development
Topic: CRIUS AIOP v2.0/v2.1 dataflash logging
Replies: 17
Views: 5986

Re: CRIUS AIOP v2.0/v2.1 dataflash logging

Everyone,

and here is the final part, the MultiWii code itself.

Cheers, Leco
by Lecostarius
Sun Jan 11, 2015 6:35 pm
Forum: Software development
Topic: CRIUS AIOP v2.0/v2.1 dataflash logging
Replies: 17
Views: 5986

Re: CRIUS AIOP v2.0/v2.1 dataflash logging

Everyone,

attached is the code of MultiWiiConf.

Cheers,

-- Leco
by Lecostarius
Sun Jan 11, 2015 6:31 pm
Forum: Software development
Topic: CRIUS AIOP v2.0/v2.1 dataflash logging
Replies: 17
Views: 5986

CRIUS AIOP v2.0/v2.1 dataflash logging

Everyone, I put together a MultiWii version that supports logging to the dataflash chip that is part of the Crius AIOP2 V2 board. It is based on a great low-level library made by Jordi Munoz and Jose Julio. Many different parameters can be logged in-flight, and the log can be downloaded via an exten...
by Lecostarius
Wed Dec 03, 2014 1:20 pm
Forum: Software development
Topic: New IMU Drotek 10DOF with MPU9150 and MS5611
Replies: 2
Views: 1549

Re: New IMU Drotek 10DOF with MPU9150 and MS5611

Hawk,

did anybody reply to your request how to add / submit code to the main project?
by Lecostarius
Sun Nov 23, 2014 10:25 pm
Forum: Software development
Topic: Alt hold with sonar
Replies: 6
Views: 2753

Re: Alt hold with sonar

I tried Sonar myself. It took me a long time to make it work. I could not get the cheap boards to work at all (they only worked reliably as long as the copter was not running and producing noise and turbulences and vibration), and even for the expensive MaxBotix Sonar, I had to use the one with the ...
by Lecostarius
Sun Nov 23, 2014 10:14 pm
Forum: Software development
Topic: YGE ESC calibration (and reset from error)
Replies: 0
Views: 850

YGE ESC calibration (and reset from error)

Hi all, I am using ESCs made by YGE, which have a special calibration procedure that the current MultiWii code can not generate. Therefore, I created some code which calibrates all of them at once. I post it below in the hope that it is useful to others that use YGE ESCs. The code is also useful to ...
by Lecostarius
Sun Nov 23, 2014 12:47 pm
Forum: ESCs, propellers , servos and radios
Topic: aeronaut cam-carb light vs APC props
Replies: 0
Views: 1686

aeronaut cam-carb light vs APC props

I just purchased a set of the new "cam-carb-light" Aeronaut propellers (first time for me to use them). I had experimented with several manufacturers of propellers, and so far I am using APC propellers; in particular the APC are sturdy enough to withstand an occasional crash and very durab...
by Lecostarius
Thu Oct 30, 2014 11:04 pm
Forum: Software development
Topic: MultiwiiConf Graphical Enhancements
Replies: 25
Views: 7168

Re: MultiwiiConf Graphical Enhancements

Hi Leo, thanks a lot for the beautiful update of MultiWiiConf! I am working on some additions to MultiWii and MultiWiiConf, and I like your improved look so much that I have now refactored my code to reflect all your modifications. If I ever manage to feed back my additions to the community, your im...
by Lecostarius
Sun Oct 26, 2014 12:40 pm
Forum: Getting Started - MultiWii config and setup
Topic: Compile MultiWiiConf-Basic HowTo
Replies: 16
Views: 21242

Re: Compile MultiWiiConf-Basic HowTo

Great that there is some interest. I am happy to share what I have. Sadly it is ongoing work, so not finished yet. Reading the logged values is done with MultiWiiConf - there is a new register tab called "Dataflash", and you just connect your copter after flying (and logging ), and hit the...
by Lecostarius
Mon Oct 20, 2014 11:37 pm
Forum: Getting Started - MultiWii config and setup
Topic: Compile MultiWiiConf-Basic HowTo
Replies: 16
Views: 21242

Re: Compile MultiWiiConf-Basic HowTo

Hi all, I am currently writing a Dataflash logging facility for MultiWii, using the Crius AIOP 2.0 built-in dataflash (AT45DB161 from adesto). First basic things are already working fine, including communication with MultiWiiConf - however, I encounter an unexpected difficulty when trying to create ...