Society of Robots - Robot Forum
|
Robot Tutorials
|
FAQ
|
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Squirrels have fuzzy tails.
Home
Help
Search
Login
Register
Society of Robots - Robot Forum
»
Software
»
Software
»
Omni Robot Sourcecode
Print
Author
Topic: Omni Robot Sourcecode (Read 4297 times)
0 Members and 1 Guest are viewing this topic.
Alhazar
Jr. Member
Posts: 14
Helpful? 0
Omni Robot Sourcecode
«
on:
July 30, 2008, 09:41:25 PM »
I am planning on building a omni bot and was looking at this page. The source at the bottom is for PIC is there a way to decompile it and load it onto an axon?
Logged
izua
Supreme Robot
Posts: 682
Helpful? 0
Re: Omni Robot Sourcecode
«
Reply #1 on:
July 30, 2008, 10:35:41 PM »
There's no source posted
There's also no link posted.
Anyway, you can decompile it, but you'll get assembly code.. As long as it uses no hardware functions (PWM, timers, interrupts) it can be ported manually to the AVR platform. With a lot of knowledge of both platforms, you can probably also port the hardware functions.
I've done it once, and it was the last time I will attempt such an endeavour.
«
Last Edit: July 30, 2008, 10:36:19 PM by izua
»
Logged
Check out
my homepage
for in depth tutorials on microcontrollers and electronics.
Alhazar
Jr. Member
Posts: 14
Helpful? 0
Re: Omni Robot Sourcecode
«
Reply #2 on:
July 30, 2008, 11:18:06 PM »
Opps forgot to add the links Page
http://www.societyofrobots.com/robot_omni_wheel.shtml
Source
http://www.societyofrobots.com/downloads/fuzzy_C_source_code.zip
«
Last Edit: July 30, 2008, 11:19:17 PM by Alhazar
»
Logged
izua
Supreme Robot
Posts: 682
Helpful? 0
Re: Omni Robot Sourcecode
«
Reply #3 on:
July 31, 2008, 08:46:41 AM »
That's C dude. No decompiling needed, just porting.
I was talking about a hex level port.
Logged
Check out
my homepage
for in depth tutorials on microcontrollers and electronics.
Alhazar
Jr. Member
Posts: 14
Helpful? 0
Re: Omni Robot Sourcecode
«
Reply #4 on:
July 31, 2008, 09:06:48 AM »
i didnt have visual studio on this system i was browsing on my ppc and couldnt open the file my bad
Logged
izua
Supreme Robot
Posts: 682
Helpful? 0
Re: Omni Robot Sourcecode
«
Reply #5 on:
July 31, 2008, 09:09:14 AM »
You don't need Visual Studio to open C code for PIC.
Any editor such as VIM would do. What you need is a compiler, actually.
Logged
Check out
my homepage
for in depth tutorials on microcontrollers and electronics.
Admin
Administrator
Supreme Robot
Posts: 11,703
Helpful? 173
Re: Omni Robot Sourcecode
«
Reply #6 on:
August 02, 2008, 05:15:48 PM »
Just study the file fuzzy.c for a bit until it makes sense.
If I remember right, the code was written so that I give it three control variables:
maximum servo speed
robot rotational speed (about its axis)
angle to translate to (move straight or sideways)
There is also a trig lookup table. The Axon also has a lookup table in SoR_utils.h, but its mostly untested.
Logged
subscribe to SoR's YouTube account
Alhazar
Jr. Member
Posts: 14
Helpful? 0
Re: Omni Robot Sourcecode
«
Reply #7 on:
August 06, 2008, 05:17:26 PM »
i've been looking thought the code and jsp2_Util_fuz.h is including 3 headers that weren't in the zip file, 16f877.h and adc.h which i got off of online but its also calling for a 877reg.h but i cant seem to find that file or references to it using google at all....
Logged
pomprocker
Supreme Robot
Posts: 1,431
Helpful? 16
Sorry miss, I was giving myself an oil-job.
Re: Omni Robot Sourcecode
«
Reply #8 on:
August 06, 2008, 06:02:22 PM »
are you going to be using an avr?
some of those your refering to may be pic specific
«
Last Edit: August 06, 2008, 06:03:22 PM by pomprocker
»
Logged
Blog:
Nerd Stuff - Programming, Electronics, Mechanics
Alhazar
Jr. Member
Posts: 14
Helpful? 0
Re: Omni Robot Sourcecode
«
Reply #9 on:
August 06, 2008, 06:05:13 PM »
I was using bloodshed, i dl'd avr but havent played with it yet. i found the 2 others just cant find the 877reg.h
I installed AVR and did a search for the 877reg.h file but found nothing.
«
Last Edit: August 06, 2008, 06:18:59 PM by Alhazar
»
Logged
pomprocker
Supreme Robot
Posts: 1,431
Helpful? 16
Sorry miss, I was giving myself an oil-job.
Re: Omni Robot Sourcecode
«
Reply #10 on:
August 06, 2008, 06:20:40 PM »
no i mean what mcu will you be using?
atmega?
16f877.h and 877reg.h are pic specific you wont find them around avr stuff
to get all the avr files download avrlib
«
Last Edit: August 06, 2008, 06:21:42 PM by pomprocker
»
Logged
Blog:
Nerd Stuff - Programming, Electronics, Mechanics
Admin
Administrator
Supreme Robot
Posts: 11,703
Helpful? 173
Re: Omni Robot Sourcecode
«
Reply #11 on:
August 06, 2008, 07:00:25 PM »
877reg.h is just for PIC's and doesn't contain any algorithms specific for omni-wheel robots.
I've attached the files.
Logged
subscribe to SoR's YouTube account
Alhazar
Jr. Member
Posts: 14
Helpful? 0
Re: Omni Robot Sourcecode
«
Reply #12 on:
August 06, 2008, 08:38:14 PM »
Ok, i was just curious as to what was all in it Thanks ^_^
Logged
Print
Society of Robots - Robot Forum
»
Software
»
Software
»
Omni Robot Sourcecode
Get Your Ad Here
data_list