fix swapped wires on startbutton

This commit is contained in:
interfisch 2023-05-23 20:56:38 +02:00
parent 698dea2af3
commit 950914f6e1
2 changed files with 39 additions and 48 deletions

View File

@ -2712,10 +2712,6 @@
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 00ebed69-1ae8-4281-9dbb-78160329662c)
)
(wire (pts (xy 55.88 101.6) (xy 69.85 101.6))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 00f6ae70-94cc-4d50-aa7e-814bf3ec142c)
)
(wire (pts (xy 62.23 53.34) (xy 62.23 74.93))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 02538207-54a8-4266-8d51-23871852b2ff)
@ -2931,7 +2927,7 @@
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 2d84a257-2801-4282-83f8-8a08920949d3)
)
(wire (pts (xy 55.88 105.41) (xy 55.88 101.6))
(wire (pts (xy 55.88 99.06) (xy 55.88 105.41))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 2fd044b6-377e-455f-89e0-f4f69a117f77)
)
@ -3459,10 +3455,6 @@
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 95e06b65-459a-4ab7-a258-2019fd7c750c)
)
(wire (pts (xy 53.34 99.06) (xy 69.85 99.06))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 965dcc1b-b3f1-4059-96bc-33cc40cfb1c9)
)
(wire (pts (xy 132.08 189.23) (xy 135.89 189.23))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 96b1672c-107c-4f66-9cdb-f0ef0147a931)
@ -3471,6 +3463,10 @@
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 96c51c57-c97b-45e2-82c7-453cd584593a)
)
(wire (pts (xy 55.88 99.06) (xy 69.85 99.06))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 973c2694-75a7-49b1-b02c-677cd56f102c)
)
(wire (pts (xy 21.59 74.93) (xy 62.23 74.93))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 974c48bf-534e-4335-98e1-b0426c783e99)
@ -3684,7 +3680,7 @@
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid c8f783f8-9603-4e67-84ef-a9d755348b75)
)
(wire (pts (xy 49.53 101.6) (xy 53.34 101.6))
(wire (pts (xy 49.53 101.6) (xy 69.85 101.6))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid c9f71875-1856-43c2-b1fb-5a3dbed48c46)
)
@ -3863,10 +3859,6 @@
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid ee29d712-3378-4507-a00b-003526b29bb1)
)
(wire (pts (xy 53.34 101.6) (xy 53.34 99.06))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid ee4886b5-3cb5-4c45-a3ce-dce386a58ae8)
)
(wire (pts (xy 210.82 72.39) (xy 214.63 72.39))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid eee5302c-d118-4535-b901-4b0c64ec0372)
@ -3966,7 +3958,7 @@
(effects (font (size 1.27 1.27)) (justify left bottom))
(uuid 1c3169e1-78dc-4f3a-b1a2-bf02578265f6)
)
(text "red/blue" (at 59.69 99.06 0)
(text "red/blue" (at 60.325 101.6 0)
(effects (font (size 1.27 1.27)) (justify left bottom))
(uuid 26c57574-e303-4cc8-896b-e7ea7adae64d)
)
@ -4066,7 +4058,7 @@
(effects (font (size 1.27 1.27)) (justify left bottom))
(uuid cee2f43a-7d22-4585-a857-73949bd17a9d)
)
(text "black" (at 59.69 101.6 0)
(text "black" (at 60.325 99.06 0)
(effects (font (size 1.27 1.27)) (justify left bottom))
(uuid dccc4ac5-8f16-4274-951b-cfdb225a3d97)
)
@ -4283,10 +4275,10 @@
(property "Datasheet" "" (id 3) (at 76.835 134.62 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "~" (uuid 289d2381-c24d-462b-86ba-5805292aae74))
(pin "~" (uuid 289d2381-c24d-462b-86ba-5805292aae74))
(pin "~" (uuid 289d2381-c24d-462b-86ba-5805292aae74))
(pin "~" (uuid 289d2381-c24d-462b-86ba-5805292aae74))
(pin "~" (uuid 289d2381-c24d-462b-86ba-5805292aae77))
(pin "~" (uuid 289d2381-c24d-462b-86ba-5805292aae77))
(pin "~" (uuid 289d2381-c24d-462b-86ba-5805292aae77))
(pin "~" (uuid 289d2381-c24d-462b-86ba-5805292aae77))
)
(symbol (lib_id "Bobbycar_components:powerlatch") (at 50.165 133.35 0) (unit 1)
@ -4300,13 +4292,13 @@
(property "Datasheet" "" (id 3) (at 50.165 133.35 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "~" (uuid 7672a6d3-c089-44dd-b44a-004517620f71))
(pin "~" (uuid 7672a6d3-c089-44dd-b44a-004517620f71))
(pin "~" (uuid 7672a6d3-c089-44dd-b44a-004517620f71))
(pin "~" (uuid 7672a6d3-c089-44dd-b44a-004517620f71))
(pin "~" (uuid 7672a6d3-c089-44dd-b44a-004517620f71))
(pin "~" (uuid 7672a6d3-c089-44dd-b44a-004517620f71))
(pin "~" (uuid 7672a6d3-c089-44dd-b44a-004517620f71))
(pin "~" (uuid 7672a6d3-c089-44dd-b44a-004517620f77))
(pin "~" (uuid 7672a6d3-c089-44dd-b44a-004517620f77))
(pin "~" (uuid 7672a6d3-c089-44dd-b44a-004517620f77))
(pin "~" (uuid 7672a6d3-c089-44dd-b44a-004517620f77))
(pin "~" (uuid 7672a6d3-c089-44dd-b44a-004517620f77))
(pin "~" (uuid 7672a6d3-c089-44dd-b44a-004517620f77))
(pin "~" (uuid 7672a6d3-c089-44dd-b44a-004517620f77))
)
(symbol (lib_id "Switch:SW_Push_SPDT") (at 44.45 99.06 0) (unit 1)
@ -4435,8 +4427,8 @@
(property "Datasheet" "" (id 3) (at 58.42 33.02 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "~" (uuid 5e737bb7-9ff1-43d7-bb29-d92d56c2e836))
(pin "~" (uuid 5e737bb7-9ff1-43d7-bb29-d92d56c2e836))
(pin "~" (uuid 5e737bb7-9ff1-43d7-bb29-d92d56c2e837))
(pin "~" (uuid 5e737bb7-9ff1-43d7-bb29-d92d56c2e837))
)
(symbol (lib_id "Bobbycar_components:xt60_male") (at 55.88 50.8 90) (unit 1)
@ -4454,8 +4446,8 @@
(property "Datasheet" "" (id 3) (at 58.42 52.07 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "~" (uuid 283e418a-9a69-45b9-b0eb-506e5b012a20))
(pin "~" (uuid 283e418a-9a69-45b9-b0eb-506e5b012a20))
(pin "~" (uuid 283e418a-9a69-45b9-b0eb-506e5b012a21))
(pin "~" (uuid 283e418a-9a69-45b9-b0eb-506e5b012a21))
)
(symbol (lib_id "Bobbycar_components:xt60_female") (at 92.71 31.75 270) (mirror x) (unit 1)
@ -4469,8 +4461,8 @@
(property "Datasheet" "" (id 3) (at 92.71 31.75 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "~" (uuid abfe2d16-5c1c-42e5-a5b8-7ee7611663a8))
(pin "~" (uuid abfe2d16-5c1c-42e5-a5b8-7ee7611663a8))
(pin "~" (uuid abfe2d16-5c1c-42e5-a5b8-7ee7611663a9))
(pin "~" (uuid abfe2d16-5c1c-42e5-a5b8-7ee7611663a9))
)
(symbol (lib_id "Bobbycar_components:xt60_female") (at 92.71 50.8 270) (mirror x) (unit 1)
@ -4484,8 +4476,8 @@
(property "Datasheet" "" (id 3) (at 92.71 50.8 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "~" (uuid 87069b1b-beb7-4ccb-b34c-3dbae8f09b85))
(pin "~" (uuid 87069b1b-beb7-4ccb-b34c-3dbae8f09b85))
(pin "~" (uuid 87069b1b-beb7-4ccb-b34c-3dbae8f09b86))
(pin "~" (uuid 87069b1b-beb7-4ccb-b34c-3dbae8f09b86))
)
(symbol (lib_id "Bobbycar_components:xt90antispark_female") (at 116.84 40.64 270) (unit 1)
@ -4503,8 +4495,8 @@
(property "Datasheet" "" (id 3) (at 116.84 40.64 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "~" (uuid 47077c27-146a-406e-a83a-e467ee31c5ed))
(pin "~" (uuid 47077c27-146a-406e-a83a-e467ee31c5ed))
(pin "~" (uuid 47077c27-146a-406e-a83a-e467ee31c5ee))
(pin "~" (uuid 47077c27-146a-406e-a83a-e467ee31c5ee))
)
(symbol (lib_id "Bobbycar_components:xt90_male") (at 148.59 40.64 90) (mirror x) (unit 1)
@ -4518,8 +4510,8 @@
(property "Datasheet" "" (id 3) (at 148.59 40.64 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "~" (uuid aa0df799-0b67-406d-90cf-6dbd82290545))
(pin "~" (uuid aa0df799-0b67-406d-90cf-6dbd82290545))
(pin "~" (uuid aa0df799-0b67-406d-90cf-6dbd82290546))
(pin "~" (uuid aa0df799-0b67-406d-90cf-6dbd82290546))
)
(symbol (lib_id "Connector_Generic:Conn_01x04") (at 90.17 180.975 90) (mirror x) (unit 1)
@ -4558,8 +4550,8 @@
(property "Datasheet" "" (id 3) (at 22.86 105.41 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "~" (uuid a5adf9fc-330f-4cad-bdb2-e0f8fb1b77b5))
(pin "~" (uuid a5adf9fc-330f-4cad-bdb2-e0f8fb1b77b5))
(pin "~" (uuid a5adf9fc-330f-4cad-bdb2-e0f8fb1b77b6))
(pin "~" (uuid a5adf9fc-330f-4cad-bdb2-e0f8fb1b77b6))
)
(symbol (lib_id "Bobbycar_components:xt30_female") (at 22.86 81.28 0) (mirror x) (unit 1)
@ -4577,8 +4569,8 @@
(property "Datasheet" "" (id 3) (at 22.86 81.28 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "~" (uuid 92c8a67d-ecef-4663-99f5-c2b6e82bc066))
(pin "~" (uuid 92c8a67d-ecef-4663-99f5-c2b6e82bc066))
(pin "~" (uuid 92c8a67d-ecef-4663-99f5-c2b6e82bc067))
(pin "~" (uuid 92c8a67d-ecef-4663-99f5-c2b6e82bc067))
)
(symbol (lib_id "Bobbycar_wiring-rescue:SW_DPST_x2-Switch") (at 173.99 43.18 0) (unit 1)
@ -4708,8 +4700,8 @@
(property "Datasheet" "" (id 3) (at 26.67 31.75 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "~" (uuid c8baad8e-84f6-4984-837a-38ef6d0b77c0))
(pin "~" (uuid c8baad8e-84f6-4984-837a-38ef6d0b77c0))
(pin "~" (uuid c8baad8e-84f6-4984-837a-38ef6d0b77c1))
(pin "~" (uuid c8baad8e-84f6-4984-837a-38ef6d0b77c1))
)
(symbol (lib_id "Bobbycar_components:xt60_female") (at 26.67 50.8 270) (mirror x) (unit 1)
@ -4723,8 +4715,8 @@
(property "Datasheet" "" (id 3) (at 26.67 50.8 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "~" (uuid a4649d4d-6aa3-4f07-b7a6-0d73d155ec91))
(pin "~" (uuid a4649d4d-6aa3-4f07-b7a6-0d73d155ec91))
(pin "~" (uuid a4649d4d-6aa3-4f07-b7a6-0d73d155ec92))
(pin "~" (uuid a4649d4d-6aa3-4f07-b7a6-0d73d155ec92))
)
(symbol (lib_id "Device:R") (at 240.665 156.845 0) (unit 1)

View File

@ -577,7 +577,6 @@ void leds() {
}
void readButtons() {
if (loopmillis > button_start_lastchange+DEBOUNCE_TIME) { //wait some time after last change
if (digitalRead(PIN_START) && !button_start_state) { //start engine button pressed and was not pressed before
button_start_state=true; //pressed