Search found 438 matches

by Tommie
Wed Aug 01, 2012 12:31 pm
Forum: Software development
Topic: Resolved: BOXNAMES in GUI not working?
Replies: 10
Views: 3454

Re: BOXNAMES in GUI not working?

This happens if the UI requests data faster than the copter can transmit the answers back. Increasing the TX buffer should work, and so should increasing the threshold in the other code block you mentioned. Increasing the required free space makes sure that the transmit buffer has drained enough bef...
by Tommie
Sat Jul 28, 2012 2:40 am
Forum: Software development
Topic: [PATCH] Make bitfield flags optional
Replies: 1
Views: 740

Re: [PATCH] Make bitfield flags optional

Funny. Considering what a bloody discussion it was whether freeing RAM is worth sacrificing flash, no one is actually interested in reclaiming that.
by Tommie
Sat Jul 28, 2012 2:34 am
Forum: Software development
Topic: [PATCH] Increase number of AUX channels
Replies: 65
Views: 21250

Re: [PATCH] Increase number of AUX channels

Since my patch regarding boxitems (viewtopic.php?f=8&t=2107 using an enum instead of #defines) has been applied (although somewhat changed: http://code.google.com/p/multiwii/source/detail?r=1003), I had to rebase this patchset; it has already been done, please check: https://github.com/wertarbyte/multiwii- ... x_channels
by Tommie
Fri Jul 27, 2012 8:23 pm
Forum: Software development
Topic: MultiWii C Source
Replies: 14
Views: 4571

Re: MultiWii C Source

itain wrote:The paradigm of OOP requires both encapsulation and inheritance.
Some encapsulation can be achieved by using static variables in C (scope is limited to a single file).

I agree. Proper namespacing would makes things much easier, be it via classes or ye olde file scope (static).
by Tommie
Fri Jul 27, 2012 6:16 pm
Forum: Software development
Topic: MultiWii C Source
Replies: 14
Views: 4571

Re: MultiWii C Source

In Output.ino, initialization of PWM_PIN is using A2 etc. that is not supported by C. Arduino pin numbers are currently used as parameters for pinMode and attachInterrupt. These are mixed with uses of actual ports. I suggest to replace all uses of pinMode with proper assignments to DDRx registers a...
by Tommie
Fri Jul 27, 2012 5:22 pm
Forum: Ideas
Topic: AUX1 and 2 for 5 Channel PPM Sum
Replies: 9
Views: 4655

Re: AUX1 and 2 for 5 Channel PPM Sum

Take a look at this patch: viewtopic.php?f=8&t=1933
It can increase the number of AUX switches as well as change the number of steps in each channel.
by Tommie
Fri Jul 27, 2012 4:39 pm
Forum: Software development
Topic: Get rid of for (uint8_t i = blah stuff in serial.c
Replies: 25
Views: 6546

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

That's simple. Since our reference if the Arduino IDE, we are clearly using C++, with whatever standard Arduino passes to gcc.
by Tommie
Thu Jul 26, 2012 10:53 pm
Forum: Software development
Topic: New Multiwii Serial Protocol
Replies: 409
Views: 227348

Re: New Multiwii Serial Protocol

What would MSP_INIT actually do? At the moment, the communication is stateless - every request is processed without context.
by Tommie
Thu Jul 26, 2012 10:52 pm
Forum: Software development
Topic: MultiWii C Source
Replies: 14
Views: 4571

Re: MultiWii C Source

2. Arduino compiles C files without the -std=gnuc99 options. Statements like for(uint8_t i=0... are invalid. Must move the definitions of the iterator outside the for loop. I done it in some places (maybe missed some). I refuse to touch some functions in LCD.h which are _)(*&%**&^%* That's ...
by Tommie
Thu Jul 26, 2012 10:43 pm
Forum: Software development
Topic: Get rid of for (uint8_t i = blah stuff in serial.c
Replies: 25
Views: 6546

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

https://github.com/itain/multiwii-firmware/commit/b59e11fbb8d03a6a32f53fce6bcc8b274efc2818 Hm, the premise of this patch/branch is a bit off, renaming the file to .c might break a lot of things since Arduino code is actually C++ and not plain C. I have to admit that I personally like the declaratio...
by Tommie
Mon Jul 23, 2012 5:20 pm
Forum: Software development
Topic: MultiWii EZ-GUI
Replies: 1434
Views: 676900

Re: MultiWii AllinOne for Android [update 20/07/2012]

You don't have to explicitely join, just publish your code on github; feel free to oin our IRC channel #multiwii on Freenode, most of the crowd is hanging out there.
by Tommie
Mon Jul 23, 2012 9:15 am
Forum: Software development
Topic: [PATCH] Make bitfield flags optional
Replies: 1
Views: 740

[PATCH] Make bitfield flags optional

Some time ago, we had a discussion whether to store flags in form of a single bit or an entire byte. Storing them as a bit saves RAM but occupies flash, so I created this patch to allow a quick transition between the two variants; therefore, each user can pick his own poison.

https://github.com/wertarbyte/multiwii- ... s_bitfield
by Tommie
Mon Jul 23, 2012 8:46 am
Forum: Software development
Topic: [Patch] transmit debug messages (strings) from copter to GUI
Replies: 36
Views: 8990

Re: [Patch] transmit debug messages (strings) from copter to

So you have never used the debug[] variables to display arbitrary data in the GUI? Transporting strings from copter to GUI is just an extension of this mechanism. I can give you an example: My data transfer framework, I am manipulating various copter systems, e.g. switching AUX channels, activating ...
by Tommie
Mon Jul 23, 2012 12:54 am
Forum: Software development
Topic: [Patch] transmit debug messages (strings) from copter to GUI
Replies: 36
Views: 8990

Re: [Patch] transmit debug messages (strings) from copter to

If you are using bluetooth, you cannot connect to the rfcomm device until the bluetooth connection has been established - which takes a few seconds and can only be done after applying power to the board. So once your GUI is ready to send and receive data, it's probably already to late and the debug ...
by Tommie
Mon Jul 23, 2012 12:43 am
Forum: Software development
Topic: [Patch] transmit debug messages (strings) from copter to GUI
Replies: 36
Views: 8990

Re: [Patch] transmit debug messages (strings) from copter to

this is a debug message while doing some dev work .. not a user freindly message to be send other a twitter account , we dont mind if the message is lost . But if I am the developer, I *do* want to see that message. It's the reason I added it there, e.g. for debugging some sensor initialization. Th...
by Tommie
Mon Jul 23, 2012 12:37 am
Forum: Software development
Topic: [PATCH] Increase number of AUX channels
Replies: 65
Views: 21250

Re: [PATCH] Increase number of AUX channels

I consider an unaware GUI must be used only with the 4x3 states, no other combination. This does work. This is what the compatibility code ensures. But the copter has to distinguish aware and unaware clients from each other - e.g. by different request codes (MSP_BOX vs. MSP_AUX). Blindly delivering...
by Tommie
Mon Jul 23, 2012 12:33 am
Forum: Software development
Topic: [Patch] transmit debug messages (strings) from copter to GUI
Replies: 36
Views: 8990

Re: [Patch] transmit debug messages (strings) from copter to

A debug message is a kind of unsolicited message, so no need to ask for it and multiwii can output it continually. The current implementation is perfectly compatible with this principle. So if I print a debug message during startup (for whatever reason) and don't have my GUI already connected (thin...
by Tommie
Mon Jul 23, 2012 12:18 am
Forum: Software development
Topic: [Patch] transmit debug messages (strings) from copter to GUI
Replies: 36
Views: 8990

Re: [Patch] transmit debug messages (strings) from copter to

Hamburger wrote:
If you don't want/like/use this stuff, just don't #define DEBUGMSG.

That aspect I like a lot.

So there's something for everyone to enjoy.
by Tommie
Mon Jul 23, 2012 12:16 am
Forum: Software development
Topic: [PATCH] Increase number of AUX channels
Replies: 65
Views: 21250

Re: [PATCH] Increase number of AUX channels

So you showed no TX offering a 6way switch. aprt from your homebrew hardware. Didn't I just post a picture of a TX with an 6way switch? Didn't some other people in this thread tell hat they are actually using such a device? Obscure hardware as in led.flasher? Very obscure. It's called an "LED&...
by Tommie
Mon Jul 23, 2012 12:12 am
Forum: Software development
Topic: [PATCH] Increase number of AUX channels
Replies: 65
Views: 21250

Re: [PATCH] Increase number of AUX channels

For each item, you just have to select the right number of 8bit var needed and order bits in this order (n AUX, m states): AUX1.1 AUX1.2 ... AUX1.m AUX2.1 ... AUX2.m ... AUXn.m. With the message AUX_COUNT, the aware GUIs will know what to interpret, and the unaware GUIs won't see the difference. Ac...
by Tommie
Sun Jul 22, 2012 11:59 pm
Forum: Software development
Topic: [Patch] transmit debug messages (strings) from copter to GUI
Replies: 36
Views: 8990

Re: [Patch] transmit debug messages (strings) from copter to

does this mean from now on we are going to see the code cluttered with stuff like debugmsg_append_str("initialization completed\n"); No, it means that you can place such messages into the code to debug your stuff without breaking the GUI communication. But why does that have to go to a GU...
by Tommie
Sun Jul 22, 2012 11:53 pm
Forum: Software development
Topic: [PATCH] Increase number of AUX channels
Replies: 65
Views: 21250

Re: [PATCH] Increase number of AUX channels

I stand by what I said: Which TX offers 6way zwitching? - a pot does not provide 6 distinguishable states. I could be pedantic and either state that due to the use of an ADC, most pots provide up to 2^10 distinguishable states, or that even a non-discrete space provides an infinite number of distin...
by Tommie
Sun Jul 22, 2012 11:34 pm
Forum: Software development
Topic: [PATCH] Increase number of AUX channels
Replies: 65
Views: 21250

Re: [PATCH] Increase number of AUX channels

Why? What is the advantage of that? I wrote it: no need to consider 2 types of MSP messages In the long run, MSP_BOX should be superseeded by MSP_AUX since MSP_BOX cannot handle any configuration other than 4*3 at all. Having both messages is a gateway, not a permanent solution. This is not what I ...
by Tommie
Sun Jul 22, 2012 11:28 pm
Forum: Software development
Topic: [PATCH] Disable arming capability via AUX switch
Replies: 4
Views: 1794

Re: [PATCH] Disable arming capability via AUX switch

This poses a danger in low memory situations This should not happen now. We had this discussion before. It should not happen, but it might happen. I've just talked to someone who encountered random checkbox settings after flashing 2.1; in his case, it only affected the GPS row, but if it had been A...
by Tommie
Sun Jul 22, 2012 11:20 pm
Forum: Software development
Topic: [Patch] transmit debug messages (strings) from copter to GUI
Replies: 36
Views: 8990

Re: [Patch] transmit debug messages (strings) from copter to

But this is the way every other communication with the GUI works. The GUI requests data, the copter responds. Changing that will cause problems. The TX buffer is a ring buffer, which means that flooding it with debug data will overwrite any other information waiting for transmission. If the copter k...
by Tommie
Sun Jul 22, 2012 11:13 pm
Forum: Software development
Topic: [PATCH] Disable arming capability via AUX switch
Replies: 4
Views: 1794

Re: [PATCH] Disable arming capability via AUX switch

From reading the code, I think that inflight calibration is not affected by this changeset. Only the actual (dis)arming of the copter by using the AUX matrix is prohibited.
by Tommie
Sun Jul 22, 2012 10:50 pm
Forum: Software development
Topic: [PATCH] Increase number of AUX channels
Replies: 65
Views: 21250

Re: [PATCH] Increase number of AUX channels

Any TX that has an analog pot connected to an AUX channel offers 6way switching. And as I already said, no one is taking anything away from you. If you are completely satisfied with 4*3 AUX states, just keep using that. Other people might want to have more options, and I'd be glad if Multiwii would ...
by Tommie
Sun Jul 22, 2012 9:52 pm
Forum: Software development
Topic: [PATCH] Increase number of AUX channels
Replies: 65
Views: 21250

Re: [PATCH] Increase number of AUX channels

I'm only using 3 pos switches. But if you've read this thread, you might have notice that other people are actually using 6 pos switches. If you don't like using a 6 pos switch, don't use it. Stick to 3 states per channel, nothing is taken away from you. But if anyone else wants to use 4, 5, 6 or 20...
by Tommie
Sun Jul 22, 2012 5:25 pm
Forum: Software development
Topic: [PATCH] Storing CHECKBOX items in an enum
Replies: 1
Views: 975

[PATCH] Storing CHECKBOX items in an enum

m This neutral patch transforms the BOXACC/BOXMAG/... defines into an enumeration; this maes it possible to leave the actual counting to the compiler while being able to add and remove items; since the number of switchables is (still) limited, this makes it possible to remove unused items and replac...
by Tommie
Sun Jul 22, 2012 5:00 pm
Forum: Software development
Topic: [PATCH] Disable arming capability via AUX switch
Replies: 4
Views: 1794

[PATCH] Disable arming capability via AUX switch

Multiwii provides the capability to arm the copter using an AUX switch. This poses a danger in low memory situations: Although the function itself is rarely used (everyone I know use the TX sticks to arm), flipping a single bit in the AUX matrix engages the engines - something that can happen accide...
by Tommie
Sun Jul 22, 2012 4:55 pm
Forum: Software development
Topic: [PATCH] Increase number of AUX channels
Replies: 65
Views: 21250

Re: [PATCH] Increase number of AUX channels

The AUX channels in my ultra-cheap TX were analog pots. Replacing them with a 6pos switch should pose no trouble, probably even more steps are well possible.
by Tommie
Sun Jul 22, 2012 3:20 pm
Forum: Software development
Topic: [PATCH] Increase number of AUX channels
Replies: 65
Views: 21250

Re: [PATCH] Increase number of AUX channels

In the current implementation, There is a 2x8 bit variable for each item, and 4 bits are unused per item. First 8 bits: AUX1L AUX1M AUX1H AUX2L AUX2M AUX2H AUX3L AUX3M second 8 bits: AUX3H AUX4L AUX4M AUX4H I am aware f the current implementation. In your implementation, you select the right number...
by Tommie
Sat Jul 21, 2012 9:48 pm
Forum: Software development
Topic: Patch: LED Flasher
Replies: 35
Views: 18935

Re: Patch: LED Flasher

Look at these defines: #define LED_FLASHER_SEQUENCE ( (uint8_t) (1<<0 | 1<<2) ) #define LED_FLASHER_SEQUENCE_ARMED ( (uint8_t) (1<<0 | 1<<2) ) #define LED_FLASHER_SEQUENCE_MAX ( (uint8_t) (1<<0 | 1<<2) ) The funny looking stuff to the right is an 8 bit binary number; the lowest (1<<0) and the third-...
by Tommie
Sat Jul 21, 2012 1:15 pm
Forum: Software development
Topic: [PATCH] Increase number of AUX channels
Replies: 65
Views: 21250

Re: [PATCH] Increase number of AUX channels

Just rebased the entire patch set to the latest code:
https://github.com/wertarbyte/multiwii- ... x_channels
https://github.com/wertarbyte/multiwii- ... x_channels
I'd appreciate any type of feedback. Having working patches lying around for weeks without any actual reaction feels quite uncomfortable.
by Tommie
Sat Jul 21, 2012 10:33 am
Forum: Software development
Topic: MultiWii EZ-GUI
Replies: 1434
Views: 676900

Re: MultiWii AllinOne for Android [update 20/07/2012]

Do you want to open source it?
by Tommie
Fri Jul 20, 2012 8:25 am
Forum: Software development
Topic: Patch: LED Flasher
Replies: 35
Views: 18935

Re: Patch: LED Flasher

I am neither familiar with the Flydumega board nor the Arduino "Mega", but judging from the pictures, there are plenty of digital output pins available, just pick any of them (e.g. D30). I don't understand why Arduino uses a completely useless naming scheme for the pins, but refer to the p...
by Tommie
Fri Jul 20, 2012 6:30 am
Forum: Software development
Topic: [Patch] transmit debug messages (strings) from copter to GUI
Replies: 36
Views: 8990

Re: [Patch] transmit debug messages (strings) from copter to

Because I only want to fill the transmit buffer if the GUI actually requests debug messages. Placing debug strings in the TX buffer without actually having a request for them might corrupt other GUI messages due to overflow.
by Tommie
Thu Jul 19, 2012 10:12 am
Forum: Software development
Topic: Moving the repository to git?
Replies: 40
Views: 13265

Re: Moving the repository to git?

Exactly. Concentrating on a single clone would certainly the best choice.
by Tommie
Wed Jul 18, 2012 10:22 am
Forum: Software development
Topic: Moving the repository to git?
Replies: 40
Views: 13265

Re: Moving the repository to git?

For anyone wanting to try out git with Multiwii, I'm keeping my repository at https://github.com/wertarbyte/multiwii-firmware in sync with the official svn (the branch upstream_shared is updated constantly). So if you want to give it a spin, just clone the repository and start contributing. The same goes for the gui: https://github.com/wertarbyte/multiwii-conf
by Tommie
Wed Jul 18, 2012 10:17 am
Forum: Software development
Topic: Patch: LED Flasher
Replies: 35
Views: 18935

Re: Patch: LED Flasher

I don't now about the flyduino board, but locate the appropiate pins (as indicated in the config) on your ATMega controller: http://arduino.cc/it/Hacking/PinMapping168

Then connect a transistor to it: http://www.mikrocontroller.net/articles ... er_Last.3F
Don't forget to include the necessary resistors, then wire the LEDs up to the transistor (used as an amplifying switch).
by Tommie
Tue Jul 17, 2012 12:40 pm
Forum: Software development
Topic: Moving the repository to git?
Replies: 40
Views: 13265

Re: Moving the repository to git?

Another thing: Since git branches are lightweight and local, one can use them for debugging. This prevents debugging code from slipping into production releases, making it necessary to silenty fix it and replace the archive file without incrementing its version number.
by Tommie
Mon Jul 16, 2012 5:52 pm
Forum: Ideas
Topic: wishlist for v2.2 - CLOSED
Replies: 150
Views: 46736

Re: wishlist for v2.2

Transmit debug messages from copter to GUI.
Patch is already available: https://github.com/wertarbyte/multiwii- ... 08832afd6e
by Tommie
Mon Jul 16, 2012 5:50 pm
Forum: Ideas
Topic: wishlist for v2.2 - CLOSED
Replies: 150
Views: 46736

Re: wishlist for v2.2

Configurable number of AUX channels with a configurable number of steps.
Patch is already available: https://github.com/wertarbyte/multiwii- ... x_channels
GUI: https://github.com/wertarbyte/multiwii- ... x_channels
by Tommie
Mon Jul 16, 2012 12:57 pm
Forum: Software development
Topic: Let's try to release 2.1: second try based on r964
Replies: 65
Views: 24784

Re: Let's try to release 2.1: second try based on r964

[*] Lower entrance barrier for contributions. Using SVN it's very inconvenient for new developers without commit rights to work on a new feature or larger code change, as checkpointing your work requires commit access to the central repository. Managing a patch without being able to commit makes it...
by Tommie
Sun Jul 15, 2012 7:53 pm
Forum: Software development
Topic: [PATCH] Increase number of AUX channels
Replies: 65
Views: 21250

Re: [PATCH] Increase number of AUX channels

How about giving this a test spin now that 2.1 is released?
I've been using it for several weeks now (8 AUX channels), works fine for me; only the GUI needs some makeover to to the number of checkboxes.
by Tommie
Sun Jul 15, 2012 7:52 pm
Forum: Software development
Topic: [Patch] transmit debug messages (strings) from copter to GUI
Replies: 36
Views: 8990

Re: [Patch] transmit debug messages (strings) from copter to

What about merging it now that 2.1 is out?
by Tommie
Sat Jul 14, 2012 1:57 pm
Forum: ESCs, propellers , servos and radios
Topic: Cheap 6 channel transmitter? Let's rip it apart and hack it!
Replies: 64
Views: 26148

Re: Cheap 6 channel transmitter? Let's rip it apart and hack

Here's a short video of my TX with the new LCD: m The top row shows the state of the 8 traditional channels, why the second row alternates between the state of digitally transmitted switch states (^-v--^), the compass orientation of the TX (180°) and a clock indicating the time since switching on th...
by Tommie
Wed Jul 11, 2012 5:50 pm
Forum: ESCs, propellers , servos and radios
Topic: Cheap 6 channel transmitter? Let's rip it apart and hack it!
Replies: 64
Views: 26148

Re: Cheap 6 channel transmitter? Let's rip it apart and hack

I'm still waiting for my accelerometer, but in the meantime I was able to fit an LCD to the transmitter:

Image