I thought LSM303DLx was just HMC5883 chip inside same package with accel.
Wouldn't it be easier to reuse existing 5883 code?
Search found 1880 matches
- Sat Nov 05, 2011 12:51 pm
- Forum: Software development
- Topic: LSM303DLx support
- Replies: 6
- Views: 4381
- Fri Nov 04, 2011 11:05 am
- Forum: Software development
- Topic: Question about Code
- Replies: 6
- Views: 2103
Re: Question about Code
The 'switch' part combined with read-onlyness of PINB is what threw me off.
Normally this is called "toggle".
Normally this is called "toggle".
- Fri Nov 04, 2011 4:08 am
- Forum: Software development
- Topic: MultiWii_dev_20111029
- Replies: 35
- Views: 10633
Re: MultiWii_dev_20111029
Had some time to port this new code and try it out.
Flies as good as ever, and I don't notice any issues with autolevel.
Flies as good as ever, and I don't notice any issues with autolevel.
- Thu Nov 03, 2011 2:47 pm
- Forum: Software development
- Topic: Question about Code
- Replies: 6
- Views: 2103
Re: Question about Code
Let's turn this thread into catch-all for asking stupid questions about the code. I've got doubts about this: #define LEDPIN_SWITCH PINB |= 1<<5; According to doc8025, all of PINB is read-only. 14.4.4 PINB – The Port B Input Pins Address ... Is there ANY reason this code exists, and if so, what exac...
- Wed Nov 02, 2011 3:53 pm
- Forum: Software development
- Topic: MultiWii_dev_20111029
- Replies: 35
- Views: 10633
Re: MultiWii_dev_20111029
I know I might be asking too much, but I've got a few code readability improvement requests. Things like LEDPIN_SWITCH, etc macros do not have a terminating semicolon after them. Yes, I realize it's in the config.h file, but it still makes it more difficult to read (and indent) the code. So instead ...
- Wed Nov 02, 2011 3:42 pm
- Forum: Software development
- Topic: Spektrum Satellite 2048 and 11ms support
- Replies: 11
- Views: 3830
Re: Spektrum Satellite 2048 and 11ms support
Before 1.9 release can someone (alex? whoever?) clean up byte -> uint8_t stuff please? Since the rest of the code uses uint8_t there seems to be no reason to use custom types, and it makes code harder to read. Looking at 20111029 dev it still uses byte.
- Mon Oct 31, 2011 10:45 am
- Forum: Software development
- Topic: MultiWii_dev_20111029
- Replies: 35
- Views: 10633
Re: MultiWii_dev_20111029
OK, thanks for explanation. That's basically what I'm doing, and it seems to work. ( = rescaling gyro outputs)
500 dps was just an example anyway. Still haven't fly-tested this dev, but it seems to be working OK on the desk.
500 dps was just an example anyway. Still haven't fly-tested this dev, but it seems to be working OK on the desk.
- Sun Oct 30, 2011 10:38 pm
- Forum: Software development
- Topic: MultiWii_dev_20111029
- Replies: 35
- Views: 10633
Re: MultiWii_dev_20111029
Well, I thought you said auto-level code depended on 2000dps as well at some point. Is this not the case anymore?
i.e. if I change to 500dps gyro and adjust things appropriately, nothing else needs to be changed?
i.e. if I change to 500dps gyro and adjust things appropriately, nothing else needs to be changed?
- Sun Oct 30, 2011 4:31 pm
- Forum: Software development
- Topic: MultiWii_dev_20111029
- Replies: 35
- Views: 10633
Re: MultiWii_dev_20111029
Hmm.. I merged the changes, and something is messed up in accSmooth, pitch/roll values are all over the place (jumping between -1000/1000 type thing... So I went through line by line and didn't see any merge fail... Finally I thought "hey let's calibrate ACC". Hit that button and now all i...
- Sun Oct 30, 2011 12:06 pm
- Forum: Software development
- Topic: Moving the repository to git?
- Replies: 40
- Views: 13242
Re: Moving the repository to git?
Millions? You're kidding right. There aren't even millions of USERS of opensores code, never mind developers.... git was created to deal with the mess that is Linux, if it wasn't such a mess, git wouldn't be needed... I'll be needing to merge 1.8p2 with latest dev/1.9 soon for my STM8 port, please e...
- Sun Oct 30, 2011 4:28 am
- Forum: Software development
- Topic: MultiWii_dev_20111029
- Replies: 35
- Views: 10633
Re: MultiWii_dev_20111029
Requesting configurable gyro dps that's not 2000 and not tied into the rest of the code? pretty-please?
- Thu Oct 27, 2011 2:54 am
- Forum: Software development
- Topic: Moving the repository to git?
- Replies: 40
- Views: 13242
Re: Moving the repository to git?
Just more useless stuff to deal with for people who actually bother spending time to code.
Google code is fine, and SVN is fine. If you can't handle merging patches, you probably shouldn't be trying to submit code.
Google code is fine, and SVN is fine. If you can't handle merging patches, you probably shouldn't be trying to submit code.
- Sun Oct 23, 2011 7:46 am
- Forum: Software development
- Topic: MultiWii port to STM8S105
- Replies: 19
- Views: 6896
Re: MultiWii port to STM8S105
It would be cool if in next version, the gyro scalefactor could be implemented, so things like 500deg/sec gyros (or any other rate really) could be easily used. Right now I just lucked out (somehow?) by multiplying my 500deg/sec output by 5 to get the values mwii wanted, but it would be nice to have...
- Thu Oct 20, 2011 12:47 am
- Forum: Software development
- Topic: Calibrating ESCs.
- Replies: 7
- Views: 2783
Re: Calibrating ESCs.
Well, something like powering up with say pitch + throttle at max would enter throttle calibration mode.
Just a guess. Since as you say, user needs to plug in escs after the board initializes... Could give some blink codes if you're really paranoid about safety.
Just a guess.
Just a guess. Since as you say, user needs to plug in escs after the board initializes... Could give some blink codes if you're really paranoid about safety.
Just a guess.
- Wed Oct 19, 2011 4:55 pm
- Forum: Software development
- Topic: Calibrating ESCs.
- Replies: 7
- Views: 2783
Re: Calibrating ESCs.
This might be silly but surely making a user reflash firmware just to calibrated escs is a bit extreme?
- Mon Oct 17, 2011 1:30 am
- Forum: Software development
- Topic: MultiWii port to STM8S105
- Replies: 19
- Views: 6896
Re: MultiWii port to STM8S105
OK, thanks for advice. I will wait until there's a new-stable or until there's some feature in _dev that I'm required. I do have a 3.3V I2C header but I don't think I'm going to be using any other sensors. I might use it for motor control and make motor 1-6 as PWM inputs, but thats not a high priori...
- Sun Oct 16, 2011 6:57 pm
- Forum: Software development
- Topic: MultiWii port to STM8S105
- Replies: 19
- Views: 6896
Re: MultiWii port to STM8S105
Looks like the strange yaw activity must have been due to dodgy/faulty yaw gyro on my prototype board. I made a new smaller form factor PCB and loaded code with defaults, and yawing is (as good) as its going to get I guess. I've also merged all changes up to multiwii 1.8_p2. I guess I'll match them ...
- Sat Sep 24, 2011 7:39 am
- Forum: Software development
- Topic: I2C Communication
- Replies: 6
- Views: 2678
Re: I2C Communication
Pretty cool idea, but how much more noise are you going to put on this slow bus? You are already reading i2c sensors etc... And I guess you want OSD to be slave, not mwii?
anyway I think you need to set TWAR register for address you want to listen on.
anyway I think you need to set TWAR register for address you want to listen on.
- Mon Sep 19, 2011 2:59 am
- Forum: Software development
- Topic: Servo library
- Replies: 2
- Views: 1486
Re: Servo library
Because servo library sucks would be my guess.
Of course, if you had used MCU with proper hardware PWM this wouldn't be a problem at all...
Of course, if you had used MCU with proper hardware PWM this wouldn't be a problem at all...
- Sun Sep 11, 2011 4:16 am
- Forum: Software development
- Topic: Teensy Support ?
- Replies: 24
- Views: 11998
Re: Teensy Support ?
One word,
PPM
PPM
- Sat Sep 10, 2011 6:54 am
- Forum: Software development
- Topic: arduino coding question
- Replies: 3
- Views: 1595
Re: arduino coding question
If you notice rcTime is actually assigned right inside that if() statement.
Of course, its initial value is 0 due to it being static, so when currentTIme reaches > 20000 rcTime gets set to that.
Of course, its initial value is 0 due to it being static, so when currentTIme reaches > 20000 rcTime gets set to that.
- Sat Sep 10, 2011 2:39 am
- Forum: Software development
- Topic: arduino coding question
- Replies: 3
- Views: 1595
Re: arduino coding question
static vars are initialized to zero. non-static are not.
- Tue Sep 06, 2011 2:25 pm
- Forum: Software development
- Topic: Alternative Barometer MPX4200A
- Replies: 2
- Views: 1566
Re: Alternative Barometer MPX4200A
Go for it.
- Tue Sep 06, 2011 1:23 am
- Forum: Software development
- Topic: MultiWii port to STM8S105
- Replies: 19
- Views: 6896
Re: MultiWii port to STM8S105
Everything works, I declare victory
http://www.youtube.com/watch?v=phOtpMJZah8
Can be configured to either use onboard gyro+accel or external i2c sensor board at 3.3V (tested with atavrsbin1, but should work with other junk too).
Latest code here http://code.google.com/p/afrodevices/so ... %2Fafrowii
http://www.youtube.com/watch?v=phOtpMJZah8
Can be configured to either use onboard gyro+accel or external i2c sensor board at 3.3V (tested with atavrsbin1, but should work with other junk too).
Latest code here http://code.google.com/p/afrodevices/so ... %2Fafrowii
- Mon Sep 05, 2011 4:57 am
- Forum: Software development
- Topic: MultiWii port to STM8S105
- Replies: 19
- Views: 6896
Re: MultiWii port to STM8S105
OK, I guess its working with ATAVRSBIN1, so the issue is there's some 2000dps-ness in the code somewhere that assumes high-rate gyros. Alex, any ideas? Test flight with my STM8 board + ATAVRSBIN1: m I had to turn RC_Rate WAY up after this video, and there's still some unexplained yaw that happens in...
- Sun Sep 04, 2011 6:53 pm
- Forum: Software development
- Topic: MultiWii port to STM8S105
- Replies: 19
- Views: 6896
Re: MultiWii port to STM8S105
The board itself isn't worth it. It's ATXMega, and currently no code exists for it to do anything. There's not enough headers on the board to use it as a multirotor controller, and its too big for that anyway. However, the sensor boards (Inertial one / pressure one / inertial two?) are a decent deal...
- Sun Sep 04, 2011 6:24 pm
- Forum: Software development
- Topic: MultiWii port to STM8S105
- Replies: 19
- Views: 6896
Re: MultiWii port to STM8S105
Moving right along. I2C code has been done, and I had ATAVRSBIN1 laying around from my XPlained board. I defined the proper stuff, and the GUI is showing it correctly. http://i.imgur.com/wQu4i.png However there's a strange unexplained dip sometimes - the sensor jumps to -5000 or so for readings. Is ...
- Sun Sep 04, 2011 8:02 am
- Forum: Software development
- Topic: MultiWii port to STM8S105
- Replies: 19
- Views: 6896
Re: MultiWii port to STM8S105
OK, I ended up having GYRO_SCALE as this: #define GYRO_SCALE ((500.0f * PI)/((1024.0f) * 180.0f * 1000000.0f) * 3.0f) Without * 3.0 it was pretty laggy in rotation response, so I increased that until the angles were correct. So now that I had correct angles in GUI with high acc factor, I put acc bac...
- Sat Sep 03, 2011 10:54 am
- Forum: Software development
- Topic: MultiWii port to STM8S105
- Replies: 19
- Views: 6896
Re: MultiWii port to STM8S105
Cool, thanks for replying to my email here, maybe the info can help others as well. I suspected /4 was happening somewhere but did not look much into it. I'm going to try (I need to make another devboard as I think I fried analog inputs on the one on my desk - they're consistently less amplitude tha...
- Fri Sep 02, 2011 5:04 pm
- Forum: Software development
- Topic: MultiWii port to STM8S105
- Replies: 19
- Views: 6896
MultiWii port to STM8S105
I was bored and took 1.8p1 and ported it to STM8S -> m This is NOT related to AVR or any Atmel-cpu. I tried to keep most changes under #ifdef STM8, but maybe wasn't too careful in places. My STM8 board uses analog gyros and adxl345 on SPI bus, so a couple changes were needed for that. Gyros are 500d...