File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -462,10 +462,7 @@ void AP_Mount_XFRobot::send_target_angles(const MountTarget& angle_target_rad)
462462 // byte 18~19: North acceleration of vehicle (int16, cm/s/s)
463463 // byte 20~21: East acceleration of vehicle (int16, cm/s/s)
464464 // byte 22~23: Upward acceleration of vehicle (int16, cm/s/s)
465- const Vector3f &accel_ef = AP::ahrs ().get_accel_ef ();
466- set_attitude_packet.content .main .accel_north = htole16 (constrain_int16 (accel_ef.x * 100 , -INT16_MAX, INT16_MAX));
467- set_attitude_packet.content .main .accel_east = htole16 (constrain_int16 (accel_ef.y * 100 , -INT16_MAX, INT16_MAX));
468- set_attitude_packet.content .main .accel_up = htole16 (constrain_int16 (accel_ef.z * 100 , -INT16_MAX, INT16_MAX));
465+ // leave as zero to avoid camera gimbal attitude drift issue
469466
470467 // byte 24~25: North speed of vehicle (int16, decimeter/s)
471468 // byte 26~27: East speed of vehicle (int16, decimeter/s)
You can’t perform that action at this time.
0 commit comments