Partially refactored ServiceClient, tests are failing, the code is totally broken

This commit is contained in:
Pavel Kirienko
2015-05-15 18:41:38 +03:00
parent ee761eebad
commit 282b995c1e
15 changed files with 435 additions and 307 deletions
@@ -42,7 +42,7 @@ class BlockingServiceClient : public uavcan::ServiceClient<DataType>
void callback(const uavcan::ServiceCallResult<DataType>& res)
{
response_ = res.response;
response_ = res.getResponse();
call_was_successful_ = res.isSuccessful();
}
@@ -85,7 +85,7 @@ public:
const int call_res = Super::call(server_node_id, request);
if (call_res >= 0)
{
while (Super::isPending())
while (Super::hasPendingCalls())
{
const int spin_res = Super::getNode().spin(SpinDuration);
if (spin_res < 0)