Search found 75 matches

by itain
Sun Oct 20, 2013 8:21 pm
Forum: Software development
Topic: Array out of bounds access
Replies: 10
Views: 4448

Re: Array out of bounds access

These values should be defined only once and the right place is in MultiWii.h.
by itain
Sun Oct 20, 2013 6:26 pm
Forum: Software development
Topic: Array out of bounds access
Replies: 10
Views: 4448

Re: Array out of bounds access

@schugabe, are you comparing to SVN version r1591?
Ales changed the range from [0;1000] to [0;999] in order to fix the reported array out of bounds access. I'm following the same line by using a [0;2559] range.
by itain
Sun Oct 20, 2013 3:52 am
Forum: Software development
Topic: Please fix use of prog_char
Replies: 2
Views: 1748

Please fix use of prog_char

The prog_* types are not accepted by new versions of avr-gcc. The problem was reported by NikTheGreek here for Ubuntu 13.04. I see the same errors with Fedora 19. changing [GPS.cpp, line 240] resolves the compile error. void SerialGpsPrint(const char PROGMEM * str) { ********************************...
by itain
Sun Oct 20, 2013 3:02 am
Forum: Software development
Topic: Array out of bounds access
Replies: 10
Views: 4448

Re: Array out of bounds access

a. Note that there is a redundant definition of MINCHECK and MAXCHECK: MultiWii.cpp:#define MINCHECK 1100 MultiWii.cpp:#define MAXCHECK 1900 MultiWii.h:#define MINCHECK 1100 MultiWii.h:#define MAXCHECK 1900 b. Those integer divisions by 100 are very inefficient. Please consider: tmp = constrain(rcDa...
by itain
Thu Oct 10, 2013 3:24 pm
Forum: General discussions
Topic: Ubuntu 13.04 and Arduino Ide
Replies: 7
Views: 2968

Re: Ubuntu 13.04 and Arduino Ide

Change (GPS.cpp line 244) to: void SerialGpsPrint(PROGMEM const char *str) { I hope to see that changed also in the SVN repository. The same problem exists also in Fedora 19 and probably in all the major Linux distributions. The type ` prog_char ' is defunct. Your Ubuntu installation is probably usi...
by itain
Mon Jul 15, 2013 5:06 pm
Forum: Software development
Topic: NOTICE: Trunk has been migrated to .cpp/.h files
Replies: 64
Views: 26409

Re: NOTICE: Trunk has been migrated to .cpp/.h files

3) all those static functions ... why are they static? AFAIK that confines a C-function to be only available in the file it is defined in. Declaring a function static doesn't seem to make a difference in the produced binary There may be two reasons: a. Optimization... Using static functions may hel...
by itain
Wed Apr 03, 2013 9:34 pm
Forum: Software development
Topic: MultiWii Serial Protocol help...
Replies: 44
Views: 28027

Re: MultiWii Serial Protocol help...

1. It's a binary protocol, and you need to send the checksum as well. From your question it looks like you are sending ASCII without checksum.

2. The two can run together... You can use the serial protocol while flying (eg, for an OSD).
by itain
Wed Feb 27, 2013 10:46 pm
Forum: Software development
Topic: GPS Functionality"Total Distance"
Replies: 6
Views: 2156

Re: GPS Functionality"Total Distance"

Look at https://code.google.com/p/rush-osd-development/source/browse/KV_Team_OSD/KV_Team_OSD.ino . The function calculateTrip is called every 50 ms and it is estimating the distance traveled from the GPS_Speed. Having the total travel distance calculated by the GPS code could provide more accurate r...
by itain
Sun Feb 10, 2013 1:20 pm
Forum: Software development
Topic: KV Team Multiwii OSD
Replies: 1021
Views: 389887

Re: SW Development on Minim Osd

Hi folks, as fpv regulations are still to evolve, i think we shoud put an identification field on the OSD, like cars have. There was a suggestion to add an optional "personal logo" in the form of two adjacent characters (total 24x18 pixels). Each pixel can be white, black or transparent. ...
by itain
Sun Feb 10, 2013 12:34 am
Forum: Software development
Topic: New Multiwii Serial Protocol
Replies: 409
Views: 219768

Re: New Multiwii Serial Protocol

Alexinparis wrote:Ok, tell me if you are ok with r1330 ;)

Thanks Alex. MSP_BOXIDS is working good as expected. I tested it in flight today today with r1333.

-- Itai
by itain
Mon Feb 04, 2013 4:50 pm
Forum: Software development
Topic: New Multiwii Serial Protocol
Replies: 409
Views: 219768

Re: New Multiwii Serial Protocol

What we can do : add a new array of uint16_t (more than 65k possibilities, or uint8_t maybe it’s enough) is order to uniquely identify a function over the time. The index id would still be variable, but the function comparison should be much easier. This new array could be grasp via MSP_BOXIDS. Is ...
by itain
Mon Feb 04, 2013 12:43 pm
Forum: Software development
Topic: New Multiwii Serial Protocol
Replies: 409
Views: 219768

Re: New Multiwii Serial Protocol

Subject: add MSP_BOXIDS . Each box would have a unique id, that should be stable across future versions of MultiWii. The reply to MSP_BOXIDS would be a list of these ids. I'm now deeply into development of the next software release for Rushduino and MinomOSD. I'm looking for a good way to find the c...
by itain
Sun Jan 27, 2013 11:51 pm
Forum: Software development
Topic: KV Team Multiwii OSD
Replies: 1021
Views: 389887

Re: SW Development on Minim Osd

Hi Carlo, Thanks I'm using Minim, and Vbat is coming from the MultiWill FC. Its displaying the correct voltage from the MultiWii FC. Its just that Vbat is flashing on the Minim dispay similar to this video. http://vimeo.com/52278772 (if I set the alarm level using the Minim menu from 255 right down...
by itain
Thu Jan 24, 2013 10:26 pm
Forum: Software development
Topic: KV Team Multiwii OSD
Replies: 1021
Views: 389887

Re: SW Development on Minim Osd

kataventos, Question: do you have a tool for debugging the code or do you flash the firmware, then connect the OSD to a MWC FC? I hope you have a program that you are running on the host computer that simulate the FC. There is no usable simulator yet. A simulator would be very handy for testing and...
by itain
Sun Jan 20, 2013 11:35 pm
Forum: Software development
Topic: KV Team Multiwii OSD
Replies: 1021
Views: 389887

Re: SW Development on Minim Osd

1. How to change to wide mode? Or is it set already? 2. When I arm the quadcopter, its not showing on the display as armed. Any ideas? I'm using R1316 btw and NTSC camera Thanks again for all your great work Start with 2. You need to edit Config.h and set the mode bits that would match your copter ...
by itain
Thu Jan 17, 2013 10:54 am
Forum: Software development
Topic: Sending MWC status cues via Serial Port
Replies: 9
Views: 3140

Re: Sending MWC status cues via Serial Port

New Rushduino firmware is here: http://code.google.com/p/rush-osd-development/downloads/list The latest released version is Rush_KV_2_1.zip. You could carefully remove everything related to Screen.ino and max7456.ino and replace the calls to displayXXX functions with your own. IMHO that would be eas...
by itain
Sun Jan 06, 2013 2:13 pm
Forum: Software development
Topic: Rushduino OSD - Multiwii based open software osd
Replies: 782
Views: 244379

Re: Rushduino OSD - Multiwii based open software osd

Hello and great job. I ve got flyduino board and i want to know where i could find a rushduino osd board for France. And how to wire this board. Could i used serial port 3 for exemple. Thx Sisco I do not know if an original Rushduino osd board is still available. New versions of the software are co...
by itain
Thu Jan 03, 2013 1:13 pm
Forum: Software development
Topic: Help with Direction to home 180 deg off
Replies: 16
Views: 5166

Re: Help with Direction to home 180 deg off

You can use the ruler tool on Google earth to calculate distance and bearing. I see only the left side of the screen images. There is no view of the distance to home (should be ~64 m), direction to home (should be ~337 degrees) and heading. Also, please tell which version of the Rushduino firmware y...
by itain
Wed Jan 02, 2013 10:11 pm
Forum: Software development
Topic: Help with Direction to home 180 deg off
Replies: 16
Views: 5166

Re: Help with Direction to home 180 deg off

Are you using Rushduino? Which version? I will refer to recent development versions (see m) that has not been published yet. Other versions may have known bugs. There are 5 displayed items that could be relevant: 1. The heading in degrees (either -179..180 or 0..359 depending on which version you us...
by itain
Mon Dec 31, 2012 8:54 pm
Forum: Software development
Topic: Rushduino OSD - Multiwii based open software osd
Replies: 782
Views: 244379

Re: Rushduino OSD - Multiwii based open software osd

rortega wrote:Do yo mean max yaw to the right?

Unarm motors, then:
Trottle - center.
Yaw - full right.
Pitch - full forward.
Hold until the menu shows on the OSD.
by itain
Sun Dec 30, 2012 9:43 pm
Forum: Software development
Topic: Rushduino OSD - Multiwii based open software osd
Replies: 782
Views: 244379

Re: Rushduino OSD - Multiwii based open software osd

@rortega, I think the definitions in Max7456_Font_Update.ino must be changed for the MinimOSD. See below. Also, I have added rush-osd-development-af0684237b48. It changes the functions that display voltage and current. I have not test-flown it yet (and also I do not yet have a current meter on my qu...
by itain
Sun Dec 30, 2012 12:27 pm
Forum: Software development
Topic: Rushduino OSD - Multiwii based open software osd
Replies: 782
Views: 244379

Re: Rushduino OSD - Multiwii based open software osd

Thanks for reporting. I already fixed that in my code and will push to the repository later today.

In the mean time, here's a recording from last Friday. New updates to the OSD firmware are on the way. Pilot (non FPV) is Barel Atanelov.

https://www.youtube.com/watch?v=7i1gbHUTq3Q
by itain
Sat Dec 29, 2012 10:21 pm
Forum: Software development
Topic: Rushduino OSD - Multiwii based open software osd
Replies: 782
Views: 244379

Re: Rushduino OSD - Multiwii based open software osd

Please, help me !!! I bought one MiminOSD clone from goodluckbuy but I don't know in which serial port of my Crius AIO Pro flight controller must I connect the tx and rx pins, TX0/RX0 or TX1/RX1 or TX3,RX3 Thanks. You can connect any serial port if you are using a recent dev version of the MultiWii...
by itain
Fri Dec 28, 2012 7:27 am
Forum: Software development
Topic: An Official 2.2 Release soon?
Replies: 26
Views: 10591

Re: An Official 2.2 Release soon?

@ Developers, the distance to home turns zero after 654m away from home and restarts from zero. Please look into this issue also. Thanks Are you using I2C_GPS? Here's how GPS_distanceToHome is received from I2C: varptr = (uint8_t *)&GPS_distanceToHome; *varptr++ = i2c_readAck(); *varptr = i2c_r...
by itain
Sun Dec 23, 2012 12:22 am
Forum: Software development
Topic: An Official 2.2 Release soon?
Replies: 26
Views: 10591

Re: An Official 2.2 Release soon?

I see that development has slowed down.
Dev_r1240 is there for almost two months and it appears quite stable and with many new features that are not in the official 2.1.
If my vote counts, I would say yes for a new official release that's based on dev_r1240.

-- Itai
by itain
Sat Dec 22, 2012 2:25 am
Forum: Software development
Topic: Rushduino OSD - Multiwii based open software osd
Replies: 782
Views: 244379

Re: Rushduino OSD - Multiwii based open software osd

kataventos wrote:Did I made two rhymes followed? :D must be happiness for this community work!

Because I know that some will celebrate xmas and others don´t, I just wish good things for everyone!

Cheers,
KV

@kataventos ans all forum members, Merry Christmas and happy new year!

-- Itai
by itain
Fri Dec 21, 2012 3:16 pm
Forum: Software development
Topic: Rushduino OSD - Multiwii based open software osd
Replies: 782
Views: 244379

Re: Rushduino OSD - Multiwii based open software osd

Its nice to have some further developments going on In the case the world is not ending tomorrow, I´m really interesting in these additional features : - switch input (either ppm-servo in HW or through MWC FC Aux channels) for in-flight selectable (preconfigured) osd layouts, or other functions. Ma...
by itain
Fri Dec 21, 2012 3:00 pm
Forum: Software development
Topic: Rushduino OSD - Multiwii based open software osd
Replies: 782
Views: 244379

Re: Rushduino OSD - Multiwii based open software osd

Hi Community, From where i can download latest Rushduino OSD sketch ? I have multiwii with r1240 Thanks The most recent open source is in m . Get the files from there (some changes are not yet in the Download link). justk1w1 and carlonb have done a very nice work on fixing bugs and adding more feat...
by itain
Tue Dec 18, 2012 9:27 pm
Forum: Software development
Topic: Rushduino OSD - Multiwii based open software osd
Replies: 782
Views: 244379

Display heading RFC?

I ask for opinions on two things that I want to change. 1. The heading is displayed in degrees -179..180. I would prefer to have 0..360 (which is commonly used in general aviation). Other votes? 2. It looks like the heading graph is offset by 11.25 degrees. The N is centered when the heading is 0 bu...
by itain
Tue Dec 11, 2012 6:48 pm
Forum: Boards
Topic: Crius MWC SE Motor D10 D11 not working on Throttle
Replies: 5
Views: 2451

Re: Crius MWC SE Motor D10 D11 not working on Throttle

Dave, your Crius SE is 8 bit and you are asking on the 32 bit section.
Also, I do not understand how you can have AUX channel if you have only 4 ch receiver.
by itain
Sat Dec 01, 2012 3:14 pm
Forum: Software development
Topic: Rushduino OSD - Multiwii based open software osd
Replies: 782
Views: 244379

Re: Rushduino OSD - Multiwii based open software osd

Thanks kataventos, I tried the latest 2.0 with same results. I suspect the problem may be over usage of ram (and stack overflow). I'm starting to do some cleanup with your version 2.0: Move some constants from ram to PROGMEM. Remove unused variables. Add const attributes where required. explicitly s...
by itain
Fri Nov 30, 2012 11:44 pm
Forum: Software development
Topic: Rushduino OSD - Multiwii based open software osd
Replies: 782
Views: 244379

Re: Rushduino OSD - Multiwii based open software osd

I'm trying to upgrade from the old Rushduino beta 0.7 firmware (with some modifications) to Rush_KV_1_0_1 which has many improvements. I'm getting all the display elements which depend on videoSignalType and screenType squeezed to the top-left area of the screen. I'm using Rushduino 1.1 (older versi...
by itain
Wed Nov 28, 2012 12:52 pm
Forum: Software development
Topic: Rushduino OSD - Multiwii based open software osd
Replies: 782
Views: 244379

Re: Rushduino OSD - Multiwii based open software osd

@kataventos I suggest: #define STABLEMODE ((1 << 0)|(1 << 1)) // HORIZON or ANGLE #define BAROMODE (1 << 2) #define MAGMODE (1 << 3) ... 1. it would show STABLE both for HORIZON and ANGLE modes (as there is no separate graphics). 2. Using (1 << XX) may be easier than calculating powers of 2. Ultimat...
by itain
Tue Nov 13, 2012 6:25 pm
Forum: Software development
Topic: Rushduino OSD - Multiwii based open software osd
Replies: 782
Views: 244379

Re: Rushduino OSD - Multiwii based open software osd

Hi, I suggest to change size checks in Serial.ino. Use >= and not ==. The protocol has changed several times and in all cases only new fields are added. By checking for >= you verify that what you use exists in the message and you can ignore newer stuff. As far as I have checked (in the latest code ...
by itain
Tue Oct 30, 2012 11:12 am
Forum: Software development
Topic: MWC R1232 has a bug in ALT reading
Replies: 38
Views: 12119

Re: MWC R1232 has a bug in ALT reading

in r1232 baro reading in gui was -25000 or more. I've rebooted fc then value shown in gui was 0. But when testing outside, quad was going up. Like baro wasn't working. In r1177 baro readings in gui is around 800. I live at 660m abowe sea level. But it works. Slightly goes down and then up. So alrea...
by itain
Sun Oct 28, 2012 5:40 pm
Forum: Software development
Topic: Rushduino OSD - Multiwii based open software osd
Replies: 782
Views: 244379

Re: Rushduino OSD - Multiwii based open software osd

vobo69 - I used google translate to try to understand your link. If I understood correctly the problem is noisy image (especially at the top). The solution is changing C3 and C4 with 47uF electrolytic capacitors (or possibly easier - soldering 47uF capacitors in parallel with the existing SMT capaci...
by itain
Sun Sep 23, 2012 8:24 pm
Forum: Software development
Topic: Rushduino OSD - Multiwii based open software osd
Replies: 782
Views: 244379

Direction to home arrow (suggested fix)

It got me annoyed. Here is a suggested fix. Just replace the function in Screen.ino void DisplayDirectionToHome(void) { int16_t d = MwHeading + 22 + 180 + 360 - GPS_directionToHome; d = 2*((d % 360) / 45); ScreenBuffer[0] = 0x80 + d; ScreenBuffer[1] = 0x81 + d; ScreenBuffer[2] = 0; MAX7456_WriteStri...
by itain
Thu Aug 23, 2012 2:53 am
Forum: Software development
Topic: MWC 2.1 brushed motor spin up half sec during power on.
Replies: 3
Views: 2907

Re: MWC 2.1 brushed motor spin up half sec during power on.

The spin-up time after power up is probably because the outputs are still in 3-rd state until the arduino leaves the bootloader and lets MultiWii initialize the I/O. Using pulldowns is probably the best solution. I do not see how it could affect stability.... except if you are not using logic-level ...
by itain
Tue Aug 14, 2012 4:42 pm
Forum: Software development
Topic: RFC: move default pin for FAILSAFE from throttle to roll?
Replies: 47
Views: 11250

Re: RFC: move default pin for FAILSAFE from throttle to roll

ok, so we got two open cases that need investigation: - spektrum sattelite - ppm As I have neither, anyone care to test and report? I'd be willing to apply the code change on that basis. Spektrum satellite and Futaba SBUS code do not care about specific channel. If FS is enabled it only checks that...
by itain
Thu Aug 02, 2012 3:54 pm
Forum: Software development
Topic: Major release of SPEKTRUM code
Replies: 12
Views: 5441

Re: Major release of SPEKTRUM code

Danal, thanks for the info. I think the Paparazzi Spektrum support was mostly written for DSM2 (when DXMX was not available or at least not widely used). At that time there was a long discussion of the satellite protocol on RCGroups. From reading MK source I see there's a certain procedure to plug i...
by itain
Thu Aug 02, 2012 8:11 am
Forum: Software development
Topic: Major release of SPEKTRUM code
Replies: 12
Views: 5441

Re: Major release of SPEKTRUM code

Auto detect of 1024/2048... hmm... let me look at that! Might be kinda cool. Where is there code repository? And, by the way, there is absolutely no point in 2048 with the rest of Multiwii code using the numeric ranges that are basically 1000 steps wide, in rcData and so forth. The extra resolution...
by itain
Wed Aug 01, 2012 10:44 pm
Forum: Software development
Topic: Major release of SPEKTRUM code
Replies: 12
Views: 5441

Re: Major release of SPEKTRUM code

Danal, Did you see how Paparazzi handle Spektrum satellites? They do use timing to sync frames. Some features that they support are also welcome here: 1. Auto detecting of 1024/2048 bits/channel. 2. More than 7 channels. 3. Support of more than one satellite for redundancy. 4. (probably impossible w...
by itain
Tue Jul 31, 2012 4:19 pm
Forum: Software development
Topic: One more MultiWii port for atxmega256a3 processor
Replies: 3
Views: 1755

Re: One more MultiWii port for atxmega256a3 processor

That's great!
I want an XMEGA port too.
by itain
Sat Jul 28, 2012 11:59 am
Forum: Software development
Topic: MultiWii C Source
Replies: 14
Views: 4521

Re: MultiWii C Source

dongs wrote:
itain wrote:It's already converted to C in baseflight:
http://code.google.com/p/afrodevices/so ... /src/gps.c


Alex was faster than me! I will merge the changes from the main branch.
(I'm new to git... time to learn how to do that).
by itain
Sat Jul 28, 2012 2:07 am
Forum: Software development
Topic: MultiWii C Source
Replies: 14
Views: 4521

Re: MultiWii C Source

I have just created a new branch that's using C++ files. Trying to migrate from arduino to C required too many changes to do in one step. Using a C++ compiler does not mean that I encourage use of any OOP features in MultiWii. This branch is also tested (compile only) in more configurations. https:/...
by itain
Fri Jul 27, 2012 8:18 pm
Forum: Software development
Topic: MultiWii C Source
Replies: 14
Views: 4521

Re: MultiWii C Source

Why isn't OO style good Alex? just curious. OOP is actually very good if there are enough computing resources. MultiWii would mostly run on systems that don't have such resources. The ATMegs328p runs on 16mhz and has only 2KB ram. My red lines would be: No dynamic allocation (malloc, new). No virtu...
by itain
Fri Jul 27, 2012 5:47 pm
Forum: Software development
Topic: MultiWii C Source
Replies: 14
Views: 4521

Re: MultiWii C Source

Thanks Alex. Lets see... GPS.ino is now the only place that's using a C++ class. Translating it to pure C is not a big effort. Is that EOSBandi's code? I would like to ask for his opinion before touching it. In Output.ino, initialization of PWM_PIN is using A2 etc. that is not supported by C. Arduin...
by itain
Fri Jul 27, 2012 4:24 pm
Forum: Software development
Topic: Get rid of for (uint8_t i = blah stuff in serial.c
Replies: 25
Views: 6470

Re: Get rid of for (uint8_t i = blah stuff in serial.c

Optimized code should not care. Decent compilers can split the scope of a variable to "live range" that usually start on assignment to the variable and end in the last use before the next assignment. See more here: Live variable analysis.

The only issues are portability and readability.
by itain
Fri Jul 27, 2012 12:13 am
Forum: Software development
Topic: MultiWii C Source
Replies: 14
Views: 4521

Re: MultiWii C Source

That's because it's C++ code - why not use the proper extension .cpp for that? Thanks Tommie. I already considered it. If you have seen the latest commit the GPS code must compile as C++, so not I have a mix of C and C++. I may switch the other files to .cpp and forget about these issues. My bigger...
by itain
Thu Jul 26, 2012 10:14 pm
Forum: Ideas
Topic: wishlist for v2.2 - CLOSED
Replies: 150
Views: 46125

"V-22 Osprey"

The V22 is only one example of what could be done... The idea is to be able to smoothly switch between two (or more) different configurations while in stable flight mode.