RigidChips
Would you like to react to this message? Create an account in a few clicks or log in to continue.

nxt controler

2 posters

Go down

nxt controler Empty nxt controler

Post by freek4ever Mon Nov 14, 2011 4:12 pm

Use my nxt as analog controlor the motor angel sensors

So you can control an robo ARM whit a robo ARM
Can by nise
freek4ever
freek4ever
Tank
Tank

Posts : 97
Join date : 2011-08-26
Age : 27
Location : nederland holand

Back to top Go down

nxt controler Empty Re: nxt controler

Post by RA2lover Tue Nov 15, 2011 5:10 am

the default nxt firmware won't work well with robotic arm controlling, simply because it has no trigonometric functions at all. i have failed miserably at it already, during preparation for the brazilian robotics olympics.

meanwhile, here is the formula i tried to use, "converted" to lua

Code:

    function ikcontrol(x,y.flip)
    local d= (x^2+y^2)^0.5
    if d>2 then d=2 end
    local a= math.atan2(y,x)
    if flip then k=-1 else k=1 end
    local a1=math.deg(math.floor(a+(math.acos(d/2))))
    local a2=math.floor(-2*math.acos(d/2))
    return a1,a2
    end

you should try using the NXC firmware instead.
RA2lover
RA2lover
Walker
Walker

Posts : 382
Join date : 2010-10-11
Age : 29
Location : Brazil

Back to top Go down

nxt controler Empty Re: nxt controler

Post by freek4ever Tue Nov 15, 2011 2:27 pm

Thanks for thinking whit my but I mean robot in rc controled by nxt robot ARM
freek4ever
freek4ever
Tank
Tank

Posts : 97
Join date : 2011-08-26
Age : 27
Location : nederland holand

Back to top Go down

nxt controler Empty Re: nxt controler

Post by freek4ever Tue Nov 15, 2011 2:32 pm

So if I turn an nxt engine 180 degre the robot in rc does tlhe same or is that the lua you made .I don't no how to use lua
Is the nxc filmware free and is it like the script in rc I like that


Last edited by freek4ever on Tue Nov 15, 2011 2:55 pm; edited 1 time in total
freek4ever
freek4ever
Tank
Tank

Posts : 97
Join date : 2011-08-26
Age : 27
Location : nederland holand

Back to top Go down

nxt controler Empty Re: nxt controler

Post by freek4ever Tue Nov 15, 2011 2:47 pm

I'm that guy on the orz server whit doderijk4
I had that red sing and I made an model like your floating thing in 5 minutes
freek4ever
freek4ever
Tank
Tank

Posts : 97
Join date : 2011-08-26
Age : 27
Location : nederland holand

Back to top Go down

nxt controler Empty Re: nxt controler

Post by RA2lover Sat May 19, 2012 7:22 pm

(epicbump) you'll also need to create a mechanism to map usb input and convert it to keyboard-like input(i don't think RC supports lua's i/o library).
RA2lover
RA2lover
Walker
Walker

Posts : 382
Join date : 2010-10-11
Age : 29
Location : Brazil

Back to top Go down

nxt controler Empty Re: nxt controler

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum