Hi Ytai

Sorry, I just saw you reply. I was working on differents approach to deal 
with this problem. Indeed they are working over BT very smooth, but with 
the cable they move ZigZagly. Perhaps the rotational PID controller acts 
weirdly stronger. Yesterday, I was thinking to connect them all using BT 
dongles, but I wonder there should be an interference between BT dongles 
and IOIO boards. Do you have any idea about this issue? Now, I am woking on 
control the robots based on their connection type separately like the 
ShoeBot example.

Thanks.


On Saturday, December 5, 2015 at 1:10:19 PM UTC+8, Ytai wrote:
>
> Depending on how you wrote the code, your control algorithm might be 
> sensitive to latency (much higher on BT, ~20ms vs ~1ms) and/or jitter (much 
> higher on BT). As for the cycle period, it is up to you to decide it, it 
> shouldn't depend on the connection type.
>
> If you want to change the behavior depending on either BT or USB, here's 
> an example:
>
> https://github.com/ytai/ioio/blob/master/software/applications/ShoeBot/src/main/java/ioio/applications/shoebot/ShoebotActivity.java#L359
>
> On Wed, Dec 2, 2015 at 2:19 AM, Mohsen Pashna <[email protected] 
> <javascript:>> wrote:
>
>> Hello IOIO nerds
>>
>> I am using IOIO to connect my two-wheel-mobile robot to the android 
>> device (lovely NX5). I have few robots that swarming together. I tuned one 
>> of my robots which was connected via BT, and it worked fine. However, for 
>> other robots I connected (had to) them via USB, and it turns out that the 
>> previous control parameters are not suit for USB connection. Perhaps it is 
>> due to the cycle period difference, I am not sure. 
>>
>> By the way, is there any way that I could understand the connection type 
>> in the code to decide which type of parameters I need to apply?
>>
>> Please share with me if you have or had related experiences. 
>>
>> Many Thanks
>>
>> Cheers,
>>
>> Mohsen
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "ioio-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/ioio-users.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"ioio-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to