80 if ((t>=0) & (t<=doublet->tf)){
82 if((t >=
doublet->
t1) & (t <= doublet->t2)){
84 }
else if((t >=
doublet->
t2) & (t <= doublet->t3)){
90 if((t >=
doublet->
t1) & (t <= doublet->t2)){
92 }
else if((t >=
doublet->
t2) & (t <= doublet->t3)){
98 if (((t >=
doublet->
t1) & (t <= doublet->t2)) | ((t >=
doublet->
t3) & (t <= doublet->t4))){
100 }
else if(((t >=
doublet->
t2) && (t <= doublet->t3)) | ((t >=
doublet->
t4) && (t <= doublet->t5))){
void doublet_init(struct doublet_t *doublet, float length_s, float extra_waiting_time_s, float current_time_s, uint8_t mod)
bool doublet_is_running(struct doublet_t *doublet, float current_time_s)
void doublet_reset(struct doublet_t *doublet, float current_time_s)
float doublet_update(struct doublet_t *doublet, float current_time_s)
Initialize with doublet_init.
static struct doublet_t doublet
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.