A computer-readable medium comprising computer program code, which, when executed by one or more processors, causes performance of a method for controlling propulsion of a marine vessel, the propulsion being at least partly implemented by a foil wheel propulsion system, which foil wheel propulsion system includes a rotatable wheel powered by a wheel motor and controlled by a wheel drive, a plurality of rotatable foils attached perpendicularly to the wheel, each foil powered by a foil motor and controlled by a foil drive, a wheel sensor to measure an actual angular wheel position of the wheel, and a plurality of foil sensors to measure an actual angular foil position of each foil, the method comprising:
- receiving a plurality of foil operation statuses from a plurality of foil drives;
- receiving a command from the vessel control system;
- generating wheel control data for the wheel drive to control a foil pitch function of the foil wheel propulsion system based on the command in view of the wheel operation status;
- and
- generating foil control data for the plurality of the foil drives to further control the foil pitch function of the foil wheel propulsion system based on the command in view of the wheel operation status and the plurality of foil operation statuses, wherein a reference torque of the foil control data for each foil drive is generated using a foil feedforward model.