Porównaj commity
4 Commity
12be30a333
...
d675bcef94
Autor | SHA1 | Data |
---|---|---|
David Fainitski | d675bcef94 | |
David Fainitski | 1719fd6b0a | |
David Fainitski | c4ae0b8ebf | |
David Fainitski | 07f704ae39 |
Plik binarny nie jest wyświetlany.
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue