mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 07:53:33 +08:00
drivers:camera_capture Use inttypes
This commit is contained in:
committed by
Julian Oes
parent
3a0770499a
commit
b6435bb7f2
@@ -1,6 +1,6 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
*
|
*
|
||||||
* Copyright (c) 2018 PX4 Development Team. All rights reserved.
|
* Copyright (c) 2018, 2021 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
|
||||||
@@ -264,7 +264,7 @@ CameraCapture::set_capture_control(bool enabled)
|
|||||||
_gpio_capture = false;
|
_gpio_capture = false;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
PX4_ERR("Unable to set capture callback for chan %u\n", conf.channel);
|
PX4_ERR("Unable to set capture callback for chan %" PRIu8 "\n", conf.channel);
|
||||||
_capture_enabled = false;
|
_capture_enabled = false;
|
||||||
goto err_out;
|
goto err_out;
|
||||||
}
|
}
|
||||||
@@ -314,7 +314,7 @@ void
|
|||||||
CameraCapture::status()
|
CameraCapture::status()
|
||||||
{
|
{
|
||||||
PX4_INFO("Capture enabled : %s", _capture_enabled ? "YES" : "NO");
|
PX4_INFO("Capture enabled : %s", _capture_enabled ? "YES" : "NO");
|
||||||
PX4_INFO("Frame sequence : %u", _capture_seq);
|
PX4_INFO("Frame sequence : %" PRIu32, _capture_seq);
|
||||||
|
|
||||||
if (_last_trig_time != 0) {
|
if (_last_trig_time != 0) {
|
||||||
PX4_INFO("Last trigger timestamp : %" PRIu64 " (%i ms ago)", _last_trig_time,
|
PX4_INFO("Last trigger timestamp : %" PRIu64 " (%i ms ago)", _last_trig_time,
|
||||||
@@ -328,7 +328,7 @@ CameraCapture::status()
|
|||||||
PX4_INFO("Last exposure time : %0.2f ms", double(_last_exposure_time) / 1000.0);
|
PX4_INFO("Last exposure time : %0.2f ms", double(_last_exposure_time) / 1000.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
PX4_INFO("Number of overflows : %u", _capture_overflows);
|
PX4_INFO("Number of overflows : %" PRIu32, _capture_overflows);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int usage()
|
static int usage()
|
||||||
|
|||||||
Reference in New Issue
Block a user