Skip to content
This repository has been archived by the owner on Aug 3, 2021. It is now read-only.

Failing to log valid LOG_GROUP ctrltarget (setpoint) #187

Open
mouhyemen opened this issue Aug 31, 2020 · 2 comments
Open

Failing to log valid LOG_GROUP ctrltarget (setpoint) #187

mouhyemen opened this issue Aug 31, 2020 · 2 comments

Comments

@mouhyemen
Copy link

I want to log additional log groups from the crazyflie. I modified the scripts to log in ctrltarget.

https://github.com/mouhyemen/crazyflie_ros/blob/master/crazyflie_driver/src/crazyflie_server.cpp#L207

I get the error message that ctrltarget.roll not found in log toc.

Note that, I tested my modification with another log group controller and it works fine. On CF firmware, ctrltarget is a valid log group which I also see on cfclient.

@mouhyemen
Copy link
Author

mouhyemen commented Aug 31, 2020

I modified my script where if I log the following, then it works:

    logBlockSetpoint.reset(new LogBlock<logSetpoint>(
      &m_cf,{
        {"ctrltarget", "thrust"},
        {"ctrltarget", "yaw"},
        {"ctrltarget", "pitch"},
      }, cb));
    logBlockSetpoint->start(2); // 10ms

But if I add the log

{"ctrltarget", "roll"}

then it says,

what(): Could not find ctrltarget.roll in log toc!

ctrltarget.roll is seen on the cfclient as a valid log parameter, however.

@whoenig
Copy link
Owner

whoenig commented Sep 6, 2020

First, you should check if "ctrltarget.roll" also shows up with crazyflie_tools (listLogVariables, https://github.com/whoenig/crazyflie_tools/blob/master/src/listLogVariables.cpp). If it does not, it might be a problem with the TOC cache, which you can disable (https://github.com/whoenig/crazyflie_cpp/blob/master/include/crazyflie_cpp/Crazyflie.h#L193). Second, please make sure you have safelink disabled (https://github.com/whoenig/crazyflie_cpp/blob/master/include/crazyflie_cpp/Crazyflie.h#L15).

jpreiss added a commit to jpreiss/crazyflie_ros that referenced this issue Jun 23, 2021
Docstrings and autodoc setup for python API.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants