Skip to content
Snippets Groups Projects
Commit 63f9a1e6 authored by Lorenz Meier's avatar Lorenz Meier
Browse files

POSIX: 1) Really exit on CTRL-C, 2) Clean up boot log, 3) add eye-candy!

parent 0597c57c
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,10 @@ extern "C" {
void _SigIntHandler(int sig_num);
void _SigIntHandler(int sig_num)
{
_ExitFlag = true;
cout.flush();
cout << endl << "Exiting.." << endl;
cout.flush();
_exit(0);
}
}
......
......@@ -86,7 +86,7 @@ void init_once(void);
void init_once(void)
{
_shell_task_id = pthread_self();
PX4_INFO("Shell id is %lu", _shell_task_id);
printf("[init] shell id: %lu\n", _shell_task_id);
work_queues_init();
hrt_work_queue_init();
hrt_init();
......@@ -94,7 +94,18 @@ void init_once(void)
void init(int argc, char *argv[], const char *app_name)
{
printf("App name: %s\n", app_name);
printf("[init] task name: %s\n", app_name);
printf("\n");
printf("______ __ __ ___ \n");
printf("| ___ \\ \\ \\ / / / |\n");
printf("| |_/ / \\ V / / /| |\n");
printf("| __/ / \\ / /_| |\n");
printf("| | / /^\\ \\ \\___ |\n");
printf("\\_| \\/ \\/ |_/\n");
printf("\n");
printf("Ready to fly.\n");
printf("\n");
printf("\n");
}
uint64_t get_time_micros()
......
......@@ -135,7 +135,7 @@ px4_task_t px4_task_spawn_cmd(const char *name, int scheduler, int priority, int
taskdata->argc = argc;
for (i=0; i<argc; i++) {
printf("arg %d %s\n", i, argv[i]);
PX4_DEBUG("arg %d %s\n", i, argv[i]);
taskdata->argv[i] = (char *)offset;
strcpy((char *)offset, argv[i]);
offset+=strlen(argv[i])+1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment