void plan_setup_land() { PathDesiredData pathDesired; plan_setup_land_helper(&pathDesired); PathDesiredSet(&pathDesired); }
void plan_setup_land() { PathDesiredData pathDesired; // re-initialise in setup stage memset(&pathDesired, 0, sizeof(PathDesiredData)); plan_setup_land_helper(&pathDesired); PathDesiredSet(&pathDesired); }