Plane: allow enable/disable of camera log messages in CLI

This commit is contained in:
Andrew Tridgell 2013-07-10 12:23:36 +10:00
parent f7c8d1e1ee
commit 3c177867a4
4 changed files with 9 additions and 2 deletions

View File

@ -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
}

View File

@ -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
}

View File

@ -647,7 +647,8 @@
MASK_LOG_CMD | \
MASK_LOG_COMPASS | \
MASK_LOG_CURRENT | \
MASK_LOG_TECS
MASK_LOG_TECS | \
MASK_LOG_CAMERA

View File

@ -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
// ----------------