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
App Layer problem[SOLVED]
App Layer problem[SOLVED]
Last edited by applep1e on Wed Mar 31, 2021 11:45 pm, edited 2 times in total.
-
- Bitcraze
- Posts: 630
- Joined: Tue Jun 30, 2015 7:47 am
Re: App Layer problem
Hi!
Time stamps are not part of the DEBUG_PRINT() function, but you could do something like this
This would print the number of ms since the CF was booted
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);