'Call ``flush()`` after :py:func:`adding <CommandSequence.add>` or :py:func:`clearing <CommandSequence.clear>` mission commands.
After the return from ``flush()`` any writes are guaranteed to have completed (or thrown an
exception) and future reads will see their effects.
.. warning::
This method is deprecated. It has been replaced by
:py:func:`Vehicle.commands.upload() <Vehicle.commands.upload>`.'

def flush(self):

    return self.commands.upload()
