I am trying to control my Rover with a Companion Computer ( Raspberry Pi). I have installed DroneKit Python on the Pi, The commands works fine for a Copter as most of the tutorial says. but they do not work for Rover.
The Raspberry Pi is getting connected to the Pixhawk, but when the pi commands the Pixhawk to move with vehicle.message_factory.set_position_target_local_ned_encode the Rover dose not move. this worked fine for the QuadCopter.
Is there any alternative or any other way by which i can control the Rover any help is appreciated.
Your low speed is part of the problem, it has a hard time with low speed driving and keeping a good heading. I pretty much followed this guide and it weaves once or twice on startup and goes pretty much straight after that.
Thanks Ray. Does the low speed heading problem include not going in the right general direction? I could understand weaving toward the destination. In this case, it typically ends up going in no discernible general direction.
No that sounds like something else, compass calibration maybe? When in mission planner and driving around in manual does the compass heading point the right direction more or less?
Finally had a chance to do some testing today. The compass seems to be reasonably accurate when driving manually while connected to MP.
Also tried a couple more guided mode missions. It appears that the vehicle is going in the opposite direction that it should. In other words, heading is off by 180 degrees. GPS seems accurate -- I have the rover reporting current location every 0.25 seconds and the values get further away from target location. Very puzzling.
Sounds like your compass orientation is incorrect. I had a lot of trouble with mine. You may need to change the yaw to 180, or the roll to 180, or both.