# HG changeset patch # User Malte Bayer # Date 1323524854 -3600 # Node ID 2a49d2586fbfb2f7a1c3598ac8800438d7c326a7 # Parent 3a57b7a7068373d0987b4c3d8754b91f72d5776c tuning: decreased solenoid switch time diff -r 3a57b7a70683 -r 2a49d2586fbf pitlane/main.c --- a/pitlane/main.c Sat Dec 10 14:43:34 2011 +0100 +++ b/pitlane/main.c Sat Dec 10 14:47:34 2011 +0100 @@ -70,7 +70,7 @@ uint8_t self_id = 0b1111; // ONLY ONE pitlane void solenoid_delay(void) { - _delay_ms(10); + _delay_ms(2); } void send_response(uint16_t data) { diff -r 3a57b7a70683 -r 2a49d2586fbf trackswitch/main.c --- a/trackswitch/main.c Sat Dec 10 14:43:34 2011 +0100 +++ b/trackswitch/main.c Sat Dec 10 14:47:34 2011 +0100 @@ -15,6 +15,11 @@ ISR ( USART_RXC_vect ) { } +void solenoid_delay(void) { + _delay_ms(2); +} + + // TODO: TYPE should be configured somewhere else #define TRACKSWITCH_TYPE 1 // 1=double, 2=single left, 3=single right, 4=pitlane #define TYPE_DOUBLE 1 @@ -221,9 +226,6 @@ } #endif -void solenoid_delay(void) { - _delay_ms(10); -}