**** BEGIN LOGGING AT Thu Jul 03 03:00:01 2014 Jul 03 04:29:03 * karki hmm... Jul 03 05:53:29 did someone around here hacked with this device ? https://www.sparkfun.com/products/11792 Jul 03 09:02:29 Sounds like a cool fingerprint sensor :) Jul 03 09:04:24 good morning! Jul 03 09:04:59 ds2: following with yesterday's conversation, you might be interesting in taking a look at http://erlerobot.com/blog/beaglepilot-evaluating-ahrs-mpu6000/ Jul 03 09:05:14 ds2: i plotted the IMU and AHRS outputs Jul 03 09:05:26 ds2: does it look too bad on you? Jul 03 09:10:57 wanna build one for login to my iMac :) Jul 03 09:34:21 * karki wants an iMac Jul 03 09:37:03 karki_: mine is running linux by default, wiped all osx from it Jul 03 09:37:12 :) Jul 03 09:37:36 but why spend so much and run linux ;) Jul 03 09:37:55 vvu : do you have a mac book? Jul 03 09:57:55 karki: you could buy one now if you wanted :) Jul 03 10:31:58 Abhishek_ : It's a whooping 1.6L rupees, why spend so much on one thing? (not that I have anything better to invest in ;) ) Jul 03 10:35:03 Well it's your call :) Jul 03 10:39:10 karki: i changed the hdd in it with a ssd and osx started giving me kernel panics randomly Jul 03 10:39:17 so i switched Jul 03 10:39:51 vvu : I read that as kernel picnics :'D Jul 03 10:40:06 :) Jul 03 12:18:57 karki: that would be a nice one :) Jul 03 12:59:55 jkridner: thanks for the introduction and adding me to the call. I won't be able to make it that day but i dropped a comment. Hopefully I'll get their attention and we can start discussing it. Jul 03 16:02:47 alexanderhiam , jkridner , panto : my terminal works! now I have an interactive interface to the PRU. I can execute individual commands, series of commands or download a script and run at will :D Jul 03 16:04:24 karki: very cool Jul 03 16:04:56 now to add language features :) Jul 03 16:05:15 variables and conditionals - here I come ;) Jul 03 16:07:00 karki: do you know how you'll handle conditionals? Jul 03 16:08:42 I think I know, but we will soon know whether I really do know :p Jul 03 16:09:01 cool! Jul 03 16:09:02 I'll put up a table by this weekend for all inst --> byte code conversion Jul 03 16:09:18 panto : :) Jul 03 16:12:33 karki: implement a HELP command Jul 03 16:15:33 av500 : Yeah! also a STATUS command, to get the processor status (includes a lot of other small stuff ) :) Jul 03 16:20:28 Nice :) Jul 03 16:24:00 karki: I wonder if there's a need to mark commands as interactive/script compatible, e.g. there's no reason to generate the output of HELP and STATUS in a script becasue you don't have strings Jul 03 16:26:19 alexanderhiam : there are a few commands that are interpreted in userspace ARM (as of now), RUN, HELP, STATUS are some of those. Jul 03 16:26:42 These particularly are not meant for the PRU to interpret Jul 03 16:26:58 oh ok, and so they'll be removed from scripts before sending to the PRU? Jul 03 16:27:04 yeah! Jul 03 16:27:16 like RUN for example makes no sense to the PRU Jul 03 16:27:39 well not at the moment at least Jul 03 16:28:21 if you do eventually move the entire BotSpeak interpreter to the PRU then RUN is just part of the interpreter's logic Jul 03 16:31:20 karki: is that in python? Jul 03 16:33:39 alexanderhiam : hmm... that makes so much more sense than what I was doing currently! I'll infact move RUN to the PRU this week itself! Jul 03 16:33:49 Abhishek_ : Yeah :) Jul 03 16:35:04 Received quite a detailed patch review from the sigrok people and catching up Jul 03 17:41:35 karki: sweet! record a video! Jul 03 17:41:50 jkridner : in a while :) Jul 03 17:54:13 hi jkridner Jul 03 17:54:23 hi Abhishek_ Jul 03 17:54:35 glad you are getting feedback. Jul 03 17:55:15 so, we are meeting in 3 hours Jul 03 17:56:01 jkridner : about the IF command, is it okay if I fit the "IF (a cond b)" in 32 bits and the "GOTO x" as a separate 32 bit instruction following the IF inst? if the "IF" is false, I will just move the PC by 2 rather than the normal one. Jul 03 17:57:08 karki: sure, you can have a boolean state for a conditional GOTO, but please make it clear you have a conditional GOTO in addition to an unconditional GOTO. Jul 03 17:57:18 oh... Jul 03 17:57:26 I see, you are skipping the next instruction... Jul 03 17:57:31 yeah Jul 03 17:57:35 ...and always having an unconditional GOTO. Jul 03 17:57:38 that seems just fine! Jul 03 17:57:42 :) Jul 03 17:58:15 ...and keeping the syntax the same.... just essentially making IF a 2x32-bit instruction in the implementation. Jul 03 17:58:30 Exactly! Jul 03 17:58:52 without your interpreter needing to think of it as a multiword instruction. Jul 03 17:58:54 seems fine to me. Jul 03 18:00:22 jkridner : this approach did seem to simplify things a lot! all the other inst can be fit in 32 bits as far as I have seen. Finishing the table should solidify things! Jul 03 18:02:24 great. Jul 03 18:02:29 looking forward to seeing it. Jul 03 18:10:54 karki: that approach seems dine, but remember it's not always just a jump by 2 because there could be multiple lines inside the conditional block Jul 03 18:11:54 alexanderhiam : is there a concept of a conditional *block* in BS? Jul 03 18:12:34 I assume so, doesn't it go until an ELSE or an ENDIF? Jul 03 18:12:48 I can't find the language definition at the moment... Jul 03 18:55:59 alexanderhiam: I think the IF and ELSE can only optionally execute GOTO.... they don't have blocks Jul 03 18:56:55 oh duh, I was thinking about it backwards Jul 03 18:57:23 alexanderhiam: there doesn't seem to be an ELSE: http://botspeak.org/?page_id=101 Jul 03 18:57:59 oh I see Jul 03 18:58:26 it's just a conditional jump Jul 03 18:59:12 I guess that makes sense with the labview compiling Jul 03 18:59:15 indeed, so karki's solution works great... and might even add more functionality if we need it (a conditional execute) Jul 03 18:59:25 though it does make it harder to write by hand Jul 03 19:00:06 alexanderhiam: means we need to make all our own blocks.... I don't think you have returns either. Jul 03 19:00:26 or CALL. Jul 03 19:00:30 all manual. Jul 03 19:00:44 high level assembly :P Jul 03 19:00:56 :-) Jul 03 19:17:30 BotSpeak languange and the startscript, endscript, single line instruction execution seems to remind of GWBASIC which I hacked with in childhood :) Jul 03 19:19:20 this seems like the new-age BASIC interpreter Jul 03 19:22:45 Abhishek_ : It's an ADVANCED BASIC interpreter! :p Jul 03 19:23:12 it's all the same in the end, in terms you what you are gonna achieve :) Jul 03 19:25:10 I think the "easy and deterministic I/O" [PWM, GPIO, etc] is the key feature that would differentiate it in terms of other script interpreters Jul 03 19:25:36 and that's why this interpreter is on the PRUs Jul 03 20:16:15 posting the Hangouts on Air for BeagleLogic here for the record: https://plus.google.com/u/0/events/c2verap7sdf36lsrv4kuqt3gfhg Jul 03 20:45:33 jkridner: testing connectivity Jul 03 21:10:06 ds2: btw in you case you forgot i'm in ohio for the next week Jul 03 21:20:40 'k Jul 03 21:20:48 enjoy the corn :D **** ENDING LOGGING AT Fri Jul 04 02:59:58 2014