View Full Version : PhantomX Quad issue

04-16-2015, 07:09 AM
Hi, I'm new to quad and arduino. I have an issue with the Quad (PhantomX MK2) not standing still. When powered on, all legs stay in continuous motion and the change in gaits don't seem to work. Both Quad and Commander(V2.0) works on stock code. I read that it might be the problem with joystick dead zone, but I don't know how to set it up.

04-16-2015, 10:47 AM
What I found about the Quad: The different gaits don't work well for a quad, because they are generally intended for a hexapod.
Only one of the gaits is really useful.

04-16-2015, 12:56 PM
I am confused here when you say Both Quad and Commander(V2.0) works on stock code, so not sure what code you are running?

If you are using Commander with original code base, the Dead zone is sort of built in/defaulted in the actual commander code:

void loop(){
int right_V = (1023-analogRead(RIGHT_V)-512)/5 + 128;
int right_H = (analogRead(RIGHT_H)-512)/5 + 128;
int left_V = (1023-analogRead(LEFT_V)-512)/5 + 128;
int left_H = (analogRead(LEFT_H)-512)/5 + 128;
So for example right_H will have a value of logical 0 (128) when the analog reads in the range 508-516

Note: if you use my commanderEx version I give a different range than original commander which can cause issues with some code base.

Also ran into issues if your Commander is not setup to be run in 3.3v range but still in 5v range as this will skew the analog reads.