mirror of
https://github.com/stevenhowes/ctenna.git
synced 2026-05-26 15:53:28 +01:00
@@ -15,7 +15,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#include <stdio.h>
|
||||
#include "hb9cv.h"
|
||||
#include "jpole.h"
|
||||
#include "jpole.h"
|
||||
#include "groundplane.h"
|
||||
//#include <stdlib.h>
|
||||
|
||||
@@ -108,12 +108,13 @@ int main(){
|
||||
|
||||
while (main_menu_sel != 0){ // main menu loop runs until "0" for quit
|
||||
|
||||
main_menu(&f, &unit_index);
|
||||
main_menu_sel = menu_select();
|
||||
main_menu(&f, &unit_index); //prints menu
|
||||
main_menu_sel = menu_select();
|
||||
|
||||
|
||||
switch(main_menu_sel){
|
||||
|
||||
case 0: return 0;
|
||||
case 1: clear_scr();set_freq(&f);
|
||||
break;
|
||||
case 2: clear_scr();set_units_system(&unit_factor ,&unit_index );
|
||||
@@ -124,11 +125,11 @@ int main(){
|
||||
myflush ( stdin );
|
||||
mypause();
|
||||
break;
|
||||
case 4: clear_scr();
|
||||
gp_calc(&f, &unit_factor,&lambda, &l1, &l2);
|
||||
case 4: clear_scr();
|
||||
gp_calc(&f, &unit_factor,&lambda, &l1, &l2);
|
||||
gp_print(&f ,&unit_factor, &lambda, &l1, &l2, &unit_index);
|
||||
myflush ( stdin );
|
||||
mypause();
|
||||
mypause();
|
||||
break;
|
||||
case 5: clear_scr();
|
||||
hb9cv_calc(&f ,&unit_factor, &lambda, &l1, &l2, &l3, &l4, &l5, &bdiam, &raddiam);
|
||||
@@ -136,7 +137,7 @@ int main(){
|
||||
myflush ( stdin );
|
||||
mypause();
|
||||
break;
|
||||
// default: maybe easteregg in future
|
||||
default:printf("And then?");return 1; //maybe easteregg in future
|
||||
}
|
||||
}
|
||||
clear_scr();
|
||||
|
||||
Reference in New Issue
Block a user