Repository navigation
Adds last_heartbeat property. - #457
Conversation
|
@tcr3dr I'm far more interested a property for the "last heartbeat timer value" than the last heartbeat timestamp received. With what we have now I think most users will have to implement their own timer ... which is a bit of a pain. What I think people will want to do is monitor the timeout timer value and in the callback do something when it reaches a particular value. The difficult bit is deciding what is a reasonable update period on the timer. I think we want it to update when the value is set to zero. We also want it to update at least once every second. The question is, whether a more frequent period (tenth of second? would ever be useful). @mikerob - thoughts, as a real user? |
7168734 to
8488e25
Compare
|
@hamishwillee Try this out now. It updates in the same messaging loop we usually use (max 0.01s between loops) and |
8488e25 to
b356150
Compare
|
@tcr3dr Can't test - immediately get exception: |
|
@hamishwillee What source code are you running. I can't recreate, and all tests are passing. |
|
@tcr3dr This file. Same code connects against build of master (although of course the attribute doesn't fire). This is all on Windows against dronekit-sitl copter |
b356150 to
4b3cc49
Compare
|
@tcr3dr Documentation added for last_heartbeat. Can now be merged. |
7f6e890 to
550d9f8
Compare
No description provided.