A cruise controller based on PI control under active inference. (a) The response of the car velocity over time with a target state, or prior in our formulation, km/h, km/h; (b) The acceleration of the car over time with a specified prior km/h; (c) The external force v, introduced at s, models a sudden change in the environmental conditions, for instance wind or change in slope. Action obtained via the minimisation of variational free energy with respect to a and counteracts the effects of v. The motor action is never zero since we assume a constant slope, (see Table A1, Appendix A); (d) The model car we implemented, where v could be thought of as a sudden wind or a changing slope.