[solved] forward and reverse motor control

propulsion
solved
sos

#1

I have some issues of controlling the openrov. let see how it happens

  • when thrust factor =1 , press forward or backward, it happens quite often that only 1 motor rotating instead of 2
  • when thrust factor >2, press left arrow then immediately press down arrow and release left arrow, it results in only 1 motor rotating instead of 2. what should happen is going reverse or 2 motors rotating to create reserve force

the image i use is 2.5.5 with the source code is up till today. I got the log for the second case as follow


motorAttached:1;
go(1000,1500,2000); --> go left
cmd: go(1000,1500,2000)
cmd:go(1000,1500,2000);
motors:1361,1500,1639;
mtarg:1000,1500,2000;
motorAttached:1;
motors:1281,1500,1719;
mtarg:1000,1500,2000;
motorAttached:1;
go(1000,1500,1978);
cmd: go(1000,1500,1978)
cmd:go(1000,1500,1978);
go(1428,1500,1428);
cmd: go(1428,1500,1428)
cmd:go(1428,1500,1428);
go(1500,1500,1500);
cmd: go(1500,1500,1500)
cmd:go(1500,1500,1500);
motors:1500,1500,1500;
mtarg:1500,1500,1500;
motorAttached:1;
go(1000,1500,2000);
cmd: go(1000,1500,2000)
cmd:go(1000,1500,2000);
motors:1337,1500,1663;
mtarg:1000,1500,2000;
motorAttached:1;
go(1428,1500,1428);
cmd: go(1428,1500,1428)
cmd:go(1428,1500,1428);
motors:1428,1500,1428;
mtarg:1428,1500,1428;
motorAttached:1;
motors:1428,1500,1428;
mtarg:1428,1500,1428;
motorAttached:1;
go(1500,1500,1500);
cmd: go(1500,1500,1500)
cmd:go(1500,1500,1500);
motors:1500,1500,1500;
mtarg:1500,1500,1500;
motorAttached:1;
motors:1500,1500,1500;
mtarg:1500,1500,1500;
motorAttached:1;
motorAttached:1;
motors:1500,1500,1500;
mtarg:1500,1500,1500;
motorAttached:1;
motors:1500,1500,1500;
mtarg:1500,1500,1500;
motorAttached:1;
motors:1500,1500,1500;
mtarg:1500,1500,1500;
motorAttached:1;
motors:1500,1500,1500;
mtarg:1500,1500,1500;
motorAttached:1;
motors:1500,1500,1500;
mtarg:1500,1500,1500;
motorAttached:1;
motors:1500,1500,1500;
mtarg:1500,1500,1500;
motorAttached:1;
go(1000,1500,2000);
cmd: go(1000,1500,2000)
cmd:go(1000,1500,2000);
motors:1353,1500,1647;
mtarg:1000,1500,2000;
motorAttached:1;
go(1000,1500,1978);
cmd: go(1000,1500,1978)
cmd:go(1000,1500,1978);
go(1428,1500,1428); -->go reverse
cmd: go(1428,1500,1428)
cmd:go(1428,1500,1428);
motors:1428,1500,1428;
mtarg:1428,1500,1428;
motorAttached:1;
motors:1428,1500,1428;
mtarg:1428,1500,1428;
motorAttached:1;
go(1500,1500,1500);
cmd: go(1500,1500,1500)
cmd:go(1500,1500,1500);
motors:1500,1500,1500;
mtarg:1500,1500,1500;
motorAttached:1;
motors:1500,1500,1500;
mtarg:1500,1500,1500;
motorAttached:1;

the reply from arduino seems okie. can u give some suggestion about where the problem is?? is it software problem or ESC calibration issue?????


#2

:) after programming and calibration the ESC, every thing works just fine.

cheer


#3

Calibrating can be confusing if you get your mental wires crossed, or have taken the thing apart to bench test....


#4