|
From: | Felix Ruess |
Subject: | Re: [Paparazzi-devel] HOVER with USE_SPEED_REF |
Date: | Mon, 12 May 2014 17:42:15 +0200 |
- add psi normalization- change the signe of psi angleHi Eduardo,I tested this feature and I had the bug.
I fixed the bug by making the below modifications:
Here is the code in airborne/firmwares/rotorcraft/guidance/guidance_h.c
/* Rotate from body to NED frame by negative psi angle */
- int32_t psi = -stateGetNedToBodyEulers_i()->psi;
+ int32_t psi = stateGetNedToBodyEulers_i()->psi;
+ INT32_ANGLE_NORMALIZE(psi);
You can test this modif added by Gauthier
https://github.com/paparazzi/paparazzi/commit/3830f136e0ad45f457b869da1956f79f76e6332f
Good Flight!!!Waly2014-04-29 21:35 GMT+02:00 Eduardo lavratti <address@hidden>:
_______________________________________________Hello folks,
some days ago i finished my new quad using krooz_sd_BRE.
When in HOVER i test the stick to change the positiondynamically (USE_SPEED_REF) but i get wrong behavior.
When i put the stick to front, the copter not move to front.
I not have GCS in the field so i not know the psi angles when i do the testes.
For example,
if the yaw=0 and stick= front the copter go to front
if yaw=180 and and stick = front the copter go to left.
Anyone tested this feature ?
I am using ppz version v5.1.0_testing-0-gd07cb6f-dirty (new installation without any modification)
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
[Prev in Thread] | Current Thread | [Next in Thread] |