**** BEGIN LOGGING AT Fri Jul 31 02:59:59 2015 Jul 31 07:30:06 I'm guessin you guys are asleep Jul 31 07:30:09 but just in case Jul 31 07:30:21 nerdboy: alexanderhiam, meet new code -> https://github.com/nvisnjic/PyBBIO/blob/master/bbio/libraries/MPU9250/MPU9250.py Jul 31 07:30:57 Finished the self test functions, and while the documentation was nonexistant I've used others people code as template Jul 31 07:31:03 specifically this code -> https://github.com/kriswiner/MPU-9250/blob/master/MPU9250BasicAHRS.ino Jul 31 07:31:30 I'm guessing those guys managed to get a hold of the mystical spec sheets for self test InvenSense says should exist, somewhere... Jul 31 07:31:51 Check if I've messed something up, or you'd like me to change Jul 31 07:32:07 also alexanderhiam I'll do a pull request when I get back home, since I have to go out now Jul 31 07:32:30 planning on getting the calib() in the code by tonight and that would pretty much sum up the whole library for MPU9250 Jul 31 07:32:40 at least the basic and most crucial functions Jul 31 11:07:34 * webglider wonders if a built version of the nw.js getting started app is available somewhere Jul 31 13:42:40 neemo: -> https://github.com/nvisnjic/PyBBIO/blob/master/bbio/libraries/MPU9250/MPU9250.py#L107 Jul 31 13:43:06 two problems there Jul 31 13:43:42 1. the funtion could be called with a value greater than 3, in which case you'll be setting more bits than you want to Jul 31 13:44:28 you should use a bitmask to make sure that doesn't happen, i.e. regVal = (rangeVal & 0x3)<<3 Jul 31 13:44:57 2. you're writing the entire register, so every other bit in it will get written to 0 Jul 31 13:46:21 you should read the register first, clear hte bits of interest (e.g. regVal &= ~(0x3<<3)), set those bit to the new value, then write the whole register Jul 31 13:48:45 neemo: also, I'd recommend moving the test code to its own example program Jul 31 13:49:55 it doesn't really belong in the device driver itself, it's something that's done using the device driver Jul 31 13:55:06 #1 applies everywhere you're writing part of a register, so be sure to check all those Jul 31 13:56:43 neemo: ah, does the calibration depend on that? Jul 31 13:56:57 in that case I suppose it makes sense to have it there Jul 31 15:44:26 hi jkridner Jul 31 15:44:39 is it ok to have some talk now? Jul 31 16:04:26 moin Jul 31 16:05:09 * moto-timo passes nerdboy a dopio con panna Jul 31 16:41:24 morning Jul 31 16:55:30 moto-timo: how many of those for a headache? Jul 31 17:22:19 Happy belated birthday, Abishek Jul 31 17:22:31 nerdboy: four I think :) Jul 31 18:01:36 thank you moto-timo :) Jul 31 19:30:54 <_av500_> alohi Jul 31 19:31:00 <_av500_> anybody pingeth me? Jul 31 19:52:18 _av500_ Jul 31 19:55:54 <_av500_> yo Jul 31 19:56:22 _av500_: what benchmark you mentioned in your coment? Jul 31 19:56:39 <_av500_> all of them Jul 31 19:56:50 <_av500_> or is there a writeup I missed? Jul 31 19:56:57 <_av500_> but also the raw data rate one Jul 31 19:57:00 <_av500_> especially Jul 31 19:59:46 I think you missed some of the earlier messages. I mentioned the raw data rate before. Is that all or you want something else too? Jul 31 20:07:01 <_av500_> my net is bad Jul 31 20:07:12 <_av500_> if you have all data, pls send a report Aug 01 01:57:15 alexanderhiam: fixed -> https://github.com/nvisnjic/PyBBIO/blob/master/bbio/libraries/MPU9250/MPU9250.py#L113 Aug 01 01:57:54 added a check for regVal >= 0 <= 3 if not it aborts the range change and states so Aug 01 01:58:38 that looked like a more consistent way to do it than bitmasks, since that produces some two bits depending on input Aug 01 01:59:13 I did have bitmasks in mind first, but forgot to come back and make a better solution :) Aug 01 01:59:40 I've added bit preservation to setRange, now should work fine Aug 01 02:00:59 and added config saving to runSelfTest so it doesn't wreck havoc on the configs when you run it Aug 01 02:01:10 I'm gonna work on the calib functions next Aug 01 02:01:27 should I wait for those before I make a pull, or should I do that first :? Aug 01 02:38:42 wait for what and why? Aug 01 02:54:36 pull request Aug 01 02:55:00 for MPU library to PyBBIO @ Alex Aug 01 02:55:23 since I still have to finish the calib functions **** ENDING LOGGING AT Sat Aug 01 02:59:58 2015