nxt controler
2 posters
Page 1 of 1
nxt controler
Use my nxt as analog controlor the motor angel sensors
So you can control an robo ARM whit a robo ARM
Can by nise
So you can control an robo ARM whit a robo ARM
Can by nise
freek4ever- Tank
- Posts : 97
Join date : 2011-08-26
Age : 27
Location : nederland holand
Re: nxt controler
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
you should try using the NXC firmware instead.
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- Walker
- Posts : 382
Join date : 2010-10-11
Age : 29
Location : Brazil
Re: nxt controler
Thanks for thinking whit my but I mean robot in rc controled by nxt robot ARM
freek4ever- Tank
- Posts : 97
Join date : 2011-08-26
Age : 27
Location : nederland holand
Re: nxt controler
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
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- Tank
- Posts : 97
Join date : 2011-08-26
Age : 27
Location : nederland holand
Re: nxt controler
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
I had that red sing and I made an model like your floating thing in 5 minutes
freek4ever- Tank
- Posts : 97
Join date : 2011-08-26
Age : 27
Location : nederland holand
Re: nxt controler
(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- Walker
- Posts : 382
Join date : 2010-10-11
Age : 29
Location : Brazil
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum