ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

Copter: enable output channel 9 (aka RC9)

Open billbonney opened this issue 13 years ago • 4 comments

Hello,

In ArduPlane Parameters.pde we have

#if CONFIG_HAL_BOARD == HAL_BOARD_APM2 || CONFIG_HAL_BOARD == HAL_BOARD_PX4
    // @Group: RC9_
    // @Path: ../libraries/RC_Channel/RC_Channel_aux.cpp, ../libraries/RC_Channel/RC_Channel.cpp
    GGROUP(rc_9,                    "RC9_", RC_Channel_aux),

    // @Group: RC10_
    // @Path: ../libraries/RC_Channel/RC_Channel_aux.cpp, ../libraries/RC_Channel/RC_Channel.cpp
    GGROUP(rc_10,                    "RC10_", RC_Channel_aux),

    // @Group: RC11_
    // @Path: ../libraries/RC_Channel/RC_Channel_aux.cpp, ../libraries/RC_Channel/RC_Channel.cpp
    GGROUP(rc_11,                    "RC11_", RC_Channel_aux),
#endif

but in arducopter its

    // @Group: RC8_
    // @Path: ../libraries/RC_Channel/RC_Channel.cpp,../libraries/RC_Channel/RC_Channel_aux.cpp
    GGROUP(rc_8,    "RC8_", RC_Channel_aux),

#if MOUNT == ENABLED
    // @Group: RC10_
    // @Path: ../libraries/RC_Channel/RC_Channel.cpp,../libraries/RC_Channel/RC_Channel_aux.cpp
    GGROUP(rc_10,                    "RC10_", RC_Channel_aux),

    // @Group: RC11_
    // @Path: ../libraries/RC_Channel/RC_Channel.cpp,../libraries/RC_Channel/RC_Channel_aux.cpp
    GGROUP(rc_11,                    "RC11_", RC_Channel_aux),
#endif

#if CONFIG_HAL_BOARD == HAL_BOARD_PX4
    // @Group: RC9_
    // @Path: ../libraries/RC_Channel/RC_Channel.cpp,../libraries/RC_Channel/RC_Channel_aux.cpp
    GGROUP(rc_9,                    "RC9_", RC_Channel_aux),
    // @Group: RC12_
    // @Path: ../libraries/RC_Channel/RC_Channel.cpp,../libraries/RC_Channel/RC_Channel_aux.cpp
    GGROUP(rc_12,                   "RC12_", RC_Channel_aux),
#endif

Any reason for disabling RC9 in ArduCopter APM2.5 build?

billbonney avatar May 28 '13 03:05 billbonney

I doubt if there's a good reason. I remember in the past that the APM_RC library simply didn't support channel 9. If you want to sort out the comments and make sure it works we can change trunk.

rmackay9 avatar May 28 '13 13:05 rmackay9

Good reason is, all 8 channels are now occupied, there is a feature request to add 12-16 channel support on PPM SUM, channel 1-4 thr+directions, 5 mode switch, 6 pid, 7+8 AUX.....

Need for gimbal control especially tilt and maybe pan (roll not really necessary).

sevet avatar Jun 06 '13 07:06 sevet

to be clear, my comment above "I doubt there is a good reason" was intended to mean I doubt there is any good reason why we can't support output channel 9 like arduplane. I wasn't intending to question the validity of the request.

..but secret' this issue is related to channel 9 output not input. I will clarify the issue title

rmackay9 avatar Jun 06 '13 07:06 rmackay9

This bug is incorrect. Plane does not support RC9 as an output on APM2 as there is no RC9 on APM2. The code above is incorrect. In Plane it now looks like #if CONFIG_HAL_BOARD == HAL_BOARD_PX4 || CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN // @Group: RC9_ // @Path: ../libraries/RC_Channel/RC_Channel.cpp,../libraries/RC_Channel/RC_Channel_aux.cpp GGROUP(rc_9, "RC9_", RC_Channel_aux), #endif

Further, APM2 is end of life'd for copter so no further enhancements for it will take place.

If anyone disagrees please let me know.

Thanks, Grant.

gmorph avatar Sep 04 '15 02:09 gmorph