implemented slew-rate

This commit is contained in:
Roman
2016-09-30 13:55:53 +02:00
committed by Julian Oes
parent b6b8892606
commit 66ddea01d1
8 changed files with 67 additions and 1 deletions
+4 -1
View File
@@ -180,7 +180,8 @@ volatile uint16_t r_page_setup[] = {
[PX4IO_P_SETUP_TRIM_YAW] = 0,
[PX4IO_P_SETUP_SCALE_ROLL] = 10000,
[PX4IO_P_SETUP_SCALE_PITCH] = 10000,
[PX4IO_P_SETUP_SCALE_YAW] = 10000
[PX4IO_P_SETUP_SCALE_YAW] = 10000,
[PX4IO_P_SETUP_MOTOR_SLEW_MAX] = 0
};
#ifdef CONFIG_ARCH_BOARD_PX4IO_V2
@@ -685,6 +686,8 @@ registers_set_one(uint8_t page, uint8_t offset, uint16_t value)
case PX4IO_P_SETUP_SCALE_ROLL:
case PX4IO_P_SETUP_SCALE_PITCH:
case PX4IO_P_SETUP_SCALE_YAW:
case PX4IO_P_SETUP_MOTOR_SLEW_MAX:
r_page_setup[offset] = value;
break;