...
|
...
|
@@ -24,22 +24,6 @@ float gain=0; |
|
|
int columns_nb=64;
|
|
|
int rows_nb=16;
|
|
|
|
|
|
static void info_cb(char const*, void*){
|
|
|
fprintf(stderr, "%d ", output.chars[0]);
|
|
|
}
|
|
|
|
|
|
|
|
|
static void period_cb(char const*argument, void*){
|
|
|
period=strtol(argument, NULL, 10);
|
|
|
step=(double)refresh_rate/(double)period;
|
|
|
}
|
|
|
|
|
|
static void refresh_cb(char const*argument, void*){
|
|
|
refresh_rate=strtol(argument, NULL, 10);
|
|
|
step=(double)refresh_rate/(double)period;
|
|
|
blc_command_loop_period=refresh_rate*1000;
|
|
|
}
|
|
|
|
|
|
static void start_float_loop(float frequency, float min, float max){
|
|
|
int i;
|
|
|
float time_gain, offset, gain;
|
...
|
...
|
@@ -63,7 +47,7 @@ static void start_float_loop(float frequency, float min, float max){ |
|
|
}
|
|
|
|
|
|
int main(int argc, char **argv){
|
|
|
char const *period_str, *refresh_rate_str, *display_str, *display_height_str, *channel_name, *buffer_length_str, *type_str, *frequency_str;
|
|
|
char const *refresh_rate_str, *channel_name, *buffer_length_str, *type_str, *frequency_str;
|
|
|
char const *min_str, *max_str;
|
|
|
float frequency, min, max;
|
|
|
int buffer_length;
|
...
|
...
|
@@ -77,7 +61,7 @@ int main(int argc, char **argv){ |
|
|
blc_program_add_option(&max_str, 'M', "max", "float", "maximum value of oscillation", "1");
|
|
|
blc_program_add_option(&refresh_rate_str, 'r', "refresh", "integer", "refresh rate in ms", "10");
|
|
|
blc_program_add_option(&type_str, 't', "type", "FL32", "type of data", "FL32");
|
|
|
blc_program_init(&argc, &argv, NULL);
|
|
|
blc_program_init(&argc, &argv, blc_quit);
|
|
|
|
|
|
// period=strtol(period_str, NULL, 10);
|
|
|
SSCANF(1, refresh_rate_str, "%f", &refresh_rate);
|
...
|
...
|
|