I am no longer developing using freewpc. I sold my DM. Here is what I know.
I don’t remember the difference between tristate and on/off but I always used tristate and that always worked for me.
Also note that there is a flash function with tristate:
lamp_tristate_flash(LM_CLAW_ACMAG);
task_sleep(TIME_500MS);
lamp_tristate_on(LM_CLAW_ACMAG);
Not sure why your lamps do not always work. Perhaps a bug somewhere else.
From: fre...@googlegroups.com [mailto:fre...@googlegroups.com] On Behalf Of Aeneas Verhé
Sent: Monday, May 16, 2016 7:18 AM
To: FreeWPC
Cc: br...@oddchange.com
Subject: Re: LAMP EFFECTS QUESTIONS
Email sent from outside of PSEG. Use caution before using links/attachments.
--
---
You received this message because you are subscribed to the Google Groups "FreeWPC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to freewpc+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
![]() | ||||
|
PSEGSC
The information contained in this e-mail, including any attachment(s), is intended solely for use by the named addressee(s). If you are not the intended recipient, or a person designated as responsible for delivering such messages to the intended recipient, you are not authorized to disclose, copy, distribute or retain this message, in whole or in part, without written authorization from PSEG. This e-mail may contain proprietary, confidential or privileged information. If you have received this message in error, please notify the sender immediately. This notice is included in all e-mail messages leaving PSEG. Thank you for your cooperation.
You need to control the on and off states yourself. I usually do this one of two ways:
1) Lamp is on or flashing for a short time for a special effect after a target hit. In below example, the target is hit so I flash the lamp then turn it on.
lamp_tristate_flash(LM_CLAW_ACMAG);
task_sleep(TIME_500MS);
lamp_tristate_on(LM_CLAW_ACMAG);
leff_start (LEFF_BOT2TOP);
2) Lamp is set on or flashing or off to indicate a condition. The lamp does not change state until you tell it to.
void acmag_reset (void) {
acmag_mode_shots_made = 0;
if (get_dm_mode(ACMAG_COMPLETED)) lamp_tristate_on (LM_CLAW_ACMAG);
else lamp_tristate_off (LM_CLAW_ACMAG);
}//end of function
From: fre...@googlegroups.com [mailto:fre...@googlegroups.com] On Behalf Of Aeneas Verhé
Sent: Monday, May 16, 2016 8:08 AM
To: FreeWPC
Cc: br...@oddchange.com
Subject: Re: LAMP EFFECTS QUESTIONS
Email sent from outside of PSEG. Use caution before using links/attachments.
Hi,
--
---
You received this message because you are subscribed to the Google Groups "FreeWPC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to freewpc+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.