tuning: decreased solenoid switch time

Sat, 10 Dec 2011 14:47:34 +0100

author
Malte Bayer <mbayer@neo-soft.org>
date
Sat, 10 Dec 2011 14:47:34 +0100
changeset 71
2a49d2586fbf
parent 70
3a57b7a70683
child 72
60c4b28fd773

tuning: decreased solenoid switch time

pitlane/main.c file | annotate | diff | comparison | revisions
trackswitch/main.c file | annotate | diff | comparison | revisions
--- 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) {
--- 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);
-}
 
 
 

mercurial