Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adis debugging #841

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ROMFS/px4fmu_common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
############################################################################

add_subdirectory(init.d)
add_subdirectory(logging)
# TODO: make this configurable from the board config, or better combine
if("${PX4_BOARD}" MATCHES "sitl")
add_subdirectory(init.d-posix)
Expand Down
2 changes: 1 addition & 1 deletion ROMFS/px4fmu_common/init.d/rc.logging
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ fi

if ! param compare SDLOG_MODE -1
then
logger start -b ${LOGGER_BUF} -t ${LOGGER_ARGS}
logger start -b ${LOGGER_BUF} -t ${LOGGER_ARGS} -p sensor_accel
fi
3 changes: 3 additions & 0 deletions ROMFS/px4fmu_common/logging/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
px4_add_romfs_files(
logger_topics.txt
)
2 changes: 2 additions & 0 deletions ROMFS/px4fmu_common/logging/logger_topics.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sensor_accel
sensor_gyro
2 changes: 1 addition & 1 deletion boards/ssrc/saluki-nxp93
2 changes: 1 addition & 1 deletion boards/ssrc/saluki-pi
2 changes: 1 addition & 1 deletion src/modules/logger/logged_topics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ bool LoggedTopics::add_topic_multi(const char *name, uint16_t interval_ms, uint8

bool LoggedTopics::initialize_logged_topics(SDLogProfileMask profile)
{
int ntopics = add_topics_from_file(PX4_STORAGEDIR "/etc/logging/logger_topics.txt");
int ntopics = add_topics_from_file(/*PX4_STORAGEDIR*/ "/etc/logging/logger_topics.txt");

if (ntopics > 0) {
PX4_INFO("logging %d topics from logger_topics.txt", ntopics);
Expand Down
3 changes: 2 additions & 1 deletion src/modules/logger/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,8 @@ bool Logger::initialize_topics()
return false;
}

if ((sdlog_profile & SDLogProfileMask::RAW_IMU_ACCEL_FIFO) || (sdlog_profile & SDLogProfileMask::RAW_IMU_GYRO_FIFO)) {
//if ((sdlog_profile & SDLogProfileMask::RAW_IMU_ACCEL_FIFO) || (sdlog_profile & SDLogProfileMask::RAW_IMU_GYRO_FIFO)) {
{
// if we are logging high-rate FIFO, reduce the logging interval & increase process priority to avoid missing samples
PX4_INFO("Logging FIFO data: increasing task prio and logging rate");
_log_interval = 800;
Expand Down
Loading