Accelerating on moving platforms

Hi there,
I've been implementing some kind of 2d platformer for a while now, but I'm stuck with one problem :
my player can't accelerate on moving platforms, It is walking at a constant speed.

On static platforms however, I make it start at an initial speed then gradually accelerating without problems.
For the character, I'm using a simple fixed rotation box that I move using ApplyImpulse.

Here is the function that should properly update its speed (in simplified pseudocode) :
Code:
   velocity = body->GetLinearVelocity()
   oldAbsoluteSpeed = velocity.y
   speedOnGround = oldAbsoluteSpeed - oldGroundSpeed

   speedOnGround = UpdateSpeedFromInput( speedOnGround )

   newAbsoluteSpeed = speedOnGround + groundSpeed
   impulse.y = ( newAbsoluteSpeed - oldAbsoluteSpeed ) * body->GetMass()
   body->ApplyImpulse( impulse )
   velocity = body->GetLinearVelocity()

The UpdateSpeedFromInput() function handles the acceleration/break based on user input.
When there is an input, if the speed is 0 the function sets it to a starting value, then increase this value.
if the speed is below the starting value the function sets it to the starting value, then increase this value, etc..
speed is positive for right moves, and negative for left moves.

I've been breaking into the code and I can see that :
-the speedOnGround variable is properly increased each time
-the impulse is a positive one in the right direction
-the velocity vector is bigger at the end of the function

But still, when I break over multiple frames, the velocity vector seems to be reduced somehow outside of this code, and i don't understand why.
It goes like this :
beginning of call 1 : velocity.x = 34
end of call 1 : velocity.x = 36
beginning of call 2 : velocity.x = 34
end of call 2 : velocity.x = 36
...

So my question is : Is there some kind of drag factor in Box2D I'm not aware of ?
If not, can anyone tell me what I'm missing ?
I'll go back to this probably next week, and post the solution if I find it.

NB: I'm actually using ground normals to properly walk on slopes, but right now I'm testing everything on flat ground so I'm sure not to mess my speed computation while trying to walk on platforms...
There's a max velocity limit in b2Settings, are you hitting that. If so, put it higher.
There's friction with the ground.
There's linear damping.

These are the "obvious" ways that something can be slowed. Your code looks correct to me.

Original thread: https://box2d.org/forum/viewtopic.php?t=4033