mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-04 22:17:01 +08:00
[rotorcraft] fix RC quaternion setpoint reading
orientation vector angles should not be dividied by two, thats handled correctly in FLOAT_QUAT_OF_ORIENTATION_VECT
This commit is contained in:
@@ -223,8 +223,8 @@ void stabilization_attitude_read_rc_setpoint_eulers_f(struct FloatEulers *sp, bo
|
|||||||
void stabilization_attitude_read_rc_roll_pitch_quat_f(struct FloatQuat* q) {
|
void stabilization_attitude_read_rc_roll_pitch_quat_f(struct FloatQuat* q) {
|
||||||
/* orientation vector describing simultaneous rotation of roll/pitch */
|
/* orientation vector describing simultaneous rotation of roll/pitch */
|
||||||
struct FloatVect3 ov;
|
struct FloatVect3 ov;
|
||||||
ov.x = radio_control.values[RADIO_ROLL] * STABILIZATION_ATTITUDE_SP_MAX_PHI / MAX_PPRZ / 2;
|
ov.x = radio_control.values[RADIO_ROLL] * STABILIZATION_ATTITUDE_SP_MAX_PHI / MAX_PPRZ;
|
||||||
ov.y = radio_control.values[RADIO_PITCH] * STABILIZATION_ATTITUDE_SP_MAX_THETA / MAX_PPRZ / 2;
|
ov.y = radio_control.values[RADIO_PITCH] * STABILIZATION_ATTITUDE_SP_MAX_THETA / MAX_PPRZ;
|
||||||
ov.z = 0.0;
|
ov.z = 0.0;
|
||||||
|
|
||||||
/* quaternion from that orientation vector */
|
/* quaternion from that orientation vector */
|
||||||
|
|||||||
Reference in New Issue
Block a user