Light Flash

Discussion and support for MoTeC Power Distribution Modules

Light Flash

Postby plosey on Tue Dec 04, 2012 5:19 pm

I have a pdm30 setup and want to flash the headlights off a button on the steering wheel.

Scenario is the headlights are on, Using a momentary so Toggle Headlight Request = Headlights on

While on and while off we want to be able to flash those headlights using another momentary button to flash the lights in a .5 on .2 off flash.

Any help is appreciated.
plosey
 
Posts: 10
Joined: Tue Oct 16, 2012 3:37 am

Re: Light Flash

Postby MattW on Wed Dec 05, 2012 9:17 am

Condition:
FlashCondition =
____pulse(FlashButton, edge=rising, width=2.8s)

Output:
Headlight =
____toggle(LightsButton , edge=rising)
____and
____FlashCondition = false
or
____flash(FlashCondition=true, true time=0.50s, false time=0.20s)

Change this as you like. The width in FlashCondtion will decide how many times it flashes.
(
0.50s + 0.20s * [amount of flashes desired] = width)

MattW
 
Posts: 30
Joined: Thu May 17, 2012 11:17 am


Return to PDM15 PDM16 PDM30 and PDM32

Who is online

Users browsing this forum: No registered users and 12 guests