{
struct robot_pos_type *instance = (struct robot_pos_type *)vinstance;
- robot_get_est_pos(&instance->x, &instance->y, &instance->phi);
+ if (check_prestart_status()) {
+ /* if any component not ready, send component error in best position
+ for display to show APP yellow */
+ instance->x = COMPONENT_ERR;
+ instance->y = COMPONENT_ERR;
+ instance->phi = COMPONENT_ERR;
+ } else {
+ robot_get_est_pos(&instance->x, &instance->y, &instance->phi);
+ }
}
void send_dummy_cb(const ORTESendInfo *info, void *vinstance,