Version 1.4

Reworked channel changing: now it tracks the current ch. and resets only once. This makes the program to finish faster.
Added rolltime_down and percentage values to shutter structure: now the schedule file needs to contain a percentage column after the timestamp for lowering, and a rolltime needs to be defined for each shutter in the beginning of the program. When lowering shutters, there's a calculation to sleep until the desired percentage is reached, when the shutter is stopped
The way to deactivate shutters has changed: now you need to set the percentage to 0.
This commit is contained in:
2021-08-30 18:47:21 +02:00
parent 877614b7a3
commit 6bc23c92fe
3 changed files with 12 additions and 8 deletions

19
timing.h Normal file
View File

@@ -0,0 +1,19 @@
//
// Created by lacko on 08/08/2021.
//
#ifndef _IDOZITES_H_
#define _IDOZITES_H_
#include "shutter.h"
#include <time.h>
#include <stdio.h>
void get_timing (shutter *r, FILE *schedule);
buttons check_timing (shutter *r);
int find_today (FILE *schedule);
int find_next_day (FILE *f);
#endif //_IDOZITES_H_