mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 04:43:34 +08:00
Enable top in SITL
This commit is contained in:
@@ -29,6 +29,7 @@ set(config_module_list
|
|||||||
systemcmds/sd_bench
|
systemcmds/sd_bench
|
||||||
systemcmds/topic_listener
|
systemcmds/topic_listener
|
||||||
systemcmds/ver
|
systemcmds/ver
|
||||||
|
systemcmds/top
|
||||||
|
|
||||||
modules/attitude_estimator_ekf
|
modules/attitude_estimator_ekf
|
||||||
modules/attitude_estimator_q
|
modules/attitude_estimator_q
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
*
|
*
|
||||||
* Copyright (c) 2012, 2013, 2015 PX4 Development Team. All rights reserved.
|
* Copyright (c) 2012-2016 PX4 Development Team. All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
@@ -96,7 +96,7 @@ top_main(int argc, char *argv[])
|
|||||||
case 0x1b: // esc
|
case 0x1b: // esc
|
||||||
case 'c':
|
case 'c':
|
||||||
case 'q':
|
case 'q':
|
||||||
return OK;
|
return 0;
|
||||||
/* not reached */
|
/* not reached */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -107,5 +107,5 @@ top_main(int argc, char *argv[])
|
|||||||
curr_time = hrt_absolute_time();
|
curr_time = hrt_absolute_time();
|
||||||
}
|
}
|
||||||
|
|
||||||
return OK;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user