Issues

Issue #19 new

eskylinkDecode function wrong?

vision dual
created an issue

static CRTPPacket crtpPacket; float pitch, roll, yaw; uint16_t thrust;

pitch = ((packet[2]<<8) | packet[3])-PPM_ZERO; if (roll<(-PPM_RANGE)) roll = -PPM_RANGE; if (roll>PPM_RANGE) roll = PPM_RANGE; pitch *= 20.0/PPM_RANGE;

should this be

pitch = ((packet[2]<<8) | packet[3])-PPM_ZERO; if (pitch <(-PPM_RANGE)) pitch = -PPM_RANGE; if (pitch >PPM_RANGE) pitch = PPM_RANGE; pitch *= 20.0/PPM_RANGE;

Comments (1)

  1. Log in to comment