|
From: | Christophe De Wagter |
Subject: | Re: [Paparazzi-devel] Edit PPM mode value |
Date: | Wed, 30 Nov 2011 13:37:01 +0100 |
I have changed
#define PPRZ_MODE_OF_PULSE(pprz, mega8_status) \
(pprz > TRESHOLD2 ? PPRZ_MODE_AUTO2 : \
(pprz > TRESHOLD1 ? PPRZ_MODE_AUTO1 : PPRZ_MODE_MANUAL))
to
#define PPRZ_MODE_OF_PULSE(pprz, mega8_status) \
(pprz > TRESHOLD2 ? PPRZ_MODE_MANUAL : \
(pprz > TRESHOLD1 ? PPRZ_MODE_AUTO2 : PPRZ_MODE_AUTO1))
but i believed that would be to easy. After flashing, when i select the mode positions, in GCS the right modes are shown, but if i want to control the servos, it seems that the modes are not correctly changed. No controlling in MANUAL mode.
-Jochen2011/11/30 Christophe De Wagter <address@hidden>
For rotorcraft that is simply defined in the airframe.xml in the autopilot block.I'm affraid that for fixedwing what you want needs some hacking of ./sw/airborne/firmware/fixedwing/autopilot.h lines 52-53
-Christophe
On Wed, Nov 30, 2011 at 10:21 AM, Jochen Rieger <address@hidden> wrote:
_______________________________________________Hello, I want to edit the mode selection of the different PPM values . Currently, the low PPM value of the mode channel is Manual, middle AUTO1 and high AUTO2.
It is clear, when i changing the min with max value, then i swap the Manual with AUTO2. But how and where can i change the middle position of mode channel?
<channel ctl="5" function="MODE" min="950" neutral="1500" max="2050" average="1"/>
I want that, low = AUTO1, middle= AUTO2 and high= MANUAL.
Best regards.
-Jochen
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
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
[Prev in Thread] | Current Thread | [Next in Thread] |