px4iofirmware: added scale parameters for roll, pitch and yaw

since pure manual control for fixed wings in handled on the io side
the scale parameters for roll, pitch and yaw had to be introduced there
as well.

Signed-off-by: Roman <bapstr@ethz.ch>
This commit is contained in:
Roman
2016-07-13 09:29:12 +02:00
committed by Andreas Antener
parent 71e2a43790
commit 08bbd6dbfa
4 changed files with 17 additions and 5 deletions
+7 -1
View File
@@ -177,7 +177,10 @@ volatile uint16_t r_page_setup[] = {
[PX4IO_P_SETUP_PWM_REVERSE] = 0,
[PX4IO_P_SETUP_TRIM_ROLL] = 0,
[PX4IO_P_SETUP_TRIM_PITCH] = 0,
[PX4IO_P_SETUP_TRIM_YAW] = 0
[PX4IO_P_SETUP_TRIM_YAW] = 0,
[PX4IO_P_SETUP_SCALE_ROLL] = 10000,
[PX4IO_P_SETUP_SCALE_PITCH] = 10000,
[PX4IO_P_SETUP_SCALE_YAW] = 10000
};
#ifdef CONFIG_ARCH_BOARD_PX4IO_V2
@@ -681,6 +684,9 @@ registers_set_one(uint8_t page, uint8_t offset, uint16_t value)
case PX4IO_P_SETUP_TRIM_ROLL:
case PX4IO_P_SETUP_TRIM_PITCH:
case PX4IO_P_SETUP_TRIM_YAW:
case PX4IO_P_SETUP_SCALE_ROLL:
case PX4IO_P_SETUP_SCALE_PITCH:
case PX4IO_P_SETUP_SCALE_YAW:
r_page_setup[offset] = value;
break;