Log camera topics

This commit is contained in:
JaeyoungLim
2023-03-30 19:05:50 +02:00
parent 8296d02b1e
commit 21b4052d82
2 changed files with 14 additions and 13 deletions
+13 -12
View File
@@ -70,27 +70,28 @@ CameraFeedback::Run()
camera_trigger_s trig{};
while (_trigger_sub.update(&trig)) {
vehicle_attitude_s att{};
while (_att_sub.update(&att)) {
// update geotagging subscriptions
vehicle_global_position_s gpos{};
_gpos_sub.copy(&gpos);
vehicle_attitude_s att{};
_att_sub.copy(&att);
_trigger_sub.copy(&trig);
if (trig.timestamp == 0 ||
gpos.timestamp == 0 ||
att.timestamp == 0) {
// if (trig.timestamp == 0 ||
// gpos.timestamp == 0 ||
// att.timestamp == 0) {
// reject until we have valid data
continue;
}
// // reject until we have valid data
// continue;
// }
if ((_cam_cap_fback >= 1) && !trig.feedback) {
// Ignore triggers that are not feedback when camera capture feedback is enabled
continue;
}
// if ((_cam_cap_fback >= 1) && !trig.feedback) {
// // Ignore triggers that are not feedback when camera capture feedback is enabled
// continue;
// }
camera_capture_s capture{};
+1 -1
View File
@@ -51,7 +51,7 @@ void LoggedTopics::add_default_topics()
add_topic("airspeed", 1000);
add_optional_topic("airspeed_validated", 200);
add_optional_topic("autotune_attitude_control_status", 100);
add_optional_topic("camera_capture");
add_topic("camera_capture");
add_optional_topic("camera_trigger");
add_topic("cellular_status", 200);
add_topic("commander_state");