Edge-based platoon control