by FabinovX » Thu Feb 18, 2010 7:35 pm
by FabinovX
Thu Feb 18, 2010 7:35 pm
here is the code :
http://robosavvy.com/Builders/FabinovX/stabily_test_delta-position.zip
in order to filter the AX12 feedback you can also make a loop :
for i=1~10
capture=capture+value
next i
value= value/10
gyro value are obtained this way in original code.
but you will loose a lot of time.
actually i just take the value from 2 AX12 check if they are or not >deadzone value.
then i add the two value and then /2.
you can also try to check deadzone with the result value after the last step upon.
activate the debug lines and watch for the value in each case in order to find the better way to obtain what you want.
I will be happy if it helps you because i'm really a beginner in robotics.
i will try to add gyro to this code in order to manage low rate and high rate moves.
cheers
FabinovX
here is the code :
http://robosavvy.com/Builders/FabinovX/stabily_test_delta-position.zip
in order to filter the AX12 feedback you can also make a loop :
for i=1~10
capture=capture+value
next i
value= value/10
gyro value are obtained this way in original code.
but you will loose a lot of time.
actually i just take the value from 2 AX12 check if they are or not >deadzone value.
then i add the two value and then /2.
you can also try to check deadzone with the result value after the last step upon.
activate the debug lines and watch for the value in each case in order to find the better way to obtain what you want.
I will be happy if it helps you because i'm really a beginner in robotics.
i will try to add gyro to this code in order to manage low rate and high rate moves.
cheers
FabinovX
Last edited by FabinovX on Fri Feb 19, 2010 3:06 pm, edited 1 time in total.