Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Linux: steps to program fullsize RC robot (http://www.chiefdelphi.com/forums/showthread.php?t=23517)

Joe Ross 20-01-2004 16:27

Re: Linux: steps to program fullsize RC robot
 
install winesetuptk and that will help you get your config file working.

Why don't you want to use the dlls in their existing location?

mikew 20-01-2004 16:27

Re: Linux: steps to program fullsize RC robot
 
The ifi loader distribution comes with a copy of the dll. I think I extracted my copy from a win98 system.

Jeff McCune 20-01-2004 16:52

Re: Linux: steps to program fullsize RC robot
 
Quote:

Originally Posted by mikew
The ifi loader distribution comes with a copy of the dll. I think I extracted my copy from a win98 system.

Good to know... Was this documented somewhere, and I just missed the boat? Please don't take this the wrong way or anything, but would you mind if I help you out with the documentation? Either I'm missing threads on here with regard to getting this thing to work, or documentation is just lacking at the moment. Either way, I think everyone will benefit if we can get some good docs regarding Linux as a development environment.

If all goes well, I might even be able to set up a CVS server with a repository for any team that might want one. Might be useful. Would be nice we we can reduce the code to cvs update && make && ifi_loader_clone foo.hex /dev/ttyS0 or something of that nature.

Also, again not to step on your toes regarding the great work you're doing, but are we legally allowed to distribute the two dll files you have? It might be worth it just to be "clean" to instruct people to copy them from a Windows98 install, or obtain them by some other means. Not sure what the status is, but they're probably copyrighted Microsoft property.

OK, so I copied the crt.dll and msvcrt.dll from the ifiloader tarball into my fake_windows/Windows/System (Not System32, as I did last time) and then changed the win version line in the config to:
Code:

[Version]
; Windows version to imitate (win95,win98,winme,nt351,nt40,win2k,winxp,win2k3,win20,win30,win31)                                     
"Windows" = "winxp"
; DOS version to imitate
; "DOS" = "6.22"

and the mcc18.exe compiler is giving me some complaints about not being able to find a header file. Looking good.

Trying to compile user_routines.c by hand, from the command line, I get this:
Code:

silas@frink:code$ wine -- mcc18.exe -p=18F8520 -fo user_routines.o user_routines.c /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Wine exited with a successful status

SWEET! OK, so would anyone like to comment on what content I should include in any documentation type things I'm planning on preparing? I personally run Debian GNU/Linux, so my instructions and examples will probably be from this perspective. Thoughts?

rwaliany 20-01-2004 19:23

Re: Linux: steps to program fullsize RC robot
 
Aye, it should work step by step. I believe the only problem was setting winever to winxp. I'm working on it. I think I could maybe release 0.4 today with the serial reader etc...Thanks for all your support.

Just to keep everyone posted, why I'm updating so slow: I have 10 H/Ap/College classes, Robotics, community service projects im co-leading, and some other contests I'm leading with two part-time jobs of programming at eSCV and AMDI, teaching AP Compsci AB starting in a couple weeks, etc...

Thanks,
Ryan Waliany

rwaliany 20-01-2004 19:43

Re: Linux: steps to program fullsize RC robot
 
Also for msvcrt.dll, I believe it would be fine if I added a disclaimer next version stating that the user should have a copy of the Windows operating system and it belongs to Microsoft. If someone could check in on how dll download places distribute msvcrt.dll please let me know. I believe a disclaimer is all.

Jeff McCune 20-01-2004 20:39

Re: Linux: steps to program fullsize RC robot
 
Quote:

Originally Posted by rwaliany
Also for msvcrt.dll, I believe it would be fine if I added a disclaimer next version stating that the user should have a copy of the Windows operating system and it belongs to Microsoft. If someone could check in on how dll download places distribute msvcrt.dll please let me know. I believe a disclaimer is all.

A disclaimer alone isn't enough to CYA if you're distributing copyrighted works. Countless examples of this exist from the rom sites to mp3.com. msvcrt.dll is ridiculously common, so I'd just google for it and link to some places that already distribute the library (They might even have MS's permission to do so). If the Microsoft legal army gets bored and decides to harass you, it would be nice to be able to claim you're not distributing anything Microsoft has rights over. Sounds like you're already busy enough and wouldn't welcome another distraction.

The chances of this ever actually being a problem for you if you decide to keep distributing the libraries are slim to none, I realize, but I'd just hate to see you hastled over something so trivial.

rwaliany 20-01-2004 20:46

Re: Linux: steps to program fullsize RC robot
 
what if I made them download it automatically with wget :-)

Jeff McCune 20-01-2004 21:04

Re: Linux: steps to program fullsize RC robot
 
Quote:

Originally Posted by rwaliany
what if I made them download it automatically with wget :-)

Perfectly legal. Debian packages do this all the time with stuff they can't distribute. When you install the package, it just asks "Can I download and install Macromedia FlashPlayer for you?" "Uh, sure!" "Downloading..." =)

rwaliany 07-02-2004 17:01

Re: Linux: steps to program fullsize RC robot
 
New release 0.4.

Fixed memory, up to ~30kbytes around, tested with Kevin and Watsons infra-red, beacon, and navigation code along with FRC default code and my own code. Ansi color support makefiles, etc... dependencies...

http://www.hartrobot.com/ifi.php
http://www.hartrobot.com/downloads/i...der.0.4.tar.gz

I will post a file upload soon, but it appears that the file upload system doesn't support .tar.gz, or im not sure why else it gave me a string error on upload.

I'm in the process of switching servers to a new connection, so if hartrobot.com doesn't work replace www.hartrobot.com with 216.112.86.9/~hartrobot/

Thanks,
Ryan Waliany

kc8tbe 11-02-2004 16:38

Re: Linux: steps to program fullsize RC robot
 
Silly question, but is it possible to get feedback from the RC (i.e. via printf() calls in the program) via the picloader?

rwaliany 11-02-2004 17:06

Re: Linux: steps to program fullsize RC robot
 
Yes, using the picreader program that is included, you can type picreader <device> it pipes the output to the terminal and reads the output from the serial port from "printf". This is a new feature that was added I believe in 0.3 or 0.4. This allows you to even add ANSI color standards to your debug output and make it all pretty even.

Example:
[Debug: All systems running.]
[Debug: Fatal Error bla bla bla]

If anyone is interested in ANSI color I can probably write up a quick description of how it works.

Thanks,
Ryan Waliany

kc8tbe 12-02-2004 15:26

Re: Linux: steps to program fullsize RC robot
 
Thanks a bunch :p ! I knew there was some kind of easy solution...

Joe Ross 12-02-2004 15:42

Re: Linux: steps to program fullsize RC robot
 
Quote:

Originally Posted by Jeff McCune
Perfectly legal. Debian packages do this all the time with stuff they can't distribute. When you install the package, it just asks "Can I download and install Macromedia FlashPlayer for you?" "Uh, sure!" "Downloading..." =)

Note that the Debian packages that do this are still in non-free.

BTW, Jeff, while doing some research on sending SMS, I found your name in some of the files of one of the packages I was looking at. What other things have you done?

kc8tbe 12-02-2004 16:43

Re: Linux: steps to program fullsize RC robot
 
Quote:

Originally Posted by rwaliany
This is a new feature that was added I believe in 0.3 or 0.4.

Once again with my stupid questions...
I've looked in the tarball for 0.4 and 0.2 without success. This picreader doesn't seem to be in any of the Makefiles. I cannot find a tarball for 0.3 at http://ryan.scv.net/x2545/picloader. Where can I find this picreader application? Please post a link!

rwaliany 13-02-2004 17:35

Re: Linux: steps to program fullsize RC robot
 
I'm sorry those are old links, please refer to http://www.hartrobot.com/ifi.php Also, I'm sorry for responding slow, my e-mail was down and I didn't know anyone responded to here. That was a beta version of 0.4.


All times are GMT -5. The time now is 16:19.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi