1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

LP-291 msp_send_channels(): include Accessory3

This commit is contained in:
Vladimir Zidar 2016-04-24 01:41:42 +02:00
parent 5d72a9671c
commit bb0f15024b

View File

@ -612,13 +612,14 @@ static uint16_t msp_scale_rc_thr(float percent)
// MSP RC order is Roll/Pitch/Yaw/Throttle/AUX1/AUX2/AUX3/AUX4
static void msp_send_channels(struct msp_bridge *m)
{
AccessoryDesiredData acc0, acc1, acc2;
AccessoryDesiredData acc0, acc1, acc2, acc3;
ManualControlCommandData manualState;
ManualControlCommandGet(&manualState);
AccessoryDesiredInstGet(0, &acc0);
AccessoryDesiredInstGet(1, &acc1);
AccessoryDesiredInstGet(2, &acc2);
AccessoryDesiredInstGet(3, &acc2);
union {
uint8_t buf[0];
@ -632,7 +633,7 @@ static void msp_send_channels(struct msp_bridge *m)
msp_scale_rc(acc0.AccessoryVal),
msp_scale_rc(acc1.AccessoryVal),
msp_scale_rc(acc2.AccessoryVal),
1000, // no aux4
msp_scale_rc(acc3.AccessoryVal),
}
};