Search found 438 matches

by Tommie
Fri Apr 20, 2012 11:26 pm
Forum: Software development
Topic: Fighting namespace clutter
Replies: 6
Views: 2015

Re: Fighting namespace clutter

I prefer the current prefix notation as in GPS_whatever over structs.. I am much more concerned about variables without any visible functionality relations via prefix or whatever. And then there are unwanted variables declarations which will creep into the binary and produce memory bloat. I partial...
by Tommie
Fri Apr 20, 2012 11:16 pm
Forum: Software development
Topic: Tiny-GPS integrated into Multiwii (GPS/Sonar/Optical to I²C)
Replies: 195
Views: 70914

Re: Tiny-GPS successfully integrated into Multiwii

It's extremely easy, you only need to provide VCC (pin 20) and GND (10) to the tiny - and of course add an 100nF ceramic capacitor between the power lines. Your ATTiny is now up and running, all that is left is connecting the communication lines: * Wire SCL (pin 19) to your I²C-SCL line and DI (pin ...
by Tommie
Fri Apr 20, 2012 4:14 pm
Forum: Software development
Topic: [Patch] MultiwiiConf displays wrong GPS data
Replies: 10
Views: 3097

Re: [Patch] MultiwiiConf displays wrong GPS data

I changed it with arduino. I think its wrong. Can you give me a good description on how to do this for dummies. Open MultiWiiConf.pde in your Processing IDE; then locate the lines in the compare view (somewhere around line 654); you can also just download the file from the github site, but unless y...
by Tommie
Fri Apr 20, 2012 3:40 pm
Forum: Software development
Topic: [Patch] MultiwiiConf fails to compile with current controlP5
Replies: 22
Views: 6814

Re: [Patch] MultiwiiConf fails to compile with current contr

copterrichie wrote:I had the same problem but I reverted back to a previous verse of Processing and ControlP for the time being.

Would you mind checking my patch? It applies to the current version of MultiwiiConfGUI and works fine for me :-)
Thanks in advance.
by Tommie
Fri Apr 20, 2012 2:24 pm
Forum: Software development
Topic: [Patch] MultiwiiConf displays wrong GPS data
Replies: 10
Views: 3097

Re: [Patch] MultiwiiConf displays wrong GPS data

Did you do a recompile of the Processing App?
by Tommie
Fri Apr 20, 2012 12:11 pm
Forum: Software development
Topic: Fighting namespace clutter
Replies: 6
Views: 2015

Re: Fighting namespace clutter

Does nobody have a position on that?
I'd really like to start refactoring the code and do some cleanups, but I would like to know beforehand whether there are any reson for the current architecture - before I invest time in a changeset that gets tossed into the trash after submission.
by Tommie
Fri Apr 20, 2012 12:03 pm
Forum: Software development
Topic: [Patch] MultiwiiConf fails to compile with current controlP5
Replies: 22
Views: 6814

Re: [Patch] MultiwiiConf fails to compile with current contr

Am I the only one experiencing this problem? Any kind of feedback is greatly appreciated.
by Tommie
Fri Apr 20, 2012 11:28 am
Forum: Software development
Topic: New I2C GPS board
Replies: 13
Views: 8994

Re: New I2C GPS board

I am not famular with different controllers beside Arduino. But ATtiny seems having too low resources (program space only 2kb, SROM only 128byte) to handle many sensors. You can actually do *a*lot* with that. Using Arduino for second board has important props as I see: 1. we can share the same code...
by Tommie
Fri Apr 20, 2012 10:31 am
Forum: Software development
Topic: Tiny-GPS integrated into Multiwii (GPS/Sonar/Optical to I²C)
Replies: 195
Views: 70914

Re: Tiny-GPS successfully integrated into Multiwii

I'm currently trying to attach additional sensors (sonar & optical) to the ATTiny, so the ATMega can poll those via I²C without sacrificing more io pins.
by Tommie
Fri Apr 20, 2012 10:28 am
Forum: Software development
Topic: New I2C GPS board
Replies: 13
Views: 8994

Re: New I2C GPS board

Is it possible to lay-out some extra arduino digital pins on your board? I have an idea to move MWC extra sensor communication (like Sonar, Optical Flow, may be others) to second board and get only final data over I2C (like for GPS). This may be usefull because of luck of program space and timers o...
by Tommie
Wed Apr 18, 2012 9:58 am
Forum: Software development
Topic: Coding & interface challenge for toggling bits in uint16_t
Replies: 4
Views: 1597

Re: Coding & interface challenge for toggling bits in uint16

I still don't understand how the change from the two 8 bit variables to one 16 bit variable has any effect on this? you can easily separate the 16 bit varible into two 8 bit ones if you please and vice versa?
by Tommie
Wed Apr 18, 2012 12:02 am
Forum: Software development
Topic: Fighting namespace clutter
Replies: 6
Views: 2015

Fighting namespace clutter

While digging through the source code of multiwii, I noticed the vast number of global variables. Most of them could be arranged in structs to keep the namespace cleaner; it would also simplify passing them around, copying or resetting them. Take for example these variables used by the GPS code: sta...
by Tommie
Tue Apr 17, 2012 11:20 pm
Forum: Software development
Topic: Coding & interface challenge for toggling bits in uint16_t
Replies: 4
Views: 1597

Re: Coding & interface challenge for toggling bits in uint16

I might also add another point: changing the activate array to 16 bits seems a bit shortsightet to me; imagine someone implementing subchannels or bringing in a RC with 6 AUX channels - you'd have to start rewriting the code again. I suggest changing the bitmask container to this: #define AUX_SYSTEM...
by Tommie
Tue Apr 17, 2012 10:54 pm
Forum: Software development
Topic: Coding & interface challenge for toggling bits in uint16_t
Replies: 4
Views: 1597

Re: Coding & interface challenge for toggling bits in uint16

I am not using an LCD, but how about this: To configure the systems active for a specific AUX setting, first select the AUX channel you want to modify (e.g. AUX2). Then you can easily switch through the combinations or even select a specific subsystem you wanto to configure: -> configure AUX systems...
by Tommie
Mon Apr 16, 2012 8:20 am
Forum: Software development
Topic: [Patch] MultiwiiConf displays wrong GPS data
Replies: 10
Views: 3097

[Patch] MultiwiiConf displays wrong GPS data

The current trunk version of MultiWiiconf displays wrong GPS data; I uploaded a fix here: https://github.com/wertarbyte/multiwii- ... re/fix_gps
by Tommie
Mon Apr 16, 2012 8:18 am
Forum: Software development
Topic: [Patch] MultiwiiConf fails to compile with current controlP5
Replies: 22
Views: 6814

[Patch] MultiwiiConf fails to compile with current controlP5

I tried compiling MultiwiiConf with controlP5 0.7.2, which however fails with the following message: "The method hideLabel(Controller) in the type MultiWiiConf is not applicable for the arguments (Checkbox)" I tracked it down to the lines 223ff: ... hideLabel(checkbox1[i].addItem(i + "...
by Tommie
Mon Apr 16, 2012 5:42 am
Forum: Ideas
Topic: Probe connected sensors during startup
Replies: 0
Views: 876

Probe connected sensors during startup

At the moment, Multiwii tries to query each configured sensor every cycle. It would be practical if Multiwii probed the I²C bus during startup to check whether the sensors compiled in are actually present and enable/disable them. E.g. I have GPS support compiled in, however I do not want to connect ...
by Tommie
Sun Apr 15, 2012 10:13 pm
Forum: Software development
Topic: Tiny-GPS integrated into Multiwii (GPS/Sonar/Optical to I²C)
Replies: 195
Views: 70914

Tiny-GPS integrated into Multiwii (GPS/Sonar/Optical to I²C)

Hello, I just finished integrating the code to access the Tiny-GPS (m) module via I2C. Tiny-GPS is a firmware for the ATTiny2313 microcontroller which turns it into an I²C-GPS device - reading NMEA data from a serial GPS receiver, interpreting it and passing it to its I²C master. The data is pulled ...
by Tommie
Sat Apr 14, 2012 5:39 pm
Forum: Software development
Topic: Moving the repository to git?
Replies: 40
Views: 13265

Re: Moving the repository to git?

1 only small number of developers like <20 So the real question is: do you want additional participants? Distributed version control systems made it so much easier to contribute to various open source projects. 3 keeping Alex job easy It could be easier, judging from the hoops one has to jump throu...
by Tommie
Sat Apr 14, 2012 3:42 pm
Forum: Software development
Topic: Moving the repository to git?
Replies: 40
Views: 13265

Re: Moving the repository to git?

Hello, at first, I am very sorry for excavating this old thread, but I think it is a fitting place to put my post. Although I have some background in software development, I am fairly new to this project, but maybe this can yield some intersting perspectives. Over the years, I have seen and used man...
by Tommie
Sat Apr 14, 2012 2:38 pm
Forum: Software development
Topic: Refactoring I2C code
Replies: 37
Views: 8135

Re: Refactoring I2C code

A 8 bit I2C address should always have its LBS to 0, if not it's a bug and we should not implement code to care about this. And that's the point: There is no such thing as an i2C address with 8 bits. The I²C reference design by Philips specifies that the address space consists of 7 bit. When addres...
by Tommie
Sat Apr 14, 2012 9:58 am
Forum: Software development
Topic: Refactoring I2C code
Replies: 37
Views: 8135

Re: Refactoring I2C code

kos wrote:- +1 for 7bit -> move all sensors address to sensors.h
- move i2c function to i2c.c and use nice wrapper ( one read == one call , one write == one call)

Yes, I thought about that, but one step at a time :-)
by Tommie
Sat Apr 14, 2012 9:24 am
Forum: Software development
Topic: Refactoring I2C code
Replies: 37
Views: 8135

Refactoring I2C code

While fixing the broken GPS code, I made some changes to the i2c code. You can find them here: m I changed the following things and would like to see those changes integrated into the official Multiwii tree: - unify i2c_readNak and i2c_readAck into one function - add i2c_read_reg_to_buf to read mult...
by Tommie
Fri Apr 13, 2012 10:08 pm
Forum: Software development
Topic: GPS completely broken in trunk?
Replies: 3
Views: 1431

Re: GPS completely broken in trunk?

I included the fix in my git branch:
https://github.com/wertarbyte/multiwii- ... 009332879c
by Tommie
Fri Apr 13, 2012 8:44 pm
Forum: Software development
Topic: GPS completely broken in trunk?
Replies: 3
Views: 1431

Re: GPS completely broken in trunk?

OK, somehow a patch went horribly wrong in the past; another function ended up in the middle of another one (and for some odd reason, nobody noticed).

Hooray to Subversion!
by Tommie
Fri Apr 13, 2012 4:57 pm
Forum: Software development
Topic: GPS completely broken in trunk?
Replies: 3
Views: 1431

GPS completely broken in trunk?

I am trying to add code for my ATTiny GPS2TWI module (https://github.com/wertarbyte/tiny-gps/) to multiwii, but I noticed that GPS.pde seems completely broken: GPS_NewData actually lacks a closing }, so the entire parse tree collapses once I2C_GPS is enabled.
Before I start fixing it myself, is there a fix already out?
by Tommie
Fri Apr 13, 2012 12:31 pm
Forum: General discussions
Topic: IRC channel?
Replies: 0
Views: 910

IRC channel?

Is anyone interested in joining the IRC channel #multiwii on the Freenode network? We created this channel with a few people tinkering with Multiwii copters for an easy and quick way to exchange ideas and improve our copters, perhaps some other IRC addicts would like to join? :-)
by Tommie
Fri Apr 13, 2012 12:28 pm
Forum: General discussions
Topic: Rc signal waiting or multithreading?
Replies: 4
Views: 1687

Re: Rc signal waiting or multithreading?

Why not take a look into the source code? Multiwii uses the PCINT (Pin Change INTerrupts) present on every pin of the ATMega328p device.
by Tommie
Fri Apr 13, 2012 11:38 am
Forum: Software development
Topic: mwc 2.0 ++
Replies: 25
Views: 9035

Re: mwc 2.0 ++

May I ask why everyone hate tabs? Tabs have one major advantage over indentation by spaces: You can adjust the visual represenation to your liking without changing the code. Want to see more? Just instruct your editor to show tabs with a width of 2 spaces. You cannot do that with spaces, you are bou...
by Tommie
Tue Apr 10, 2012 10:48 pm
Forum: Ideas
Topic: Real Subchannels - not only low/mid/high
Replies: 4
Views: 2194

Re: Real Subchannels - not only low/mid/high

I am working on a project to transmit arbitrary binary data over a single channel. I am using a budget remote control and desoldering one of the potentiometers and instead connected the wires to an ATTiny controller that encodes binary data frames in up/down/neutral movements of this channel: m The ...
by Tommie
Tue Apr 10, 2012 1:26 pm
Forum: Software development
Topic: C oding wizzards?
Replies: 10
Views: 3051

Re: C oding wizzards?

Why not create a simple XOR checksum over the eeprom content and attach it the struct? It's simple and would probably catch most errors, even corupted EEPROM content. uint8_t check_cfg_integrity(config_t *cfg) { uint8_t chk = 0; uint8_t i; for(i=0; i<sizeof(*cfg); i++) { chk ^= (uint8_t*)cfg[i]; } r...
by Tommie
Mon Apr 09, 2012 1:00 pm
Forum: Software development
Topic: Patch: LED Flasher
Replies: 35
Views: 18944

Re: Patch: LED Flasher

I cloned the SVN repository to my github account and created a branch for my LED-Flasher (https://github.com/wertarbyte/multiwii-firmware). Feel free to take a look at it: https://github.com/wertarbyte/multiwii- ... ledflasher
by Tommie
Sun Apr 08, 2012 9:49 pm
Forum: MultiWii tweaking - flying experience
Topic: Trouble adjusting yaw PID values
Replies: 10
Views: 5864

Re: Trouble adjusting yaw PID values

Yes, I did it several times now; however, I am still experiencing the drift around the yaw axis.
by Tommie
Sun Apr 08, 2012 7:59 pm
Forum: MultiWii tweaking - flying experience
Topic: Trouble adjusting yaw PID values
Replies: 10
Views: 5864

Re: Trouble adjusting yaw PID values

Yes, they are.
by Tommie
Sun Apr 08, 2012 7:15 pm
Forum: MultiWii tweaking - flying experience
Topic: Trouble adjusting yaw PID values
Replies: 10
Views: 5864

Re: Trouble adjusting yaw PID values

I checked all motors, but everything looks fine to me - I also tried turing them 180° to see whether anything changes, but nothing happened. I am using these motors: m They are bolted to two aluminum beams, being helt together tightly by two discs of plywood. So you see, there is not much room for m...
by Tommie
Sun Apr 08, 2012 11:28 am
Forum: MultiWii tweaking - flying experience
Topic: Trouble adjusting yaw PID values
Replies: 10
Views: 5864

Re: Trouble adjusting yaw PID values

That sounds more like masking the symptom than fixing the problem. According to the GUI, my yaw axis is dead center, but the copter keeps on rotating to the right. I also noticed that the problem gets worse when ascending; I'm not sure how to fix this. When holding the copter in my hand and turning ...
by Tommie
Sun Apr 08, 2012 11:13 am
Forum: Software development
Topic: Patch: LED Flasher
Replies: 35
Views: 18944

Patch: LED Flasher

I created a little patch to add an effective LED strobe to my copter. The LEDs are connected to PB4 (using a transistor as a switch), which is toggled by the software during the control loop. The flash sequence can be modified by setting the define LED_FLASHER_SEQUENCE or even at runtime by calling ...
by Tommie
Sun Apr 08, 2012 9:55 am
Forum: MultiWii tweaking - flying experience
Topic: Trouble adjusting yaw PID values
Replies: 10
Views: 5864

Trouble adjusting yaw PID values

Hello, I finished building my quadcopter (44cm axis to axis), however I am having trouble adjusting the PID values for the yaw axis: With the default values (P: 8.5, I: 0, D: 0) the copter tends to drift clockwise (gyro measurement ~2-3); I can keep it steady using the yaw stick, but its kind of ann...