App Layer problem[SOLVED]

Discussions and questions about the Crazyflie Nano Quadcopter
Post Reply
applep1e
Beginner
Posts: 3
Joined: Wed Aug 05, 2020 6:09 pm

App Layer problem[SOLVED]

Post by applep1e »

Hi,
I try to do a experiment about backstepping control. so i put the algorithm in AppLayer, use log to get the control input and param as control output.
before real param the motorPowerSet, i want to look the control output is correct and vTaskDelay work as i thought.
so I wonder does DEBUG_PRINT in AppLayer support timestamp like crazyflie-lib-python?
thanks
Last edited by applep1e on Wed Mar 31, 2021 11:45 pm, edited 2 times in total.
kristoffer
Bitcraze
Posts: 630
Joined: Tue Jun 30, 2015 7:47 am

Re: App Layer problem

Post by kristoffer »

Hi!

Time stamps are not part of the DEBUG_PRINT() function, but you could do something like this

Code: Select all

uint32_t now_ms = T2M(xTaskGetTickCount());
DEBUG_PRINT("%lu my message", now_ms);
This would print the number of ms since the CF was booted
Post Reply