// generated from rosidl_typesupport_fastrtps_c/resource/idl__type_support_c.cpp.em
// with input from px4_msgs:msg/EstimatorEventFlags.idl
// generated code does not contain a copyright notice
#include "px4_msgs/msg/detail/estimator_event_flags__rosidl_typesupport_fastrtps_c.h"


#include <cassert>
#include <cstddef>
#include <limits>
#include <string>
#include "rosidl_typesupport_fastrtps_c/identifier.h"
#include "rosidl_typesupport_fastrtps_c/serialization_helpers.hpp"
#include "rosidl_typesupport_fastrtps_c/wstring_conversion.hpp"
#include "rosidl_typesupport_fastrtps_cpp/message_type_support.h"
#include "px4_msgs/msg/rosidl_typesupport_fastrtps_c__visibility_control.h"
#include "px4_msgs/msg/detail/estimator_event_flags__struct.h"
#include "px4_msgs/msg/detail/estimator_event_flags__functions.h"
#include "fastcdr/Cdr.h"

#ifndef _WIN32
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wunused-parameter"
# ifdef __clang__
#  pragma clang diagnostic ignored "-Wdeprecated-register"
#  pragma clang diagnostic ignored "-Wreturn-type-c-linkage"
# endif
#endif
#ifndef _WIN32
# pragma GCC diagnostic pop
#endif

// includes and forward declarations of message dependencies and their conversion functions

#if defined(__cplusplus)
extern "C"
{
#endif


// forward declare type support functions


using _EstimatorEventFlags__ros_msg_type = px4_msgs__msg__EstimatorEventFlags;


ROSIDL_TYPESUPPORT_FASTRTPS_C_PUBLIC_px4_msgs
bool cdr_serialize_px4_msgs__msg__EstimatorEventFlags(
  const px4_msgs__msg__EstimatorEventFlags * ros_message,
  eprosima::fastcdr::Cdr & cdr)
{
  // Field name: timestamp
  {
    cdr << ros_message->timestamp;
  }

  // Field name: timestamp_sample
  {
    cdr << ros_message->timestamp_sample;
  }

  // Field name: information_event_changes
  {
    cdr << ros_message->information_event_changes;
  }

  // Field name: gps_checks_passed
  {
    cdr << (ros_message->gps_checks_passed ? true : false);
  }

  // Field name: reset_vel_to_gps
  {
    cdr << (ros_message->reset_vel_to_gps ? true : false);
  }

  // Field name: reset_vel_to_flow
  {
    cdr << (ros_message->reset_vel_to_flow ? true : false);
  }

  // Field name: reset_vel_to_vision
  {
    cdr << (ros_message->reset_vel_to_vision ? true : false);
  }

  // Field name: reset_vel_to_zero
  {
    cdr << (ros_message->reset_vel_to_zero ? true : false);
  }

  // Field name: reset_pos_to_last_known
  {
    cdr << (ros_message->reset_pos_to_last_known ? true : false);
  }

  // Field name: reset_pos_to_gps
  {
    cdr << (ros_message->reset_pos_to_gps ? true : false);
  }

  // Field name: reset_pos_to_vision
  {
    cdr << (ros_message->reset_pos_to_vision ? true : false);
  }

  // Field name: starting_gps_fusion
  {
    cdr << (ros_message->starting_gps_fusion ? true : false);
  }

  // Field name: starting_vision_pos_fusion
  {
    cdr << (ros_message->starting_vision_pos_fusion ? true : false);
  }

  // Field name: starting_vision_vel_fusion
  {
    cdr << (ros_message->starting_vision_vel_fusion ? true : false);
  }

  // Field name: starting_vision_yaw_fusion
  {
    cdr << (ros_message->starting_vision_yaw_fusion ? true : false);
  }

  // Field name: yaw_aligned_to_imu_gps
  {
    cdr << (ros_message->yaw_aligned_to_imu_gps ? true : false);
  }

  // Field name: reset_hgt_to_baro
  {
    cdr << (ros_message->reset_hgt_to_baro ? true : false);
  }

  // Field name: reset_hgt_to_gps
  {
    cdr << (ros_message->reset_hgt_to_gps ? true : false);
  }

  // Field name: reset_hgt_to_rng
  {
    cdr << (ros_message->reset_hgt_to_rng ? true : false);
  }

  // Field name: reset_hgt_to_ev
  {
    cdr << (ros_message->reset_hgt_to_ev ? true : false);
  }

  // Field name: warning_event_changes
  {
    cdr << ros_message->warning_event_changes;
  }

  // Field name: gps_quality_poor
  {
    cdr << (ros_message->gps_quality_poor ? true : false);
  }

  // Field name: gps_fusion_timout
  {
    cdr << (ros_message->gps_fusion_timout ? true : false);
  }

  // Field name: gps_data_stopped
  {
    cdr << (ros_message->gps_data_stopped ? true : false);
  }

  // Field name: gps_data_stopped_using_alternate
  {
    cdr << (ros_message->gps_data_stopped_using_alternate ? true : false);
  }

  // Field name: height_sensor_timeout
  {
    cdr << (ros_message->height_sensor_timeout ? true : false);
  }

  // Field name: stopping_navigation
  {
    cdr << (ros_message->stopping_navigation ? true : false);
  }

  // Field name: invalid_accel_bias_cov_reset
  {
    cdr << (ros_message->invalid_accel_bias_cov_reset ? true : false);
  }

  // Field name: bad_yaw_using_gps_course
  {
    cdr << (ros_message->bad_yaw_using_gps_course ? true : false);
  }

  // Field name: stopping_mag_use
  {
    cdr << (ros_message->stopping_mag_use ? true : false);
  }

  // Field name: vision_data_stopped
  {
    cdr << (ros_message->vision_data_stopped ? true : false);
  }

  // Field name: emergency_yaw_reset_mag_stopped
  {
    cdr << (ros_message->emergency_yaw_reset_mag_stopped ? true : false);
  }

  // Field name: emergency_yaw_reset_gps_yaw_stopped
  {
    cdr << (ros_message->emergency_yaw_reset_gps_yaw_stopped ? true : false);
  }

  return true;
}

ROSIDL_TYPESUPPORT_FASTRTPS_C_PUBLIC_px4_msgs
bool cdr_deserialize_px4_msgs__msg__EstimatorEventFlags(
  eprosima::fastcdr::Cdr & cdr,
  px4_msgs__msg__EstimatorEventFlags * ros_message)
{
  // Field name: timestamp
  {
    cdr >> ros_message->timestamp;
  }

  // Field name: timestamp_sample
  {
    cdr >> ros_message->timestamp_sample;
  }

  // Field name: information_event_changes
  {
    cdr >> ros_message->information_event_changes;
  }

  // Field name: gps_checks_passed
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->gps_checks_passed = tmp ? true : false;
  }

  // Field name: reset_vel_to_gps
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->reset_vel_to_gps = tmp ? true : false;
  }

  // Field name: reset_vel_to_flow
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->reset_vel_to_flow = tmp ? true : false;
  }

  // Field name: reset_vel_to_vision
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->reset_vel_to_vision = tmp ? true : false;
  }

  // Field name: reset_vel_to_zero
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->reset_vel_to_zero = tmp ? true : false;
  }

  // Field name: reset_pos_to_last_known
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->reset_pos_to_last_known = tmp ? true : false;
  }

  // Field name: reset_pos_to_gps
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->reset_pos_to_gps = tmp ? true : false;
  }

  // Field name: reset_pos_to_vision
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->reset_pos_to_vision = tmp ? true : false;
  }

  // Field name: starting_gps_fusion
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->starting_gps_fusion = tmp ? true : false;
  }

  // Field name: starting_vision_pos_fusion
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->starting_vision_pos_fusion = tmp ? true : false;
  }

  // Field name: starting_vision_vel_fusion
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->starting_vision_vel_fusion = tmp ? true : false;
  }

  // Field name: starting_vision_yaw_fusion
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->starting_vision_yaw_fusion = tmp ? true : false;
  }

  // Field name: yaw_aligned_to_imu_gps
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->yaw_aligned_to_imu_gps = tmp ? true : false;
  }

  // Field name: reset_hgt_to_baro
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->reset_hgt_to_baro = tmp ? true : false;
  }

  // Field name: reset_hgt_to_gps
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->reset_hgt_to_gps = tmp ? true : false;
  }

  // Field name: reset_hgt_to_rng
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->reset_hgt_to_rng = tmp ? true : false;
  }

  // Field name: reset_hgt_to_ev
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->reset_hgt_to_ev = tmp ? true : false;
  }

  // Field name: warning_event_changes
  {
    cdr >> ros_message->warning_event_changes;
  }

  // Field name: gps_quality_poor
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->gps_quality_poor = tmp ? true : false;
  }

  // Field name: gps_fusion_timout
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->gps_fusion_timout = tmp ? true : false;
  }

  // Field name: gps_data_stopped
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->gps_data_stopped = tmp ? true : false;
  }

  // Field name: gps_data_stopped_using_alternate
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->gps_data_stopped_using_alternate = tmp ? true : false;
  }

  // Field name: height_sensor_timeout
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->height_sensor_timeout = tmp ? true : false;
  }

  // Field name: stopping_navigation
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->stopping_navigation = tmp ? true : false;
  }

  // Field name: invalid_accel_bias_cov_reset
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->invalid_accel_bias_cov_reset = tmp ? true : false;
  }

  // Field name: bad_yaw_using_gps_course
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->bad_yaw_using_gps_course = tmp ? true : false;
  }

  // Field name: stopping_mag_use
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->stopping_mag_use = tmp ? true : false;
  }

  // Field name: vision_data_stopped
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->vision_data_stopped = tmp ? true : false;
  }

  // Field name: emergency_yaw_reset_mag_stopped
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->emergency_yaw_reset_mag_stopped = tmp ? true : false;
  }

  // Field name: emergency_yaw_reset_gps_yaw_stopped
  {
    uint8_t tmp;
    cdr >> tmp;
    ros_message->emergency_yaw_reset_gps_yaw_stopped = tmp ? true : false;
  }

  return true;
}  // NOLINT(readability/fn_size)


ROSIDL_TYPESUPPORT_FASTRTPS_C_PUBLIC_px4_msgs
size_t get_serialized_size_px4_msgs__msg__EstimatorEventFlags(
  const void * untyped_ros_message,
  size_t current_alignment)
{
  const _EstimatorEventFlags__ros_msg_type * ros_message = static_cast<const _EstimatorEventFlags__ros_msg_type *>(untyped_ros_message);
  (void)ros_message;
  size_t initial_alignment = current_alignment;

  const size_t padding = 4;
  const size_t wchar_size = 4;
  (void)padding;
  (void)wchar_size;

  // Field name: timestamp
  {
    size_t item_size = sizeof(ros_message->timestamp);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: timestamp_sample
  {
    size_t item_size = sizeof(ros_message->timestamp_sample);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: information_event_changes
  {
    size_t item_size = sizeof(ros_message->information_event_changes);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: gps_checks_passed
  {
    size_t item_size = sizeof(ros_message->gps_checks_passed);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: reset_vel_to_gps
  {
    size_t item_size = sizeof(ros_message->reset_vel_to_gps);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: reset_vel_to_flow
  {
    size_t item_size = sizeof(ros_message->reset_vel_to_flow);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: reset_vel_to_vision
  {
    size_t item_size = sizeof(ros_message->reset_vel_to_vision);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: reset_vel_to_zero
  {
    size_t item_size = sizeof(ros_message->reset_vel_to_zero);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: reset_pos_to_last_known
  {
    size_t item_size = sizeof(ros_message->reset_pos_to_last_known);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: reset_pos_to_gps
  {
    size_t item_size = sizeof(ros_message->reset_pos_to_gps);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: reset_pos_to_vision
  {
    size_t item_size = sizeof(ros_message->reset_pos_to_vision);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: starting_gps_fusion
  {
    size_t item_size = sizeof(ros_message->starting_gps_fusion);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: starting_vision_pos_fusion
  {
    size_t item_size = sizeof(ros_message->starting_vision_pos_fusion);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: starting_vision_vel_fusion
  {
    size_t item_size = sizeof(ros_message->starting_vision_vel_fusion);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: starting_vision_yaw_fusion
  {
    size_t item_size = sizeof(ros_message->starting_vision_yaw_fusion);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: yaw_aligned_to_imu_gps
  {
    size_t item_size = sizeof(ros_message->yaw_aligned_to_imu_gps);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: reset_hgt_to_baro
  {
    size_t item_size = sizeof(ros_message->reset_hgt_to_baro);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: reset_hgt_to_gps
  {
    size_t item_size = sizeof(ros_message->reset_hgt_to_gps);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: reset_hgt_to_rng
  {
    size_t item_size = sizeof(ros_message->reset_hgt_to_rng);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: reset_hgt_to_ev
  {
    size_t item_size = sizeof(ros_message->reset_hgt_to_ev);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: warning_event_changes
  {
    size_t item_size = sizeof(ros_message->warning_event_changes);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: gps_quality_poor
  {
    size_t item_size = sizeof(ros_message->gps_quality_poor);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: gps_fusion_timout
  {
    size_t item_size = sizeof(ros_message->gps_fusion_timout);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: gps_data_stopped
  {
    size_t item_size = sizeof(ros_message->gps_data_stopped);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: gps_data_stopped_using_alternate
  {
    size_t item_size = sizeof(ros_message->gps_data_stopped_using_alternate);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: height_sensor_timeout
  {
    size_t item_size = sizeof(ros_message->height_sensor_timeout);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: stopping_navigation
  {
    size_t item_size = sizeof(ros_message->stopping_navigation);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: invalid_accel_bias_cov_reset
  {
    size_t item_size = sizeof(ros_message->invalid_accel_bias_cov_reset);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: bad_yaw_using_gps_course
  {
    size_t item_size = sizeof(ros_message->bad_yaw_using_gps_course);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: stopping_mag_use
  {
    size_t item_size = sizeof(ros_message->stopping_mag_use);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: vision_data_stopped
  {
    size_t item_size = sizeof(ros_message->vision_data_stopped);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: emergency_yaw_reset_mag_stopped
  {
    size_t item_size = sizeof(ros_message->emergency_yaw_reset_mag_stopped);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: emergency_yaw_reset_gps_yaw_stopped
  {
    size_t item_size = sizeof(ros_message->emergency_yaw_reset_gps_yaw_stopped);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  return current_alignment - initial_alignment;
}


ROSIDL_TYPESUPPORT_FASTRTPS_C_PUBLIC_px4_msgs
size_t max_serialized_size_px4_msgs__msg__EstimatorEventFlags(
  bool & full_bounded,
  bool & is_plain,
  size_t current_alignment)
{
  size_t initial_alignment = current_alignment;

  const size_t padding = 4;
  const size_t wchar_size = 4;
  size_t last_member_size = 0;
  (void)last_member_size;
  (void)padding;
  (void)wchar_size;

  full_bounded = true;
  is_plain = true;

  // Field name: timestamp
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint64_t);
    current_alignment += array_size * sizeof(uint64_t) +
      eprosima::fastcdr::Cdr::alignment(current_alignment, sizeof(uint64_t));
  }

  // Field name: timestamp_sample
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint64_t);
    current_alignment += array_size * sizeof(uint64_t) +
      eprosima::fastcdr::Cdr::alignment(current_alignment, sizeof(uint64_t));
  }

  // Field name: information_event_changes
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint32_t);
    current_alignment += array_size * sizeof(uint32_t) +
      eprosima::fastcdr::Cdr::alignment(current_alignment, sizeof(uint32_t));
  }

  // Field name: gps_checks_passed
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: reset_vel_to_gps
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: reset_vel_to_flow
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: reset_vel_to_vision
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: reset_vel_to_zero
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: reset_pos_to_last_known
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: reset_pos_to_gps
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: reset_pos_to_vision
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: starting_gps_fusion
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: starting_vision_pos_fusion
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: starting_vision_vel_fusion
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: starting_vision_yaw_fusion
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: yaw_aligned_to_imu_gps
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: reset_hgt_to_baro
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: reset_hgt_to_gps
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: reset_hgt_to_rng
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: reset_hgt_to_ev
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: warning_event_changes
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint32_t);
    current_alignment += array_size * sizeof(uint32_t) +
      eprosima::fastcdr::Cdr::alignment(current_alignment, sizeof(uint32_t));
  }

  // Field name: gps_quality_poor
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: gps_fusion_timout
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: gps_data_stopped
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: gps_data_stopped_using_alternate
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: height_sensor_timeout
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: stopping_navigation
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: invalid_accel_bias_cov_reset
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: bad_yaw_using_gps_course
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: stopping_mag_use
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: vision_data_stopped
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: emergency_yaw_reset_mag_stopped
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: emergency_yaw_reset_gps_yaw_stopped
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }


  size_t ret_val = current_alignment - initial_alignment;
  if (is_plain) {
    // All members are plain, and type is not empty.
    // We still need to check that the in-memory alignment
    // is the same as the CDR mandated alignment.
    using DataType = px4_msgs__msg__EstimatorEventFlags;
    is_plain =
      (
      offsetof(DataType, emergency_yaw_reset_gps_yaw_stopped) +
      last_member_size
      ) == ret_val;
  }
  return ret_val;
}

ROSIDL_TYPESUPPORT_FASTRTPS_C_PUBLIC_px4_msgs
bool cdr_serialize_key_px4_msgs__msg__EstimatorEventFlags(
  const px4_msgs__msg__EstimatorEventFlags * ros_message,
  eprosima::fastcdr::Cdr & cdr)
{
  // Field name: timestamp
  {
    cdr << ros_message->timestamp;
  }

  // Field name: timestamp_sample
  {
    cdr << ros_message->timestamp_sample;
  }

  // Field name: information_event_changes
  {
    cdr << ros_message->information_event_changes;
  }

  // Field name: gps_checks_passed
  {
    cdr << (ros_message->gps_checks_passed ? true : false);
  }

  // Field name: reset_vel_to_gps
  {
    cdr << (ros_message->reset_vel_to_gps ? true : false);
  }

  // Field name: reset_vel_to_flow
  {
    cdr << (ros_message->reset_vel_to_flow ? true : false);
  }

  // Field name: reset_vel_to_vision
  {
    cdr << (ros_message->reset_vel_to_vision ? true : false);
  }

  // Field name: reset_vel_to_zero
  {
    cdr << (ros_message->reset_vel_to_zero ? true : false);
  }

  // Field name: reset_pos_to_last_known
  {
    cdr << (ros_message->reset_pos_to_last_known ? true : false);
  }

  // Field name: reset_pos_to_gps
  {
    cdr << (ros_message->reset_pos_to_gps ? true : false);
  }

  // Field name: reset_pos_to_vision
  {
    cdr << (ros_message->reset_pos_to_vision ? true : false);
  }

  // Field name: starting_gps_fusion
  {
    cdr << (ros_message->starting_gps_fusion ? true : false);
  }

  // Field name: starting_vision_pos_fusion
  {
    cdr << (ros_message->starting_vision_pos_fusion ? true : false);
  }

  // Field name: starting_vision_vel_fusion
  {
    cdr << (ros_message->starting_vision_vel_fusion ? true : false);
  }

  // Field name: starting_vision_yaw_fusion
  {
    cdr << (ros_message->starting_vision_yaw_fusion ? true : false);
  }

  // Field name: yaw_aligned_to_imu_gps
  {
    cdr << (ros_message->yaw_aligned_to_imu_gps ? true : false);
  }

  // Field name: reset_hgt_to_baro
  {
    cdr << (ros_message->reset_hgt_to_baro ? true : false);
  }

  // Field name: reset_hgt_to_gps
  {
    cdr << (ros_message->reset_hgt_to_gps ? true : false);
  }

  // Field name: reset_hgt_to_rng
  {
    cdr << (ros_message->reset_hgt_to_rng ? true : false);
  }

  // Field name: reset_hgt_to_ev
  {
    cdr << (ros_message->reset_hgt_to_ev ? true : false);
  }

  // Field name: warning_event_changes
  {
    cdr << ros_message->warning_event_changes;
  }

  // Field name: gps_quality_poor
  {
    cdr << (ros_message->gps_quality_poor ? true : false);
  }

  // Field name: gps_fusion_timout
  {
    cdr << (ros_message->gps_fusion_timout ? true : false);
  }

  // Field name: gps_data_stopped
  {
    cdr << (ros_message->gps_data_stopped ? true : false);
  }

  // Field name: gps_data_stopped_using_alternate
  {
    cdr << (ros_message->gps_data_stopped_using_alternate ? true : false);
  }

  // Field name: height_sensor_timeout
  {
    cdr << (ros_message->height_sensor_timeout ? true : false);
  }

  // Field name: stopping_navigation
  {
    cdr << (ros_message->stopping_navigation ? true : false);
  }

  // Field name: invalid_accel_bias_cov_reset
  {
    cdr << (ros_message->invalid_accel_bias_cov_reset ? true : false);
  }

  // Field name: bad_yaw_using_gps_course
  {
    cdr << (ros_message->bad_yaw_using_gps_course ? true : false);
  }

  // Field name: stopping_mag_use
  {
    cdr << (ros_message->stopping_mag_use ? true : false);
  }

  // Field name: vision_data_stopped
  {
    cdr << (ros_message->vision_data_stopped ? true : false);
  }

  // Field name: emergency_yaw_reset_mag_stopped
  {
    cdr << (ros_message->emergency_yaw_reset_mag_stopped ? true : false);
  }

  // Field name: emergency_yaw_reset_gps_yaw_stopped
  {
    cdr << (ros_message->emergency_yaw_reset_gps_yaw_stopped ? true : false);
  }

  return true;
}

ROSIDL_TYPESUPPORT_FASTRTPS_C_PUBLIC_px4_msgs
size_t get_serialized_size_key_px4_msgs__msg__EstimatorEventFlags(
  const void * untyped_ros_message,
  size_t current_alignment)
{
  const _EstimatorEventFlags__ros_msg_type * ros_message = static_cast<const _EstimatorEventFlags__ros_msg_type *>(untyped_ros_message);
  (void)ros_message;

  size_t initial_alignment = current_alignment;

  const size_t padding = 4;
  const size_t wchar_size = 4;
  (void)padding;
  (void)wchar_size;

  // Field name: timestamp
  {
    size_t item_size = sizeof(ros_message->timestamp);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: timestamp_sample
  {
    size_t item_size = sizeof(ros_message->timestamp_sample);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: information_event_changes
  {
    size_t item_size = sizeof(ros_message->information_event_changes);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: gps_checks_passed
  {
    size_t item_size = sizeof(ros_message->gps_checks_passed);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: reset_vel_to_gps
  {
    size_t item_size = sizeof(ros_message->reset_vel_to_gps);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: reset_vel_to_flow
  {
    size_t item_size = sizeof(ros_message->reset_vel_to_flow);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: reset_vel_to_vision
  {
    size_t item_size = sizeof(ros_message->reset_vel_to_vision);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: reset_vel_to_zero
  {
    size_t item_size = sizeof(ros_message->reset_vel_to_zero);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: reset_pos_to_last_known
  {
    size_t item_size = sizeof(ros_message->reset_pos_to_last_known);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: reset_pos_to_gps
  {
    size_t item_size = sizeof(ros_message->reset_pos_to_gps);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: reset_pos_to_vision
  {
    size_t item_size = sizeof(ros_message->reset_pos_to_vision);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: starting_gps_fusion
  {
    size_t item_size = sizeof(ros_message->starting_gps_fusion);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: starting_vision_pos_fusion
  {
    size_t item_size = sizeof(ros_message->starting_vision_pos_fusion);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: starting_vision_vel_fusion
  {
    size_t item_size = sizeof(ros_message->starting_vision_vel_fusion);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: starting_vision_yaw_fusion
  {
    size_t item_size = sizeof(ros_message->starting_vision_yaw_fusion);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: yaw_aligned_to_imu_gps
  {
    size_t item_size = sizeof(ros_message->yaw_aligned_to_imu_gps);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: reset_hgt_to_baro
  {
    size_t item_size = sizeof(ros_message->reset_hgt_to_baro);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: reset_hgt_to_gps
  {
    size_t item_size = sizeof(ros_message->reset_hgt_to_gps);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: reset_hgt_to_rng
  {
    size_t item_size = sizeof(ros_message->reset_hgt_to_rng);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: reset_hgt_to_ev
  {
    size_t item_size = sizeof(ros_message->reset_hgt_to_ev);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: warning_event_changes
  {
    size_t item_size = sizeof(ros_message->warning_event_changes);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: gps_quality_poor
  {
    size_t item_size = sizeof(ros_message->gps_quality_poor);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: gps_fusion_timout
  {
    size_t item_size = sizeof(ros_message->gps_fusion_timout);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: gps_data_stopped
  {
    size_t item_size = sizeof(ros_message->gps_data_stopped);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: gps_data_stopped_using_alternate
  {
    size_t item_size = sizeof(ros_message->gps_data_stopped_using_alternate);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: height_sensor_timeout
  {
    size_t item_size = sizeof(ros_message->height_sensor_timeout);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: stopping_navigation
  {
    size_t item_size = sizeof(ros_message->stopping_navigation);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: invalid_accel_bias_cov_reset
  {
    size_t item_size = sizeof(ros_message->invalid_accel_bias_cov_reset);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: bad_yaw_using_gps_course
  {
    size_t item_size = sizeof(ros_message->bad_yaw_using_gps_course);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: stopping_mag_use
  {
    size_t item_size = sizeof(ros_message->stopping_mag_use);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: vision_data_stopped
  {
    size_t item_size = sizeof(ros_message->vision_data_stopped);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: emergency_yaw_reset_mag_stopped
  {
    size_t item_size = sizeof(ros_message->emergency_yaw_reset_mag_stopped);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  // Field name: emergency_yaw_reset_gps_yaw_stopped
  {
    size_t item_size = sizeof(ros_message->emergency_yaw_reset_gps_yaw_stopped);
    current_alignment += item_size +
      eprosima::fastcdr::Cdr::alignment(current_alignment, item_size);
  }

  return current_alignment - initial_alignment;
}

ROSIDL_TYPESUPPORT_FASTRTPS_C_PUBLIC_px4_msgs
size_t max_serialized_size_key_px4_msgs__msg__EstimatorEventFlags(
  bool & full_bounded,
  bool & is_plain,
  size_t current_alignment)
{
  size_t initial_alignment = current_alignment;

  const size_t padding = 4;
  const size_t wchar_size = 4;
  size_t last_member_size = 0;
  (void)last_member_size;
  (void)padding;
  (void)wchar_size;

  full_bounded = true;
  is_plain = true;
  // Field name: timestamp
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint64_t);
    current_alignment += array_size * sizeof(uint64_t) +
      eprosima::fastcdr::Cdr::alignment(current_alignment, sizeof(uint64_t));
  }

  // Field name: timestamp_sample
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint64_t);
    current_alignment += array_size * sizeof(uint64_t) +
      eprosima::fastcdr::Cdr::alignment(current_alignment, sizeof(uint64_t));
  }

  // Field name: information_event_changes
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint32_t);
    current_alignment += array_size * sizeof(uint32_t) +
      eprosima::fastcdr::Cdr::alignment(current_alignment, sizeof(uint32_t));
  }

  // Field name: gps_checks_passed
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: reset_vel_to_gps
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: reset_vel_to_flow
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: reset_vel_to_vision
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: reset_vel_to_zero
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: reset_pos_to_last_known
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: reset_pos_to_gps
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: reset_pos_to_vision
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: starting_gps_fusion
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: starting_vision_pos_fusion
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: starting_vision_vel_fusion
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: starting_vision_yaw_fusion
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: yaw_aligned_to_imu_gps
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: reset_hgt_to_baro
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: reset_hgt_to_gps
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: reset_hgt_to_rng
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: reset_hgt_to_ev
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: warning_event_changes
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint32_t);
    current_alignment += array_size * sizeof(uint32_t) +
      eprosima::fastcdr::Cdr::alignment(current_alignment, sizeof(uint32_t));
  }

  // Field name: gps_quality_poor
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: gps_fusion_timout
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: gps_data_stopped
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: gps_data_stopped_using_alternate
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: height_sensor_timeout
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: stopping_navigation
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: invalid_accel_bias_cov_reset
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: bad_yaw_using_gps_course
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: stopping_mag_use
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: vision_data_stopped
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: emergency_yaw_reset_mag_stopped
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  // Field name: emergency_yaw_reset_gps_yaw_stopped
  {
    size_t array_size = 1;
    last_member_size = array_size * sizeof(uint8_t);
    current_alignment += array_size * sizeof(uint8_t);
  }

  size_t ret_val = current_alignment - initial_alignment;
  if (is_plain) {
    // All members are plain, and type is not empty.
    // We still need to check that the in-memory alignment
    // is the same as the CDR mandated alignment.
    using DataType = px4_msgs__msg__EstimatorEventFlags;
    is_plain =
      (
      offsetof(DataType, emergency_yaw_reset_gps_yaw_stopped) +
      last_member_size
      ) == ret_val;
  }
  return ret_val;
}


static bool _EstimatorEventFlags__cdr_serialize(
  const void * untyped_ros_message,
  eprosima::fastcdr::Cdr & cdr)
{
  if (!untyped_ros_message) {
    fprintf(stderr, "ros message handle is null\n");
    return false;
  }
  const px4_msgs__msg__EstimatorEventFlags * ros_message = static_cast<const px4_msgs__msg__EstimatorEventFlags *>(untyped_ros_message);
  (void)ros_message;
  return cdr_serialize_px4_msgs__msg__EstimatorEventFlags(ros_message, cdr);
}

static bool _EstimatorEventFlags__cdr_deserialize(
  eprosima::fastcdr::Cdr & cdr,
  void * untyped_ros_message)
{
  if (!untyped_ros_message) {
    fprintf(stderr, "ros message handle is null\n");
    return false;
  }
  px4_msgs__msg__EstimatorEventFlags * ros_message = static_cast<px4_msgs__msg__EstimatorEventFlags *>(untyped_ros_message);
  (void)ros_message;
  return cdr_deserialize_px4_msgs__msg__EstimatorEventFlags(cdr, ros_message);
}

static uint32_t _EstimatorEventFlags__get_serialized_size(const void * untyped_ros_message)
{
  return static_cast<uint32_t>(
    get_serialized_size_px4_msgs__msg__EstimatorEventFlags(
      untyped_ros_message, 0));
}

static size_t _EstimatorEventFlags__max_serialized_size(char & bounds_info)
{
  bool full_bounded;
  bool is_plain;
  size_t ret_val;

  ret_val = max_serialized_size_px4_msgs__msg__EstimatorEventFlags(
    full_bounded, is_plain, 0);

  bounds_info =
    is_plain ? ROSIDL_TYPESUPPORT_FASTRTPS_PLAIN_TYPE :
    full_bounded ? ROSIDL_TYPESUPPORT_FASTRTPS_BOUNDED_TYPE : ROSIDL_TYPESUPPORT_FASTRTPS_UNBOUNDED_TYPE;
  return ret_val;
}


static message_type_support_callbacks_t __callbacks_EstimatorEventFlags = {
  "px4_msgs::msg",
  "EstimatorEventFlags",
  _EstimatorEventFlags__cdr_serialize,
  _EstimatorEventFlags__cdr_deserialize,
  _EstimatorEventFlags__get_serialized_size,
  _EstimatorEventFlags__max_serialized_size,
  nullptr
};

static rosidl_message_type_support_t _EstimatorEventFlags__type_support = {
  rosidl_typesupport_fastrtps_c__identifier,
  &__callbacks_EstimatorEventFlags,
  get_message_typesupport_handle_function,
  &px4_msgs__msg__EstimatorEventFlags__get_type_hash,
  &px4_msgs__msg__EstimatorEventFlags__get_type_description,
  &px4_msgs__msg__EstimatorEventFlags__get_type_description_sources,
};

const rosidl_message_type_support_t *
ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_fastrtps_c, px4_msgs, msg, EstimatorEventFlags)() {
  return &_EstimatorEventFlags__type_support;
}

#if defined(__cplusplus)
}
#endif
