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