Porównaj commity

...

4 Commity

Autor SHA1 Wiadomość Data
David Fainitski d675bcef94
Add files via upload 2023-04-11 10:28:18 -04:00
David Fainitski 1719fd6b0a
Delete main.c 2023-04-11 07:28:05 -07:00
David Fainitski c4ae0b8ebf
Add files via upload 2023-04-11 10:27:21 -04:00
David Fainitski 07f704ae39
Delete ATU-10_FW_16.zip 2023-04-11 07:25:44 -07:00
2 zmienionych plików z 5 dodań i 5 usunięć

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -199,7 +199,7 @@ void watch_swr(void){
//
if(SWR_fixed>99 && SWR_fixed!=SWR_ind){
SWR_ind = SWR_fixed;
if(PWR_fixed<10){
if(PWR_fixed<min_for_start){
SWR_fixed = 0;
//SWR_ind = 0; // Last meassured SWR on display ! not a bug
draw_swr(SWR_ind);
@ -572,7 +572,7 @@ void get_pwr(){
else oled_start();
}
//
if(PWR<10) SWR = 0; // < 1W
if(PWR<min_for_start) SWR = 0; // < 1W
else if(R >= F) SWR = 999;
else {
gamma = sqrt_n(R / F);
@ -600,7 +600,7 @@ float sqrt_n(float x){ // Thanks, Newton !
//
void get_swr(){
unsigned int pwr_cnt = 150, tuneoff_cnt = 300;
unsigned int swr_1, swr_2, pwr_1, pwr_2, PWR_max = 0;
unsigned int swr_1, pwr_1, PWR_max = 0;
char cnt;
PWR = 0;
SWR = 0;
@ -937,9 +937,9 @@ void cells_reading(void){
}
//
Disp_time = Bcd2Dec(Cells_2[0]) ;
Disp_time *= 60000; // minutes to ms
Disp_time *= 60000; // minutes to ms
Off_time = Bcd2Dec(Cells_2[1]);
Off_time *= 60000; // minutes to ms
Off_time *= 60000; // minutes to ms
Rel_Del = Bcd2Dec(Cells_2[2]); // Delay in ms
min_for_start = Bcd2Dec(Cells_2[3]); // Power with tens parts
max_for_start = Bcd2Dec(Cells_2[4]) * 10; // power in Watts