#robotics Logs

Oct 31 2011

#robotics Calendar


00:42 rue_bed the gain and deadband were issues
00:43 rue_bed and SOMETHING is causing one side of the math to totally flip out
00:47 rue_bed it loads the muscle properly, but during unloading, the load suddenly kicks in
00:47 rue_bed I confirmed its kicking in when it definitly shouldn't
00:48 rue_bed it can be deep in the unload region and the load will kick
00:48 rue_bed but it holds its position really well
17:26 zhanx writers block, i am starring at a basicly blank program all i have is int main(void) {
17:30 Steffanx return; }
17:30 Steffanx That's all you need zhanx
17:30 Steffanx *return 0;
17:31 zhanx lol
17:31 zhanx then its ready to go
17:31 Tom_itx zhanx are those downloaders for windows full blown ide's?
17:31 Tom_itx i got IAR the other day but didn't install it yet
17:32 Steffanx IAR => Trash bin
17:32 Tom_itx but we need a downloader
17:33 Tom_itx Steffanx
17:33 Tom_itx what were you gonna bug me with?
17:33 Steffanx The same thing as yesterday
17:33 zhanx uVision4 from keil is what i used to upload my hello world program
17:33 Tom_itx do they require you to register with them?
17:34 Steffanx You remember that Tom_itx ?
17:34 Tom_itx Steffanx is too tired to bug tom_itx today
17:34 Steffanx Anyway, gn
17:34 zhanx Tom_itx no
17:35 Tom_itx ok, i'll try that later
17:35 Tom_itx got a good link to it?
17:35 Steffanx The editor of keil sucks :P
17:35 Tom_itx how do you know?
17:35 Steffanx I used for a while
17:35 zhanx http://www.keil.com/arm/mdk.asp
17:36 zhanx who said we are gonna use it to edit?
17:36 Steffanx I didn't :P
17:36 Steffanx I just stated it sucks
17:36 Steffanx You are using it for your stm32 board Tom_itx ?
17:36 zhanx but it does the job of uploading code and has a debugger built in
17:36 Tom_itx Steffanx was gonna
17:37 Tom_itx they want me to register
17:38 Steffanx Register :)
17:38 Steffanx You can use the ST-LINK Utility, but then you still need a compiler :)
17:38 Tom_itx ubuntu
17:38 Tom_itx gcc
17:38 Steffanx Ah
17:38 zhanx use fake info and d/l it
17:38 Steffanx Download that texame stuff Tom_itx ?
17:38 zhanx i should work on the ubuntu
17:38 Steffanx *texane
17:39 Tom_itx Steffanx yes i think
17:39 zhanx ok swapping to my laptop to work on this
17:39 Steffanx The version for the st-link of the stm32f4 discovery seems to be ok
17:40 Steffanx So no need to download the mdk Tom_itx :)
17:40 zhanx_laptop ok on the laptop
17:41 Tom_itx the MDK-ARM download from keil?
17:41 Steffanx Yeah that one
17:42 Tom_itx Register name: John J.
17:42 Steffanx John D. ...
17:42 Tom_itx professional title: killer
17:42 Steffanx Hmpf :S
17:42 zhanx_laptop Tom_itx, you got anything like /dev/st32l_stlink1 on the ubuntu box
17:42 zhanx_laptop :P
17:43 Steffanx good night
17:43 Tom_itx zhanx i dunno, and i can't look now
17:43 Tom_itx later Steffanx
17:43 zhanx_laptop k
17:43 Tom_itx i gotta run for a while
17:43 zhanx_laptop i think that is the step we need for you and laters
17:43 zhanx_laptop i am gonna mess abit with uploading under ubuntu
17:43 Tom_itx whatever works
17:43 Tom_itx i don't really care
17:44 zhanx_laptop i know keil worns
17:44 Tom_itx not too fond of eclipse
17:44 zhanx_laptop err works
17:44 zhanx_laptop k
17:44 Tom_itx it crashed and i hadn't even done anything with it yet
17:45 zhanx_laptop nice
17:45 zhanx_laptop ok
17:45 Tom_itx i'll work on it later on this evening though
17:47 zhanx_laptop Tom_itx, bookmark this page http://cu.rious.org/make/stm32f4-discovery-board-with-linux/
17:48 Tom_itx ok
17:48 zhanx_laptop trying that now
17:49 Tom_itx i'll check in later on
17:52 zhanx_laptop ok connected to the board so i can confirm it works
18:14 Tom_itx so ubuntu all the way?
18:15 zhanx yep for me
18:15 zhanx gedit for the code or i might take the time to learn eclipse as it does easy make files
18:16 Tom_itx ok i'll get your setup later this evening
18:17 zhanx k
19:13 zhanx_laptop Tom_itx, only thing left to do is to get the demo files to compile and be able to test the upload
19:44 zhanx_laptop ok tom when your ready
20:28 zhanx_laptop ok better
20:34 galfgaljkdhflwye Is their a difference in programming a robot in c apposed to c++?
20:35 zhanx_laptop object vs no objects
20:35 zhanx_laptop what are you doing is the key
20:35 galfgaljkdhflwye when would i need object and vise versa
20:35 zhanx_laptop so c++
20:36 galfgaljkdhflwye ?
20:36 galfgaljkdhflwye when do you need object
20:36 galfgaljkdhflwye and when dont you
20:37 zhanx_laptop i.e vision?
20:37 Tom_itx snagged about 12lb of candy tonight
20:37 zhanx_laptop tom your bad
20:37 Tom_itx not me silly
20:38 galfgaljkdhflwye hey tom
20:38 zhanx_laptop tom i got an upload over linux tonight
20:38 Tom_itx i'm booting ubuntu now
20:39 zhanx_laptop that webpage is *slightly* off
20:39 zhanx_laptop not much at all
20:39 Tom_itx ok
20:39 Tom_itx is this a fresh start then?
20:39 zhanx_laptop well, no
20:39 zhanx_laptop the builds will not over write the old stuff
20:40 zhanx_laptop no need to
20:40 Tom_itx ok
20:40 Tom_itx i'll go thru his list
20:40 Tom_itx http://cu.rious.org/make/stm32f4-discovery-board-with-linux/
20:40 Tom_itx that one right?
20:40 zhanx_laptop yep
20:40 zhanx_laptop this line should install only one file sudo apt-get install flex bison libgmp3-dev libmpfr-dev libncurses5-dev \
20:40 zhanx_laptop libmpc-dev autoconf texinfo build-essential libftdi-dev
20:41 zhanx_laptop the last one
20:41 zhanx_laptop but just incase do the whole step till you get to building
20:41 zhanx_laptop aka this line cd stlink/
20:43 Y_U_MAD wait sorry logged off
20:43 coppermine im up to 847.99$ in parts in my robot design eeks
20:43 Y_U_MAD so can you tell me when object is better than non object for robotics and vise versa?
20:43 zhanx_laptop that is cheap
20:44 coppermine zhanx_laptop: even for a 1st build?
20:44 zhanx_laptop Y_U_MAD, do c++
20:44 zhanx_laptop coppermine, my first robot was $$$$
20:44 Y_U_MAD I would like to know why
20:44 coppermine zhanx_laptop: but it has all the features I like
20:44 Tom_itx it's doing alot of somethign
20:44 zhanx_laptop why limit your self?
20:44 zhanx_laptop Tom_itx, it will
20:44 zhanx_laptop let me know when done
20:45 Tom_itx about half way
20:45 coppermine is there a cad program just for robots for linux by any chance?
20:45 zhanx_laptop more like 1/10
20:45 zhanx_laptop coppermine, nope
20:45 coppermine whats the best gui tool i can use?
20:45 zhanx_laptop 2d?
20:45 coppermine besides paper and pen
20:45 coppermine sure
20:45 coppermine any cad program then?
20:45 zhanx_laptop inkscape is easy
20:46 zhanx_laptop and fast
20:46 coppermine let me see if gentoo has it
20:46 zhanx_laptop i use it for laser cut parts
20:46 zhanx_laptop etc
20:46 coppermine yes its there
20:46 Tom_itx there's a cad for sheetmetal...
20:46 Tom_itx i forget what it's called
20:46 coppermine Description: A SVG based generic vector-drawing program
20:46 Tom_itx that would do
20:46 coppermine is a wood base good?
20:46 zhanx_laptop Tom_itx, inkscape replaced it
20:46 coppermine im thinking for outdoors not soo much?
20:47 zhanx_laptop with all the plugins
20:47 Y_U_MAD WHO KNOWS C AND C++
20:48 zhanx_laptop most of us
20:48 coppermine big application inkscape
20:48 coppermine still emerging
20:48 zhanx_laptop Y_U_MAD, not saying i am the best programmer in the room but Tom_itx will say i am good
20:48 zhanx_laptop do it in C++
20:48 zhanx_laptop later you will be glad
20:49 Y_U_MAD but why
20:49 Y_U_MAD and why do most people use c
20:49 coppermine cause structured programming rocks
20:49 zhanx_laptop nowdays little reason
20:49 zhanx_laptop but at the same time I rock c++
20:49 coppermine i prefer printf vs cout
20:50 zhanx_laptop printf is c++ also
20:50 coppermine my 8 cores is chewing up inkscape
20:50 coppermine compiling from source
20:50 zhanx_laptop ok so like 7 secs?
20:50 coppermine a bit more
20:51 coppermine few mins vs few hours on most cpus
20:51 zhanx_laptop few hours on what a pen 2?
20:51 coppermine p3/p4
20:51 coppermine core2 and quad a bit faster
20:52 zhanx_laptop core 2 8 minutes ish
20:52 coppermine cool
20:52 coppermine its cause with gentoo it has to also compile dependencies
20:52 coppermine if any
20:52 coppermine in my case 11 other apps
20:52 zhanx_laptop Tom_itx, update?
20:53 zhanx_laptop or atom1
20:53 coppermine 8 cores at 99% each in top is beautifull :)
20:53 Y_U_MAD can somebody give me a detailed reason why c++ is better for robotics vise versa and when x would be better for this than y, al you have said is x is better
20:53 coppermine its not better
20:53 coppermine your personnal preference
20:53 coppermine do what you want
20:54 coppermine if you want to deal with parent and children and relationship go with c++
20:54 coppermine if you prefer logic
20:54 coppermine go with c
20:54 zhanx_laptop i prefer c++
20:55 coppermine besides c++ is built on c
20:55 coppermine without c there is no c++
20:55 zhanx_laptop true
20:55 zhanx_laptop and Y_U_MAD do what you know
20:55 zhanx_laptop that is key
20:56 coppermine hmmm 63C cpu temp
20:56 zhanx_laptop i write weird code etc
20:56 coppermine getting hot
20:56 Y_U_MAD I prefer abstract logic and something taking problem solving skills
20:56 Y_U_MAD which one
20:56 zhanx_laptop c++ then
20:56 zhanx_laptop well
20:56 Y_U_MAD http://www.youtube.com/watch?v=E3PEnMPXMic
20:56 Y_U_MAD good music is good
20:56 zhanx_laptop are you uC programming?
20:57 coppermine zhanx_laptop: ok its installed
20:57 coppermine whats the strong point of this sofware?
20:57 Tom_itx zhanx couldn't find libusb-1.0-dev
20:57 Y_U_MAD no c is mainly used in robotics which im in
20:57 zhanx_laptop tom you installed it last night
20:57 Tom_itx i thought so
20:57 coppermine looks like a fancy paintbrush from windows 3.11
20:58 zhanx_laptop ok Tom_itx cd ~
20:58 Y_U_MAD whats the most logical programming language
20:58 zhanx_laptop cd /stlink.git
20:58 coppermine Y_U_MAD: ASM
20:58 coppermine mov ax,5h
20:58 coppermine int 21h
20:58 coppermine etc
20:58 zhanx_laptop sudo ./gdbserver/st-util fu bar
20:58 Y_U_MAD besides asm
20:58 Tom_itx stlink failed to compile
20:58 zhanx_laptop with board connected
20:58 zhanx_laptop wait why?
20:59 Tom_itx dunno
20:59 Tom_itx i've got a stlink and stlink.git dir
20:59 zhanx_laptop ok go to stlink,git and give me the error message
20:59 zhanx_laptop do a make
21:00 zhanx_laptop pastebin it
21:02 Tom_itx http://tom-itx.dyndns.org:81/~webpage/rue/error.txt
21:04 zhanx_laptop uname -r
21:05 Tom_itx what's that do?
21:05 zhanx_laptop gives your kernal
21:05 atom1 2.6.32-122-rtai
21:06 zhanx_laptop ok that is the issue
21:06 zhanx_laptop your building on the emc box
21:06 Tom_itx yup
21:06 zhanx_laptop no go
21:06 Tom_itx only ubuntu i have
21:06 zhanx_laptop cant
21:06 zhanx_laptop not possible
21:06 Tom_itx why not?
21:06 Tom_itx rtai?
21:06 zhanx_laptop rtai is not normal
21:07 Tom_itx realtime
21:07 zhanx_laptop yep
21:07 zhanx_laptop that is the issue right now
21:07 Tom_itx why would that screw with a compiler
21:07 zhanx_laptop options etc... forgot you were on that
21:08 Tom_itx i thought you said you were too
21:08 zhanx_laptop rtai is not close to normal
21:08 zhanx_laptop i am on 10.04 but not rtai
21:08 Tom_itx oh
21:08 Tom_itx no emc on it then
21:08 zhanx_laptop no, i should have realized this before
21:08 Tom_itx i thought i mentioned it
21:09 zhanx_laptop if you want it to work you have to do a pita compile all from source
21:09 Tom_itx i've got a ssd i could put something on
21:09 zhanx_laptop ALL of it
21:09 Tom_itx ubuntu?
21:09 zhanx_laptop RTAI has extra flags etc ( to dumb it down) and yes
21:09 Tom_itx mmmm
21:09 Tom_itx no thanks
21:10 Tom_itx there's no prebuilt binaries i can use?
21:10 zhanx_laptop no i wish there were, dual boot?
21:10 Tom_itx i can get regular ubuntu can't I?
21:10 zhanx_laptop if not windows and i can help with that
21:10 Tom_itx i'm not gonna dual boot
21:11 Tom_itx i tried that once and it fucked everything up
21:11 zhanx_laptop if you get regular ubuntu and setup emc it makes it rtai
21:11 Tom_itx so it's failing on the downloader compile?
21:11 Tom_itx what about the rest of the gcc for compiling code?
21:11 zhanx_laptop yep
21:11 zhanx_laptop it MIGHT work
21:12 Tom_itx then use windoz to download
21:12 zhanx_laptop bu stlink has to work
21:12 zhanx_laptop yep
21:12 zhanx_laptop now i know why it failed etc
21:13 Tom_itx so we're back to either that keil thing or IAR
21:13 Tom_itx IAR has it's own compiler doesn't it?
21:13 zhanx_laptop keil out of the box it worked
21:13 zhanx_laptop IAR failed
21:13 zhanx_laptop keil ide sucks but it worked
21:14 Tom_itx keil for downloading?
21:14 zhanx_laptop yep
21:14 Tom_itx or compiling too?
21:14 zhanx_laptop both
21:14 zhanx_laptop i tried my helloworld in it and it worked, IAR failed
21:14 Tom_itx let's try to set up gcc on ubuntu and see if i can compile something in eclipse
21:14 Tom_itx or something
21:14 zhanx_laptop no point
21:14 zhanx_laptop you need stlink
21:14 Tom_itx ok
21:15 Tom_itx not if i copy the code over
21:15 zhanx_laptop it makes the code right
21:15 Tom_itx hex
21:15 zhanx_laptop true
21:15 Tom_itx you said it made tighter code
21:15 zhanx_laptop but eclipse i am not done configin' right
21:15 zhanx_laptop give me a bit on it
21:15 Tom_itx well i'm not crazy about it anyway
21:15 Tom_itx it crashed before i even used it
21:16 Tom_itx got an editor not found error early on
21:16 zhanx_laptop k
21:16 Tom_itx gcc should be set up on ubuntu for arm right?
21:16 Tom_itx i did all that the other day
21:17 zhanx_laptop after i get done it *should* be easy
21:17 zhanx_laptop yep
21:17 zhanx_laptop it is
21:17 Tom_itx what is g++?
21:17 Tom_itx in your makefile
21:17 zhanx_laptop make CONFIG_STM32F4_DISCOVERY=1
21:17 Tom_itx what dir?
21:18 zhanx_laptop with the default makefile from the examples in the stlink.git/examples/blink
21:18 Tom_itx errors otu
21:18 Tom_itx otu
21:18 Tom_itx out
21:19 zhanx_laptop ok its your rtai
21:19 Tom_itx i'll paste it
21:20 zhanx_laptop i cant find the source you need
21:20 atom1 meh, forget about it
21:20 atom1 i'm not gonna screw up this ubuntu so emc won't work
21:20 atom1 i could use the ssd though
21:21 atom1 i forget what i have on it
21:21 atom1 maybe windows
21:21 atom1 maybe ubuntu 10.04
21:21 atom1 in fact i think it is
21:22 atom1 can you dual boot 2 vers of ubuntu?
21:22 atom1 that would get confusing...
21:22 rue_mohr under linux, you can multi boot however many of whatever os you want
21:23 Tom_itx http://tom-itx.dyndns.org:81/~webpage/rue/error1.txt
21:23 Tom_itx that's the last error txt
21:23 rue_mohr good!
21:23 rue_mohr scsi/sg_lib.h
21:23 rue_mohr find that file
21:24 atom1 make CONFIG_STM32F4_DISCOVERY=1
21:24 atom1 when i did that the results are in error1.txt
21:24 zhanx_laptop yea you need to duel boot
21:24 rue_mohr atom1:/# locate sg_lib.h
21:24 Tom_itx not there
21:25 rue_mohr good! scsi/sg_lib.h <----find that file!
21:25 zhanx_laptop source compile
21:25 zhanx_laptop :D
21:25 atom1 i said it's not there
21:25 rue_mohr libsgutils2-dev: /usr/include/scsi/sg_lib.h
21:25 rue_mohr zippo:/files/graphics/pictures/2011/temp# apt-file search sg_lib.h
21:25 rue_mohr libsgutils2-dev: /usr/include/scsi/sg_lib.h
21:26 atom1 not there sir
21:26 atom1 scsi.h scsi_ioctl.h sg.h
21:26 rue_mohr libsgutils2-dev is a package name. HINT HINT
21:27 Tom_itx i thought i installed that yesterday
21:28 atom1 installing it now
21:28 atom1 now what?
21:29 atom1 sg_lib.h is there now
21:29 atom1 what's that get me?
21:29 atom1 besides less disk space
21:29 rue_mohr it gets you to the next error
21:30 rue_mohr this is your punishment for not installing something in a debian package
21:30 atom1 emc won't run on debian
21:31 Tom_itx http://tom-itx.dyndns.org:81/~webpage/rue/error1.txt
21:31 Tom_itx refresh that
21:34 Tom_itx ping
21:39 Tom_itx rue_mohr, is it hard to resize a partition so i can add a full blown ubuntu?
21:39 rue_mohr hmm
21:40 rue_mohr I'v heard it can be done
21:40 Tom_itx see they use a crippled ubuntu for emc because they need realtime speed
21:40 rue_mohr tom, it worked
21:40 rue_mohr there is no error
21:40 Tom_itx so what did that get me then?
21:41 Tom_itx stlink should be compiled right?
21:41 rue_mohr success!
21:41 rue_mohr congradualtions!
21:41 rue_mohr you did it!
21:41 Tom_itx well i haven't seen it work yet
21:41 Tom_itx zhanx
21:41 Tom_itx where are you ?
21:42 rue_mohr in my chair
21:43 atom1 i'll finish the directions on the webpage and see how far i get
21:45 atom1 tom@atom1:~/stlink$ sudo ./gdbserver/st-util fu bar
21:45 atom1 *** stlink_close ***
21:45 Tom_itx brb
21:53 Tom_itx i think z gave up
21:56 rue_mohr dunno what your trying to do, sorry
21:56 Tom_itx http://cu.rious.org/make/stm32f4-discovery-board-with-linux/
21:56 Tom_itx following that example setup
22:01 atom1 hmm
22:01 atom1 maybe it is connected
22:01 rue_mohr so it broke on the first step?
22:02 atom1 just a sec
22:03 Tom_itx http://tom-itx.dyndns.org:81/~webpage/rue/stlink_output.txt
22:05 atom1 maybe it is working
22:12 atom1 it seemed to connect to the target wouldn't you say?
22:13 rue_mohr unplug it and try again
22:16 Tom_itx http://tom-itx.dyndns.org:81/~webpage/rue/stlink_output1.txt
22:17 atom1 ?
22:20 atom1 the compiler may not be set up right yet but that seems to be connecting
22:49 rue_mohr so the brake line popped on my work van today
22:49 rue_mohr they dont want to fix the van, they want rid of it
22:50 rue_mohr so I get to drive the beater van now
23:01 Tom_itx aren't you lucky
23:02 Tom_itx maybe you should have fixed it
23:03 Tom_itx how do you pop a brake line anyway?
23:03 Tom_itx hard line?
23:03 Tom_itx was it rusted thru?