Search found 8 matches

by andykee
Fri Nov 22, 2013 3:11 am
Forum: Developer Discussions
Topic: Timestamp log entries?
Replies: 5
Views: 5773

Re: Timestamp log entries?

I still can't get this working. As far as I can tell, I should be able to access the timestamp as follows (see the gyroData method): # Callback called when the connection is established to the Crazyflie def connected(linkURI): gyroconf = LogConfig("Gyro", 10) gyroconf.addVariable(LogVariab...
by andykee
Mon Nov 11, 2013 11:32 pm
Forum: Developer Discussions
Topic: Timestamp log entries?
Replies: 5
Views: 5773

Re: Timestamp log entries?

Do I need to add timestamp to the TOC? It seems like since it's always being written into the packet in the FW, I shouldn't need to, but when I print the contents of pk.data on the client, the timestamp isn't there.
by andykee
Fri Oct 18, 2013 2:14 am
Forum: Developer Discussions
Topic: Timestamp log entries?
Replies: 5
Views: 5773

Timestamp log entries?

I'm trying to figure out a way to timestamp log entries. I'm able to generate a client-side timestamp when each row in the log is written, but would much prefer to have the time when the sensor measurements were made. Is this something that I might be able to accomplish?

Thanks!
by andykee
Wed Oct 16, 2013 8:34 pm
Forum: Developer Discussions
Topic: Trying to log data while also sending setpoints
Replies: 7
Views: 5767

Re: Trying to log data while also sending setpoints

Basically, after the connectSetupFinished callback is called, I create a log file and start a thread for each log I'm building. In this case I have three: motor, accelerometer, and gyro: Thread(target = self.motor_log).start() Thread(target = self.acc_log).start() Thread(target = self.gyro_log).star...
by andykee
Tue Oct 15, 2013 4:10 pm
Forum: Developer Discussions
Topic: Trying to log data while also sending setpoints
Replies: 7
Views: 5767

Re: Trying to log data while also sending setpoints

Great, thanks for the info! For what it's worth, I seem to have resolved my initial logging issue by separating the command and logging calls in to their own threads. I think I may have been running in to a race condition trying to log before/while the setpoint was being sent. Without any additional...
by andykee
Sat Oct 12, 2013 7:55 pm
Forum: Developer Discussions
Topic: Trying to log data while also sending setpoints
Replies: 7
Views: 5767

Trying to log data while also sending setpoints

I'm trying to log quite a bit of data (acc.x, acc.y, acc.z, gyro.x, gyro.y, gyro.z, motor.m1, motor.m2, motor.m3, motor.m4) at at least 10Hz, although preferably more frequently. At the same time, I'm also sending the vehicle setpoints through a script I've written. I'm running in to two issues: 1. ...
by andykee
Fri Oct 11, 2013 9:48 pm
Forum: Support
Topic: [SOLVED] Issue with logging example from wiki
Replies: 2
Views: 2732

Re: Issue with logging example from wiki

I've solved this issue (and am kicking myself over such a simple resolution). Turns out the line self.accel_log.dataReceived.add_callback(self.log_accel_data) should read self.accel_log.data_received.add_callback(self.log_accel_data) I can't update the wiki myself (no account yet), but I'd suggest s...
by andykee
Thu Oct 10, 2013 3:22 am
Forum: Support
Topic: [SOLVED] Issue with logging example from wiki
Replies: 2
Views: 2732

[SOLVED] Issue with logging example from wiki

I'm trying to get logging to work using the accelerometer example posted on the wiki and am getting the following error: File "test_flight.py", line 69, in connectSetupFinished self.accel_log.dataReceived.add_callback(self.log_accel_data) AttributeError: LogEntry instance has no attribute ...