mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-04 23:18:29 -04:00
added SITL_debug() macro
this can be used to print a message into the logs in the SITL simulator. This will be used for critical conditions.
This commit is contained in:
parent
085cc00c33
commit
601a991a46
@ -227,5 +227,11 @@ struct Location {
|
|||||||
|
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
|
#ifdef DESKTOP_BUILD
|
||||||
|
// used to report serious errors in autotest
|
||||||
|
# define SITL_debug(fmt, args...) fprintf(stdout, "%s:%u " fmt, __FUNCTION__, __LINE__, ##args)
|
||||||
|
#else
|
||||||
|
# define SITL_debug(fmt, args...)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // _AP_COMMON_H
|
#endif // _AP_COMMON_H
|
||||||
|
Loading…
Reference in New Issue
Block a user