diff options
Diffstat (limited to 'Software')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Drivers/Uart_Comm/BTSR/BTSR.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/Software/Embedded_SW/Embedded/Drivers/Uart_Comm/BTSR/BTSR.c b/Software/Embedded_SW/Embedded/Drivers/Uart_Comm/BTSR/BTSR.c index 70785f267..dfc2c6cfc 100644 --- a/Software/Embedded_SW/Embedded/Drivers/Uart_Comm/BTSR/BTSR.c +++ b/Software/Embedded_SW/Embedded/Drivers/Uart_Comm/BTSR/BTSR.c @@ -1027,14 +1027,18 @@ void BTSR_Settings(UFeeder_Index UFeeder_i, uint8_t Application, uint8_t Yarn_Ty void BTSR_Init() { - //RUFeeder1 - BTSR[RUFeeder1].ID = 0x01; - BTSR[RUFeeder1].Flip_Display = true; - BTSR[RUFeeder1].DirectionCCW = true; - BTSR[RUFeeder1].Radius_Meter = BTSR_ROLLER_RADIUS; + uint8_t i = RUFeeder1; - BTSR[RUFeeder1].Command[CONFIGURATION_SET_15] = Set_Command; - BTSR[RUFeeder1].Command[DEVICE_INFORMATION_READ_10] = Read_Command; + for(i = RUFeeder1; i < MaxUFeeders; i++) + { + BTSR[i].ID = 0x01 + i; + BTSR[i].Flip_Display = true; + BTSR[i].DirectionCCW = true; + BTSR[i].Radius_Meter = BTSR_ROLLER_RADIUS; + + BTSR[i].Command[CONFIGURATION_SET_15] = Set_Command; + BTSR[i].Command[DEVICE_INFORMATION_READ_10] = Read_Command; + } BTSR_Settings(RUFeeder1, SHOES, ALL_YARNS3, 1000, 10, 5, HIGHEST);//Test!!! --- need to move to RML } |
