mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 08:38:36 -04:00
Plane: allow enable/disable of camera log messages in CLI
This commit is contained in:
parent
f7c8d1e1ee
commit
3c177867a4
@ -50,6 +50,7 @@ print_log_menu(void)
|
||||
PLOG(CURRENT);
|
||||
PLOG(COMPASS);
|
||||
PLOG(TECS);
|
||||
PLOG(CAMERA);
|
||||
#undef PLOG
|
||||
}
|
||||
|
||||
@ -139,6 +140,8 @@ select_logs(uint8_t argc, const Menu::arg *argv)
|
||||
TARG(CMD);
|
||||
TARG(CURRENT);
|
||||
TARG(COMPASS);
|
||||
TARG(TECS);
|
||||
TARG(CAMERA);
|
||||
#undef TARG
|
||||
}
|
||||
|
||||
|
@ -661,6 +661,8 @@ static void do_take_picture()
|
||||
{
|
||||
#if CAMERA == ENABLED
|
||||
camera.trigger_pic();
|
||||
Log_Write_Camera();
|
||||
if (g.log_bitmask & MASK_LOG_CAMERA) {
|
||||
Log_Write_Camera();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -647,7 +647,8 @@
|
||||
MASK_LOG_CMD | \
|
||||
MASK_LOG_COMPASS | \
|
||||
MASK_LOG_CURRENT | \
|
||||
MASK_LOG_TECS
|
||||
MASK_LOG_TECS | \
|
||||
MASK_LOG_CAMERA
|
||||
|
||||
|
||||
|
||||
|
@ -173,6 +173,7 @@ enum log_messages {
|
||||
#define MASK_LOG_CURRENT (1<<9)
|
||||
#define MASK_LOG_COMPASS (1<<10)
|
||||
#define MASK_LOG_TECS (1<<11)
|
||||
#define MASK_LOG_CAMERA (1<<12)
|
||||
|
||||
// Waypoint Modes
|
||||
// ----------------
|
||||
|
Loading…
Reference in New Issue
Block a user