Unloading automation system for unloading harvested crop from an agricultural vehicle into a container, wherein the agricultural vehicle is equipped with a discharge, wherein the unloading automation system comprises: a filling degree measurement system adapted to, during the unloading, determine the level of harvested crop at at least one position within the container; a position measurement system adapted to determine a position of the agricultural vehicle relative to the container, characterized in that the position measurement system comprises at least one UWB tag and at least one UWB base station, wherein the UWB tag is adapted to generate an UWB pulse and arranged to communicate with the at least one UWB base station, wherein the UWB tag is fixed in a known position relative to one of the agricultural harvester or the container and the UWB base station is fixed in a known position relative to the other of the agricultural harvester or the container wherein the position measurement system is further adapted to; obtain a distance of the UWB tag to the UWB base station from the communication between the UWB tag and the UWB base station; and to obtain the position of the agricultural vehicle relative to the container from the distance of the UWB tag to the UWB base station; and in that the filling degree measurement system comprises at least one UWB tag and at least one UWB base station, wherein the at least one UWB tag is arranged to communicate with at least one UWB base station via a wireless communication path, wherein the at least one UWB tag and the at least one UWB base station are positioned such that their wireless communication path gets distorted as the container is filled, resulting in a weakened UWB pulse received by the UWB base station; and in that at least one of the UWB base stations or UWB tags is a common UWB base station or common UWB tag that is comprised in the filling degree measurement system as well as in the position measurement system and wherein the position measurement system and the filling degree measurement system are adapted to respectively determine the position of the agricultural vehicle relative to the container and the level of the harvested crop at the at least one position within the container based on an UWB pulse which is received or transmitted by said common UWB base station or common UWB tag. a filling degree measurement system adapted to, during the unloading, determine the level of harvested crop at at least one position within the container; a position measurement system adapted to determine a position of the agricultural vehicle relative to the container, characterized in that the position measurement system comprises at least one UWB tag and at least one UWB base station, wherein the UWB tag is adapted to generate an UWB pulse and arranged to communicate with the at least one UWB base station, wherein the UWB tag is fixed in a known position relative to one of the agricultural harvester or the container and the UWB base station is fixed in a known position relative to the other of the agricultural harvester or the container wherein the position measurement system is further adapted to; obtain a distance of the UWB tag to the UWB base station from the communication between the UWB tag and the UWB base station; and to obtain the position of the agricultural vehicle relative to the container from the distance of the UWB tag to the UWB base station; and in that obtain a distance of the UWB tag to the UWB base station from the communication between the UWB tag and the UWB base station; and to obtain the position of the agricultural vehicle relative to the container from the distance of the UWB tag to the UWB base station; and in that the filling degree measurement system comprises at least one UWB tag and at least one UWB base station, wherein the at least one UWB tag is arranged to communicate with at least one UWB base station via a wireless communication path, wherein the at least one UWB tag and the at least one UWB base station are positioned such that their wireless communication path gets distorted as the container is filled, resulting in a weakened UWB pulse received by the UWB base station; and in that at least one of the UWB base stations or UWB tags is a common UWB base station or common UWB tag that is comprised in the filling degree measurement system as well as in the position measurement system and wherein the position measurement system and the filling degree measurement system are adapted to respectively determine the position of the agricultural vehicle relative to the container and the level of the harvested crop at the at least one position within the container based on an UWB pulse which is received or transmitted by said common UWB base station or common UWB tag.