mirror of
https://github.com/stevenhowes/ctenna.git
synced 2026-05-27 00:03:27 +01:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 60cb956822 | |||
| 27f59c8050 | |||
| b3354b5b16 | |||
| f43842b6ae | |||
| 59e6638757 | |||
| e11c928082 | |||
| 19546019e7 | |||
| d052c29210 |
@@ -1,14 +1,14 @@
|
||||
ctenna: main.o hb9cv.o jpole.o groundplane.c
|
||||
gcc -o ctenna main.o hb9cv.o jpole.o groundplane.c
|
||||
ctenna: main.o hb9cv.o jpole.o groundplane.o
|
||||
cc -o ctenna main.o hb9cv.o jpole.o groundplane.o
|
||||
|
||||
main.o: main.c
|
||||
gcc -c main.c
|
||||
cc -c main.c
|
||||
|
||||
hb9cv.o: hb9cv.c
|
||||
gcc -c hb9cv.c
|
||||
cc -c hb9cv.c
|
||||
|
||||
jpole.o: jpole.c
|
||||
gcc -c jpole.c
|
||||
cc -c jpole.c
|
||||
|
||||
groundplane.o: groundplane.c
|
||||
gcc -c groundplane.c
|
||||
cc -c groundplane.c
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
# ctenna
|
||||
ctenna - a multi antenna calulator for console, written in C
|
||||
ctenna - a multi antenna calculator for console, written in C
|
||||
|
||||
@@ -39,7 +39,7 @@ void hb9cv_calc (float *f, float *unit_factor, float *lambda, float *l1, float *
|
||||
}
|
||||
|
||||
void hb9cv_print (float *f, float *unit_factor, float *lambda, float *l1, float *l2, float *l3, float *l4, float *l5, float *bdiam, float *raddiam, int *unit_index){
|
||||
printf(" Calculated for %f mHz\n", *f);
|
||||
printf(" Calculated for %f MHz\n", *f);
|
||||
printf("\n");
|
||||
printf(" Lambda is %f mm\n", *lambda);
|
||||
printf(" L1 Driven Element is %f ", *l1); switch(*unit_index){ case 1: printf("mm\n"); break; case 2: printf("inch\n"); break; };
|
||||
|
||||
@@ -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(&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 );
|
||||
@@ -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