This commit is contained in:
Олег Бородин
2024-08-22 04:14:51 +02:00
parent fbd0a7e6e8
commit aee7e32bf0
9 changed files with 263 additions and 90 deletions

View File

@@ -1,19 +1,41 @@
# Micro PA50 controller
set tx off;
while (ptt is on || have input power ) {
check freq;
```
set amp off;
while () {
if (ptt is on || have input power) {
check temp;
if (temp is more min) {
set fan on;
} else {
set fan off;
}
if (temp is over) {
show temp warning;
continue;
}
check freq; // if auto?
if freq in {
set lpf for the freq if need;
calc vswr;
if (swr is good) {
set tx on;
calc power and vswr;
if (vswr is good) {
set amp on;
} else {
set amp off;
show wrong swr;
}
if (power too hight) {
set amp off immed;
}
} else {
show wron freq;
set tx off;
set amp off;
}
} else {
wait 100ms;
}
}
```