mavlink: fix value handling