Files
pa50contr/README.md
Олег Бородин aee7e32bf0 update
2024-08-22 04:14:51 +02:00

697 B

Micro PA50 controller

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 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 amp off;
    }
  } else {
      wait 100ms;
  }
}