Page 1 of 1

App Layer problem[SOLVED]

Posted: Tue Mar 30, 2021 3:40 am
by applep1e
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?

Re: App Layer problem

Posted: Tue Mar 30, 2021 3:03 pm
by kristoffer

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