Skip to content

Commit

Permalink
SM5BSZ Linrad-06.00pre rev 1070
Browse files Browse the repository at this point in the history
  • Loading branch information
fventuri committed Oct 12, 2024
1 parent f5c01ea commit 52badfc
Show file tree
Hide file tree
Showing 8 changed files with 414 additions and 20 deletions.
2 changes: 2 additions & 0 deletions fft3.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ while(!kill_all_flag &&
{
// *******************************************************
wait:;
if(thread_command_flag[THREAD_FFT3] == THRFLAG_KILL)goto kill;
thread_status_flag[THREAD_FFT3]=THRFLAG_SEM_WAIT;
lir_sched_yield();
lir_await_event(EVENT_FFT3);
Expand Down Expand Up @@ -635,6 +636,7 @@ else
while(thread_status_flag[THREAD_MIX2] != THRFLAG_SEM_WAIT)
{
lir_sleep(2000);
if(thread_command_flag[THREAD_FFT3] != THRFLAG_ACTIVE)return;
}
// the siganal step size is sg_interleave_points at baseband_sampling_speed
// each step is thus sg_interleave_points/baseband_sampling_speed seconds.
Expand Down
4 changes: 2 additions & 2 deletions hires_graph.c
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ new_mix1_curx[0]=-1;
if(t1 < mix1_lowest_fq)t1=mix1_lowest_fq;
if(t1 > mix1_highest_fq)t1=mix1_highest_fq;
if(MAX_MIX1 > 1)
{
{
for(i=1; i<genparm[MIX1_NO_OF_CHANNELS]; i++)
{
if( fabs(t1-mix1_selfreq[i]) < 3*wg_hz_per_pixel)
Expand All @@ -783,7 +783,7 @@ if(MAX_MIX1 > 1)
mix1_point[i]=-1;
}
}
}
}
make_new_signal(0, t1);
sc[SC_FREQ_READOUT]++;
sc[SC_HG_FQ_SCALE]++;
Expand Down
89 changes: 89 additions & 0 deletions libfind1.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
// Copyright (c) <2012> <Leif Asbrink>
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify,
// merge, publish, distribute, sublicense, and/or sell copies of
// the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
// OR OTHER DEALINGS IN THE SOFTWARE.


#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <dirent.h>

char *dirs[]={"/lib/i386-linux-gnu",
"/lib/x86_64-linux-gnu",
"/lib",
"/lib32",
"/lib64",
"/usr/lib/i386-linux-gnu",
"/usr/lib/x86_64-linux-gnu",
"/usr/lib/x86_64-linux-gnu/stubs",
"/usr/lib32/lib",
"/usr/lib64/lib",
"/usr/lib32",
"/usr/lib64",
"/usr/local/lib",
"/usr/local/lib32",
"/usr/local/lib64",
"/usr/local32/lib",
"/usr/lib",
"/emul/ia32-linux/lib",
"/emul/ia32-linux/usr/lib",
"/usr/PCBSD/local/lib",
"/usr/X11R6/lib",
"/usr/X11R7/lib",
"/usr/pkg/lib",
"/usr/pkg/lib/portaudio2",
"/usr/X11/lib",
"/opt/local/lib",
"/usr/lib/arm-linux-gnueabihf",
"/usr/lib/aarch64-linux-gnu",
"X"};

int main(int argc, char *argv[])
{
FILE *file;
int i,k;
char s[256], buf[256];
if(argc < 2)
{
nothing:;
printf("0");
return 0;
}
i=0;
while(dirs[i][0] != 'X')
{
sprintf(s,"%s/%s",dirs[i],argv[1]);
file=fopen(s,"r");
if(file != NULL)
{
fclose(file);
sprintf(s,"file -L %s/%s",dirs[i],argv[1]);
system(s);
#if DARWIN == 1
sprintf(s,"lipo -info %s/%s",dirs[i],argv[1]);
system(s);
#endif
}
i++;
}
return 1;
}
Loading

0 comments on commit 52badfc

Please sign in to comment.