bolderflight / mavlink

MAV Link telemetry
MIT License
13 stars 8 forks source link

Arduino compile error #1

Open walchko opened 1 year ago

walchko commented 1 year ago

So I cloned mavlink and units into my library folder. When I try to add the header:

#include <mavlink.h>

I get the following warnings and errors about elapsedMillis (and others) not being types ... am I missing something?

In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2485,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h:36,
                 from /Users/kevin/github/quadcopter/arduino/simple_test/simple_test.ino:3:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h: In function 'uint16_t mavlink_msg_set_attitude_target_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_set_attitude_target_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h:183:242: warning: taking address of packed member of '__mavlink_set_attitude_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  183 |     return mavlink_msg_set_attitude_target_pack(system_id, component_id, msg, set_attitude_target->time_boot_ms, set_attitude_target->target_system, set_attitude_target->target_component, set_attitude_target->type_mask, set_attitude_target->q, set_attitude_target->body_roll_rate, set_attitude_target->body_pitch_rate, set_attitude_target->body_yaw_rate, set_attitude_target->thrust, set_attitude_target->thrust_body);
      |                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~~~~~^
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2485,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h:36,
                 from /Users/kevin/github/quadcopter/arduino/simple_test/simple_test.ino:3:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h:183:406: warning: taking address of packed member of '__mavlink_set_attitude_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  183 |     return mavlink_msg_set_attitude_target_pack(system_id, component_id, msg, set_attitude_target->time_boot_ms, set_attitude_target->target_system, set_attitude_target->target_component, set_attitude_target->type_mask, set_attitude_target->q, set_attitude_target->body_roll_rate, set_attitude_target->body_pitch_rate, set_attitude_target->body_yaw_rate, set_attitude_target->thrust, set_attitude_target->thrust_body);
      |                                                                                                                                                                                                                                                                                                                                                                                                 ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h: In function 'uint16_t mavlink_msg_set_attitude_target_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_set_attitude_target_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h:197:253: warning: taking address of packed member of '__mavlink_set_attitude_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  197 |     return mavlink_msg_set_attitude_target_pack_chan(system_id, component_id, chan, msg, set_attitude_target->time_boot_ms, set_attitude_target->target_system, set_attitude_target->target_component, set_attitude_target->type_mask, set_attitude_target->q, set_attitude_target->body_roll_rate, set_attitude_target->body_pitch_rate, set_attitude_target->body_yaw_rate, set_attitude_target->thrust, set_attitude_target->thrust_body);
      |                                                                                                                                                                                                                                        ~~~~~~~~~~~~~~~~~~~~~^
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h:197:417: warning: taking address of packed member of '__mavlink_set_attitude_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  197 |     return mavlink_msg_set_attitude_target_pack_chan(system_id, component_id, chan, msg, set_attitude_target->time_boot_ms, set_attitude_target->target_system, set_attitude_target->target_component, set_attitude_target->type_mask, set_attitude_target->q, set_attitude_target->body_roll_rate, set_attitude_target->body_pitch_rate, set_attitude_target->body_yaw_rate, set_attitude_target->thrust, set_attitude_target->thrust_body);
      |                                                                                                                                                                                                                                                                                                                                                                                                            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2528,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h:36,
                 from /Users/kevin/github/quadcopter/arduino/simple_test/simple_test.ino:3:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_distance_sensor.h: In function 'uint16_t mavlink_msg_distance_sensor_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_distance_sensor_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_distance_sensor.h:200:387: warning: taking address of packed member of '__mavlink_distance_sensor_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  200 |     return mavlink_msg_distance_sensor_pack(system_id, component_id, msg, distance_sensor->time_boot_ms, distance_sensor->min_distance, distance_sensor->max_distance, distance_sensor->current_distance, distance_sensor->type, distance_sensor->id, distance_sensor->orientation, distance_sensor->covariance, distance_sensor->horizontal_fov, distance_sensor->vertical_fov, distance_sensor->quaternion, distance_sensor->signal_quality);
      |                                                                                                                                                                                                                                                                                                                                                                                  ~~~~~~~~~~~~~~~~~^~~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_distance_sensor.h: In function 'uint16_t mavlink_msg_distance_sensor_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_distance_sensor_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_distance_sensor.h:214:398: warning: taking address of packed member of '__mavlink_distance_sensor_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  214 |     return mavlink_msg_distance_sensor_pack_chan(system_id, component_id, chan, msg, distance_sensor->time_boot_ms, distance_sensor->min_distance, distance_sensor->max_distance, distance_sensor->current_distance, distance_sensor->type, distance_sensor->id, distance_sensor->orientation, distance_sensor->covariance, distance_sensor->horizontal_fov, distance_sensor->vertical_fov, distance_sensor->quaternion, distance_sensor->signal_quality);
      |                                                                                                                                                                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~^~~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2542,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h:36,
                 from /Users/kevin/github/quadcopter/arduino/simple_test/simple_test.ino:3:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h: In function 'uint16_t mavlink_msg_battery_status_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_battery_status_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h:219:195: warning: taking address of packed member of '__mavlink_battery_status_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  219 |     return mavlink_msg_battery_status_pack(system_id, component_id, msg, battery_status->id, battery_status->battery_function, battery_status->type, battery_status->temperature, battery_status->voltages, battery_status->current_battery, battery_status->current_consumed, battery_status->energy_consumed, battery_status->battery_remaining, battery_status->time_remaining, battery_status->charge_state, battery_status->voltages_ext, battery_status->mode, battery_status->fault_bitmask);
      |                                                                                                                                                                                   ~~~~~~~~~~~~~~~~^~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h:219:418: warning: taking address of packed member of '__mavlink_battery_status_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  219 |     return mavlink_msg_battery_status_pack(system_id, component_id, msg, battery_status->id, battery_status->battery_function, battery_status->type, battery_status->temperature, battery_status->voltages, battery_status->current_battery, battery_status->current_consumed, battery_status->energy_consumed, battery_status->battery_remaining, battery_status->time_remaining, battery_status->charge_state, battery_status->voltages_ext, battery_status->mode, battery_status->fault_bitmask);
      |                                                                                                                                                                                                                                                                                                                                                                                                                  ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h: In function 'uint16_t mavlink_msg_battery_status_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_battery_status_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h:233:206: warning: taking address of packed member of '__mavlink_battery_status_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  233 |     return mavlink_msg_battery_status_pack_chan(system_id, component_id, chan, msg, battery_status->id, battery_status->battery_function, battery_status->type, battery_status->temperature, battery_status->voltages, battery_status->current_battery, battery_status->current_consumed, battery_status->energy_consumed, battery_status->battery_remaining, battery_status->time_remaining, battery_status->charge_state, battery_status->voltages_ext, battery_status->mode, battery_status->fault_bitmask);
      |                                                                                                                                                                                              ~~~~~~~~~~~~~~~~^~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h:233:429: warning: taking address of packed member of '__mavlink_battery_status_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  233 |     return mavlink_msg_battery_status_pack_chan(system_id, component_id, chan, msg, battery_status->id, battery_status->battery_function, battery_status->type, battery_status->temperature, battery_status->voltages, battery_status->current_battery, battery_status->current_consumed, battery_status->energy_consumed, battery_status->battery_remaining, battery_status->time_remaining, battery_status->charge_state, battery_status->voltages_ext, battery_status->mode, battery_status->fault_bitmask);
      |                                                                                                                                                                                                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2544,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h:36,
                 from /Users/kevin/github/quadcopter/arduino/simple_test/simple_test.ino:3:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_landing_target.h: In function 'uint16_t mavlink_msg_landing_target_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_landing_target_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_landing_target.h:218:349: warning: taking address of packed member of '__mavlink_landing_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  218 |     return mavlink_msg_landing_target_pack(system_id, component_id, msg, landing_target->time_usec, landing_target->target_num, landing_target->frame, landing_target->angle_x, landing_target->angle_y, landing_target->distance, landing_target->size_x, landing_target->size_y, landing_target->x, landing_target->y, landing_target->z, landing_target->q, landing_target->type, landing_target->position_valid);
      |                                                                                                                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~^
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_landing_target.h: In function 'uint16_t mavlink_msg_landing_target_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_landing_target_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_landing_target.h:232:360: warning: taking address of packed member of '__mavlink_landing_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  232 |     return mavlink_msg_landing_target_pack_chan(system_id, component_id, chan, msg, landing_target->time_usec, landing_target->target_num, landing_target->frame, landing_target->angle_x, landing_target->angle_y, landing_target->distance, landing_target->size_x, landing_target->size_y, landing_target->x, landing_target->y, landing_target->z, landing_target->q, landing_target->type, landing_target->position_valid);
      |                                                                                                                                                                                                                                                                                                                                                        ~~~~~~~~~~~~~~~~^
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2555,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h:36,
                 from /Users/kevin/github/quadcopter/arduino/simple_test/simple_test.ino:3:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_home_position.h: In function 'uint16_t mavlink_msg_home_position_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_home_position_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_home_position.h:191:218: warning: taking address of packed member of '__mavlink_home_position_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  191 |     return mavlink_msg_home_position_pack(system_id, component_id, msg, home_position->latitude, home_position->longitude, home_position->altitude, home_position->x, home_position->y, home_position->z, home_position->q, home_position->approach_x, home_position->approach_y, home_position->approach_z, home_position->time_usec);
      |                                                                                                                                                                                                           ~~~~~~~~~~~~~~~^
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_home_position.h: In function 'uint16_t mavlink_msg_home_position_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_home_position_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_home_position.h:205:229: warning: taking address of packed member of '__mavlink_home_position_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  205 |     return mavlink_msg_home_position_pack_chan(system_id, component_id, chan, msg, home_position->latitude, home_position->longitude, home_position->altitude, home_position->x, home_position->y, home_position->z, home_position->q, home_position->approach_x, home_position->approach_y, home_position->approach_z, home_position->time_usec);
      |                                                                                                                                                                                                                      ~~~~~~~~~~~~~~~^
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2556,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h:36,
                 from /Users/kevin/github/quadcopter/arduino/simple_test/simple_test.ino:3:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_home_position.h: In function 'uint16_t mavlink_msg_set_home_position_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_set_home_position_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_home_position.h:200:284: warning: taking address of packed member of '__mavlink_set_home_position_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  200 |     return mavlink_msg_set_home_position_pack(system_id, component_id, msg, set_home_position->target_system, set_home_position->latitude, set_home_position->longitude, set_home_position->altitude, set_home_position->x, set_home_position->y, set_home_position->z, set_home_position->q, set_home_position->approach_x, set_home_position->approach_y, set_home_position->approach_z, set_home_position->time_usec);
      |                                                                                                                                                                                                                                                                         ~~~~~~~~~~~~~~~~~~~^
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_home_position.h: In function 'uint16_t mavlink_msg_set_home_position_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_set_home_position_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_home_position.h:214:295: warning: taking address of packed member of '__mavlink_set_home_position_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  214 |     return mavlink_msg_set_home_position_pack_chan(system_id, component_id, chan, msg, set_home_position->target_system, set_home_position->latitude, set_home_position->longitude, set_home_position->altitude, set_home_position->x, set_home_position->y, set_home_position->z, set_home_position->q, set_home_position->approach_x, set_home_position->approach_y, set_home_position->approach_z, set_home_position->time_usec);
      |                                                                                                                                                                                                                                                                                    ~~~~~~~~~~~~~~~~~~~^
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2606,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h:36,
                 from /Users/kevin/github/quadcopter/arduino/simple_test/simple_test.ino:3:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_obstacle_distance.h: In function 'uint16_t mavlink_msg_obstacle_distance_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_obstacle_distance_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_obstacle_distance.h:173:158: warning: taking address of packed member of '__mavlink_obstacle_distance_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  173 |     return mavlink_msg_obstacle_distance_pack(system_id, component_id, msg, obstacle_distance->time_usec, obstacle_distance->sensor_type, obstacle_distance->distances, obstacle_distance->increment, obstacle_distance->min_distance, obstacle_distance->max_distance, obstacle_distance->increment_f, obstacle_distance->angle_offset, obstacle_distance->frame);
      |                                                                                                                                           ~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_obstacle_distance.h: In function 'uint16_t mavlink_msg_obstacle_distance_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_obstacle_distance_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_obstacle_distance.h:187:169: warning: taking address of packed member of '__mavlink_obstacle_distance_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  187 |     return mavlink_msg_obstacle_distance_pack_chan(system_id, component_id, chan, msg, obstacle_distance->time_usec, obstacle_distance->sensor_type, obstacle_distance->distances, obstacle_distance->increment, obstacle_distance->min_distance, obstacle_distance->max_distance, obstacle_distance->increment_f, obstacle_distance->angle_offset, obstacle_distance->frame);
      |                                                                                                                                                      ~~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h:37,
                 from /Users/kevin/github/quadcopter/arduino/simple_test/simple_test.ino:3:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/heartbeat.h: At global scope:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/heartbeat.h:101:3: error: 'elapsedMillis' does not name a type
  101 |   elapsedMillis heartbeat_timer_ms_;
      |   ^~~~~~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h:38,
                 from /Users/kevin/github/quadcopter/arduino/simple_test/simple_test.ino:3:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/telemetry.h:743:3: error: 'elapsedMillis' does not name a type
  743 |   elapsedMillis data_stream_timer_ms_[NUM_DATA_STREAMS_];
      |   ^~~~~~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h:39,
                 from /Users/kevin/github/quadcopter/arduino/simple_test/simple_test.ino:3:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/parameter.h:268:3: error: 'elapsedMillis' does not name a type
  268 |   elapsedMillis param_timer_ms_;
      |   ^~~~~~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/parameter.h: In member function 'void bfs::MavLinkParameter<N>::Update()':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/parameter.h:115:11: error: 'param_timer_ms_' was not declared in this scope
  115 |       if (param_timer_ms_ > PARAM_PERIOD_MS_) {
      |           ^~~~~~~~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h:40,
                 from /Users/kevin/github/quadcopter/arduino/simple_test/simple_test.ino:3:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mission.h: At global scope:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mission.h:166:3: error: 'elapsedMillis' does not name a type
  166 |   elapsedMillis upload_timer_ms_ = UPLOAD_TIMEOUT_MS_;
      |   ^~~~~~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/units/src/units.h:29,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/utm.h:39,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h:42,
                 from /Users/kevin/github/quadcopter/arduino/simple_test/simple_test.ino:3:
/Users/kevin/Documents/Arduino/libraries/units/src/constants.h:37:20: warning: variable templates only available with '-std=c++14' or '-std=gnu++14'
   37 | static constexpr T BFS_PI =
      |                    ^~~~~~
/Users/kevin/Documents/Arduino/libraries/units/src/constants.h:40:20: warning: variable templates only available with '-std=c++14' or '-std=gnu++14'
   40 | static constexpr T BFS_2PI = static_cast<T>(2) *
      |                    ^~~~~~~
/Users/kevin/Documents/Arduino/libraries/units/src/constants.h:44:20: warning: variable templates only available with '-std=c++14' or '-std=gnu++14'
   44 | static constexpr T G_MPS2 = static_cast<T>(9.80665);
      |                    ^~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h:42,
                 from /Users/kevin/github/quadcopter/arduino/simple_test/simple_test.ino:3:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/utm.h:228:3: error: 'elapsedMillis' does not name a type
  228 |   elapsedMillis send_timer_ms_;
      |   ^~~~~~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/utm.h: In member function 'void bfs::MavLinkUtm<N>::Update()':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/utm.h:71:11: error: 'send_timer_ms_' was not declared in this scope; did you mean 'send_timeout_ms_'?
   71 |       if (send_timer_ms_ > send_timeout_ms_) {
      |           ^~~~~~~~~~~~~~
      |           send_timeout_ms_
In file included from /Users/kevin/github/quadcopter/arduino/simple_test/simple_test.ino:3:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h: At global scope:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h:613:3: error: 'elapsedMillis' does not name a type
  613 |   elapsedMillis gcs_link_timer_ms_;
      |   ^~~~~~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h: In member function 'bool bfs::MavLink<N, M>::gcs_link_lost() const':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h:162:15: error: 'gcs_link_timer_ms_' was not declared in this scope
  162 |       return (gcs_link_timer_ms_ > gcs_lost_link_timeout_ms_);
      |               ^~~~~~~~~~~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h: In member function 'void bfs::MavLink<N, M>::HeartbeatHandler(const mavlink_heartbeat_t&)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h:623:7: error: 'gcs_link_timer_ms_' was not declared in this scope
  623 |       gcs_link_timer_ms_ = 0;
      |       ^~~~~~~~~~~~~~~~~~
walchko commented 1 year ago

Adding elapsedMillis from here https://github.com/pfeerick/elapsedMillis I thought would help, but it isn't.

walchko commented 1 year ago

Also have these warnings:

/Users/kevin/Documents/Arduino/libraries/units/src/constants.h:44:20: warning: variable templates only available with '-std=c++14' or '-std=gnu++14'
   44 | static constexpr T G_MPS2 = static_cast<T>(9.80665);

I don't think your units (https://github.com/bolderflight/units) will compile on Arduino. Or is there a way around this c++14 thing?

walchko commented 1 year ago

OK, so I got it to compile, but there are a ton of warnings. I did this, which might not be the best solution.

#if defined(ARDUINO)
#include "Arduino.h"
#include "optional.hpp"  // NOLINT
#include <elapsedMillis.h> // <- added this
#else
#include <optional>
#include "core/core.h"
#endif

all of the remaining warnings:

Using board 'adafruit_itsybitsy_m0' from platform in folder: /Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11
Using core 'arduino' from platform in folder: /Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11
Detecting libraries used...
/Users/kevin/Library/Arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -Werror=return-type -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions "-D__SKETCH_NAME__=\"\"\"simple_test.ino\"\"\"" -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_ITSYBITSY_M0 -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ADAFRUIT -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -Os -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/Core/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/DSP/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS-Atmel/1.2.2/CMSIS/Device/ATMEL/ -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/cores/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/variants/itsybitsy_m0 /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/sketch/simple_test.ino.cpp -o /dev/null
Alternatives for TFmini.h: [TFminiArduino@0.1.1]
ResolveLibrary(TFmini.h)
  -> candidates: [TFminiArduino@0.1.1]
/Users/kevin/Library/Arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -Werror=return-type -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions "-D__SKETCH_NAME__=\"\"\"simple_test.ino\"\"\"" -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_ITSYBITSY_M0 -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ADAFRUIT -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -Os -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/Core/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/DSP/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS-Atmel/1.2.2/CMSIS/Device/ATMEL/ -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/cores/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/variants/itsybitsy_m0 -I/Users/kevin/Documents/Arduino/libraries/TFminiArduino /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/sketch/simple_test.ino.cpp -o /dev/null
Alternatives for Adafruit_NeoPixel.h: [Adafruit NeoPixel@1.10.7]
ResolveLibrary(Adafruit_NeoPixel.h)
  -> candidates: [Adafruit NeoPixel@1.10.7]
/Users/kevin/Library/Arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -Werror=return-type -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions "-D__SKETCH_NAME__=\"\"\"simple_test.ino\"\"\"" -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_ITSYBITSY_M0 -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ADAFRUIT -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -Os -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/Core/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/DSP/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS-Atmel/1.2.2/CMSIS/Device/ATMEL/ -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/cores/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/variants/itsybitsy_m0 -I/Users/kevin/Documents/Arduino/libraries/TFminiArduino -I/Users/kevin/Documents/Arduino/libraries/Adafruit_NeoPixel /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/sketch/simple_test.ino.cpp -o /dev/null
Alternatives for elapsedMillis.h: [elapsedMillis@1.0.6]
ResolveLibrary(elapsedMillis.h)
  -> candidates: [elapsedMillis@1.0.6]
/Users/kevin/Library/Arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -Werror=return-type -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions "-D__SKETCH_NAME__=\"\"\"simple_test.ino\"\"\"" -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_ITSYBITSY_M0 -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ADAFRUIT -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -Os -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/Core/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/DSP/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS-Atmel/1.2.2/CMSIS/Device/ATMEL/ -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/cores/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/variants/itsybitsy_m0 -I/Users/kevin/Documents/Arduino/libraries/TFminiArduino -I/Users/kevin/Documents/Arduino/libraries/Adafruit_NeoPixel -I/Users/kevin/Documents/Arduino/libraries/elapsedMillis /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/sketch/simple_test.ino.cpp -o /dev/null
Alternatives for mavlink.h: [Bolder Flight Systems MAV Link@4.8.9]
ResolveLibrary(mavlink.h)
  -> candidates: [Bolder Flight Systems MAV Link@4.8.9]
/Users/kevin/Library/Arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -Werror=return-type -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions "-D__SKETCH_NAME__=\"\"\"simple_test.ino\"\"\"" -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_ITSYBITSY_M0 -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ADAFRUIT -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -Os -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/Core/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/DSP/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS-Atmel/1.2.2/CMSIS/Device/ATMEL/ -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/cores/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/variants/itsybitsy_m0 -I/Users/kevin/Documents/Arduino/libraries/TFminiArduino -I/Users/kevin/Documents/Arduino/libraries/Adafruit_NeoPixel -I/Users/kevin/Documents/Arduino/libraries/elapsedMillis -I/Users/kevin/Documents/Arduino/libraries/mavlink/src /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/sketch/simple_test.ino.cpp -o /dev/null
Alternatives for units.h: [Bolder Flight Systems Unit Conversions@4.2.1]
ResolveLibrary(units.h)
  -> candidates: [Bolder Flight Systems Unit Conversions@4.2.1]
/Users/kevin/Library/Arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -Werror=return-type -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions "-D__SKETCH_NAME__=\"\"\"simple_test.ino\"\"\"" -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_ITSYBITSY_M0 -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ADAFRUIT -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -Os -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/Core/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/DSP/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS-Atmel/1.2.2/CMSIS/Device/ATMEL/ -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/cores/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/variants/itsybitsy_m0 -I/Users/kevin/Documents/Arduino/libraries/TFminiArduino -I/Users/kevin/Documents/Arduino/libraries/Adafruit_NeoPixel -I/Users/kevin/Documents/Arduino/libraries/elapsedMillis -I/Users/kevin/Documents/Arduino/libraries/mavlink/src -I/Users/kevin/Documents/Arduino/libraries/units/src /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/sketch/simple_test.ino.cpp -o /dev/null
Using cached library dependencies for file: /Users/kevin/Documents/Arduino/libraries/Adafruit_NeoPixel/Adafruit_NeoPixel.cpp
Using cached library dependencies for file: /Users/kevin/Documents/Arduino/libraries/Adafruit_NeoPixel/esp.c
Using cached library dependencies for file: /Users/kevin/Documents/Arduino/libraries/Adafruit_NeoPixel/esp8266.c
Using cached library dependencies for file: /Users/kevin/Documents/Arduino/libraries/Adafruit_NeoPixel/kendyte_k210.c
Using cached library dependencies for file: /Users/kevin/Documents/Arduino/libraries/mavlink/src/heartbeat.cpp
Using cached library dependencies for file: /Users/kevin/Documents/Arduino/libraries/mavlink/src/mission.cpp
Using cached library dependencies for file: /Users/kevin/Documents/Arduino/libraries/mavlink/src/rtcm.cpp
Using cached library dependencies for file: /Users/kevin/Documents/Arduino/libraries/mavlink/src/telemetry.cpp
Generating function prototypes...
/Users/kevin/Library/Arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -Werror=return-type -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions "-D__SKETCH_NAME__=\"\"\"simple_test.ino\"\"\"" -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_ITSYBITSY_M0 -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ADAFRUIT -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -Os -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/Core/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/DSP/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS-Atmel/1.2.2/CMSIS/Device/ATMEL/ -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/cores/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/variants/itsybitsy_m0 -I/Users/kevin/Documents/Arduino/libraries/TFminiArduino -I/Users/kevin/Documents/Arduino/libraries/Adafruit_NeoPixel -I/Users/kevin/Documents/Arduino/libraries/elapsedMillis -I/Users/kevin/Documents/Arduino/libraries/mavlink/src -I/Users/kevin/Documents/Arduino/libraries/units/src /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/sketch/simple_test.ino.cpp -o /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/preproc/ctags_target_for_gcc_minus_e.cpp
/Users/kevin/Library/Arduino15/packages/builtin/tools/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/Users/kevin/Library/Arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -Werror=return-type -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD "-D__SKETCH_NAME__=\"\"\"simple_test.ino\"\"\"" -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_ITSYBITSY_M0 -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ADAFRUIT -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -Os -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/Core/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/DSP/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS-Atmel/1.2.2/CMSIS/Device/ATMEL/ -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/cores/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/variants/itsybitsy_m0 -I/Users/kevin/Documents/Arduino/libraries/TFminiArduino -I/Users/kevin/Documents/Arduino/libraries/Adafruit_NeoPixel -I/Users/kevin/Documents/Arduino/libraries/elapsedMillis -I/Users/kevin/Documents/Arduino/libraries/mavlink/src -I/Users/kevin/Documents/Arduino/libraries/units/src /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/sketch/simple_test.ino.cpp -o /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/sketch/simple_test.ino.cpp.o
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2485,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h:37,
                 from /Users/kevin/github/quadcopter/arduino/simple_test/simple_test.ino:4:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h: In function 'uint16_t mavlink_msg_set_attitude_target_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_set_attitude_target_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h:183:242: warning: taking address of packed member of '__mavlink_set_attitude_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  183 |     return mavlink_msg_set_attitude_target_pack(system_id, component_id, msg, set_attitude_target->time_boot_ms, set_attitude_target->target_system, set_attitude_target->target_component, set_attitude_target->type_mask, set_attitude_target->q, set_attitude_target->body_roll_rate, set_attitude_target->body_pitch_rate, set_attitude_target->body_yaw_rate, set_attitude_target->thrust, set_attitude_target->thrust_body);
      |                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~~~~~^
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2485,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h:37,
                 from /Users/kevin/github/quadcopter/arduino/simple_test/simple_test.ino:4:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h:183:406: warning: taking address of packed member of '__mavlink_set_attitude_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  183 |     return mavlink_msg_set_attitude_target_pack(system_id, component_id, msg, set_attitude_target->time_boot_ms, set_attitude_target->target_system, set_attitude_target->target_component, set_attitude_target->type_mask, set_attitude_target->q, set_attitude_target->body_roll_rate, set_attitude_target->body_pitch_rate, set_attitude_target->body_yaw_rate, set_attitude_target->thrust, set_attitude_target->thrust_body);
      |                                                                                                                                                                                                                                                                                                                                                                                                 ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h: In function 'uint16_t mavlink_msg_set_attitude_target_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_set_attitude_target_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h:197:253: warning: taking address of packed member of '__mavlink_set_attitude_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  197 |     return mavlink_msg_set_attitude_target_pack_chan(system_id, component_id, chan, msg, set_attitude_target->time_boot_ms, set_attitude_target->target_system, set_attitude_target->target_component, set_attitude_target->type_mask, set_attitude_target->q, set_attitude_target->body_roll_rate, set_attitude_target->body_pitch_rate, set_attitude_target->body_yaw_rate, set_attitude_target->thrust, set_attitude_target->thrust_body);
      |                                                                                                                                                                                                                                        ~~~~~~~~~~~~~~~~~~~~~^
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h:197:417: warning: taking address of packed member of '__mavlink_set_attitude_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  197 |     return mavlink_msg_set_attitude_target_pack_chan(system_id, component_id, chan, msg, set_attitude_target->time_boot_ms, set_attitude_target->target_system, set_attitude_target->target_component, set_attitude_target->type_mask, set_attitude_target->q, set_attitude_target->body_roll_rate, set_attitude_target->body_pitch_rate, set_attitude_target->body_yaw_rate, set_attitude_target->thrust, set_attitude_target->thrust_body);
      |                                                                                                                                                                                                                                                                                                                                                                                                            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2528,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h:37,
                 from /Users/kevin/github/quadcopter/arduino/simple_test/simple_test.ino:4:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_distance_sensor.h: In function 'uint16_t mavlink_msg_distance_sensor_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_distance_sensor_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_distance_sensor.h:200:387: warning: taking address of packed member of '__mavlink_distance_sensor_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  200 |     return mavlink_msg_distance_sensor_pack(system_id, component_id, msg, distance_sensor->time_boot_ms, distance_sensor->min_distance, distance_sensor->max_distance, distance_sensor->current_distance, distance_sensor->type, distance_sensor->id, distance_sensor->orientation, distance_sensor->covariance, distance_sensor->horizontal_fov, distance_sensor->vertical_fov, distance_sensor->quaternion, distance_sensor->signal_quality);
      |                                                                                                                                                                                                                                                                                                                                                                                  ~~~~~~~~~~~~~~~~~^~~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_distance_sensor.h: In function 'uint16_t mavlink_msg_distance_sensor_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_distance_sensor_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_distance_sensor.h:214:398: warning: taking address of packed member of '__mavlink_distance_sensor_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  214 |     return mavlink_msg_distance_sensor_pack_chan(system_id, component_id, chan, msg, distance_sensor->time_boot_ms, distance_sensor->min_distance, distance_sensor->max_distance, distance_sensor->current_distance, distance_sensor->type, distance_sensor->id, distance_sensor->orientation, distance_sensor->covariance, distance_sensor->horizontal_fov, distance_sensor->vertical_fov, distance_sensor->quaternion, distance_sensor->signal_quality);
      |                                                                                                                                                                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~^~~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2542,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h:37,
                 from /Users/kevin/github/quadcopter/arduino/simple_test/simple_test.ino:4:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h: In function 'uint16_t mavlink_msg_battery_status_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_battery_status_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h:219:195: warning: taking address of packed member of '__mavlink_battery_status_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  219 |     return mavlink_msg_battery_status_pack(system_id, component_id, msg, battery_status->id, battery_status->battery_function, battery_status->type, battery_status->temperature, battery_status->voltages, battery_status->current_battery, battery_status->current_consumed, battery_status->energy_consumed, battery_status->battery_remaining, battery_status->time_remaining, battery_status->charge_state, battery_status->voltages_ext, battery_status->mode, battery_status->fault_bitmask);
      |                                                                                                                                                                                   ~~~~~~~~~~~~~~~~^~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h:219:418: warning: taking address of packed member of '__mavlink_battery_status_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  219 |     return mavlink_msg_battery_status_pack(system_id, component_id, msg, battery_status->id, battery_status->battery_function, battery_status->type, battery_status->temperature, battery_status->voltages, battery_status->current_battery, battery_status->current_consumed, battery_status->energy_consumed, battery_status->battery_remaining, battery_status->time_remaining, battery_status->charge_state, battery_status->voltages_ext, battery_status->mode, battery_status->fault_bitmask);
      |                                                                                                                                                                                                                                                                                                                                                                                                                  ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h: In function 'uint16_t mavlink_msg_battery_status_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_battery_status_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h:233:206: warning: taking address of packed member of '__mavlink_battery_status_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  233 |     return mavlink_msg_battery_status_pack_chan(system_id, component_id, chan, msg, battery_status->id, battery_status->battery_function, battery_status->type, battery_status->temperature, battery_status->voltages, battery_status->current_battery, battery_status->current_consumed, battery_status->energy_consumed, battery_status->battery_remaining, battery_status->time_remaining, battery_status->charge_state, battery_status->voltages_ext, battery_status->mode, battery_status->fault_bitmask);
      |                                                                                                                                                                                              ~~~~~~~~~~~~~~~~^~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h:233:429: warning: taking address of packed member of '__mavlink_battery_status_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  233 |     return mavlink_msg_battery_status_pack_chan(system_id, component_id, chan, msg, battery_status->id, battery_status->battery_function, battery_status->type, battery_status->temperature, battery_status->voltages, battery_status->current_battery, battery_status->current_consumed, battery_status->energy_consumed, battery_status->battery_remaining, battery_status->time_remaining, battery_status->charge_state, battery_status->voltages_ext, battery_status->mode, battery_status->fault_bitmask);
      |                                                                                                                                                                                                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2544,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h:37,
                 from /Users/kevin/github/quadcopter/arduino/simple_test/simple_test.ino:4:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_landing_target.h: In function 'uint16_t mavlink_msg_landing_target_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_landing_target_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_landing_target.h:218:349: warning: taking address of packed member of '__mavlink_landing_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  218 |     return mavlink_msg_landing_target_pack(system_id, component_id, msg, landing_target->time_usec, landing_target->target_num, landing_target->frame, landing_target->angle_x, landing_target->angle_y, landing_target->distance, landing_target->size_x, landing_target->size_y, landing_target->x, landing_target->y, landing_target->z, landing_target->q, landing_target->type, landing_target->position_valid);
      |                                                                                                                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~^
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_landing_target.h: In function 'uint16_t mavlink_msg_landing_target_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_landing_target_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_landing_target.h:232:360: warning: taking address of packed member of '__mavlink_landing_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  232 |     return mavlink_msg_landing_target_pack_chan(system_id, component_id, chan, msg, landing_target->time_usec, landing_target->target_num, landing_target->frame, landing_target->angle_x, landing_target->angle_y, landing_target->distance, landing_target->size_x, landing_target->size_y, landing_target->x, landing_target->y, landing_target->z, landing_target->q, landing_target->type, landing_target->position_valid);
      |                                                                                                                                                                                                                                                                                                                                                        ~~~~~~~~~~~~~~~~^
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2555,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h:37,
                 from /Users/kevin/github/quadcopter/arduino/simple_test/simple_test.ino:4:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_home_position.h: In function 'uint16_t mavlink_msg_home_position_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_home_position_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_home_position.h:191:218: warning: taking address of packed member of '__mavlink_home_position_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  191 |     return mavlink_msg_home_position_pack(system_id, component_id, msg, home_position->latitude, home_position->longitude, home_position->altitude, home_position->x, home_position->y, home_position->z, home_position->q, home_position->approach_x, home_position->approach_y, home_position->approach_z, home_position->time_usec);
      |                                                                                                                                                                                                           ~~~~~~~~~~~~~~~^
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_home_position.h: In function 'uint16_t mavlink_msg_home_position_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_home_position_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_home_position.h:205:229: warning: taking address of packed member of '__mavlink_home_position_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  205 |     return mavlink_msg_home_position_pack_chan(system_id, component_id, chan, msg, home_position->latitude, home_position->longitude, home_position->altitude, home_position->x, home_position->y, home_position->z, home_position->q, home_position->approach_x, home_position->approach_y, home_position->approach_z, home_position->time_usec);
      |                                                                                                                                                                                                                      ~~~~~~~~~~~~~~~^
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2556,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h:37,
                 from /Users/kevin/github/quadcopter/arduino/simple_test/simple_test.ino:4:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_home_position.h: In function 'uint16_t mavlink_msg_set_home_position_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_set_home_position_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_home_position.h:200:284: warning: taking address of packed member of '__mavlink_set_home_position_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  200 |     return mavlink_msg_set_home_position_pack(system_id, component_id, msg, set_home_position->target_system, set_home_position->latitude, set_home_position->longitude, set_home_position->altitude, set_home_position->x, set_home_position->y, set_home_position->z, set_home_position->q, set_home_position->approach_x, set_home_position->approach_y, set_home_position->approach_z, set_home_position->time_usec);
      |                                                                                                                                                                                                                                                                         ~~~~~~~~~~~~~~~~~~~^
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_home_position.h: In function 'uint16_t mavlink_msg_set_home_position_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_set_home_position_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_home_position.h:214:295: warning: taking address of packed member of '__mavlink_set_home_position_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  214 |     return mavlink_msg_set_home_position_pack_chan(system_id, component_id, chan, msg, set_home_position->target_system, set_home_position->latitude, set_home_position->longitude, set_home_position->altitude, set_home_position->x, set_home_position->y, set_home_position->z, set_home_position->q, set_home_position->approach_x, set_home_position->approach_y, set_home_position->approach_z, set_home_position->time_usec);
      |                                                                                                                                                                                                                                                                                    ~~~~~~~~~~~~~~~~~~~^
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2606,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h:37,
                 from /Users/kevin/github/quadcopter/arduino/simple_test/simple_test.ino:4:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_obstacle_distance.h: In function 'uint16_t mavlink_msg_obstacle_distance_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_obstacle_distance_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_obstacle_distance.h:173:158: warning: taking address of packed member of '__mavlink_obstacle_distance_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  173 |     return mavlink_msg_obstacle_distance_pack(system_id, component_id, msg, obstacle_distance->time_usec, obstacle_distance->sensor_type, obstacle_distance->distances, obstacle_distance->increment, obstacle_distance->min_distance, obstacle_distance->max_distance, obstacle_distance->increment_f, obstacle_distance->angle_offset, obstacle_distance->frame);
      |                                                                                                                                           ~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_obstacle_distance.h: In function 'uint16_t mavlink_msg_obstacle_distance_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_obstacle_distance_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_obstacle_distance.h:187:169: warning: taking address of packed member of '__mavlink_obstacle_distance_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  187 |     return mavlink_msg_obstacle_distance_pack_chan(system_id, component_id, chan, msg, obstacle_distance->time_usec, obstacle_distance->sensor_type, obstacle_distance->distances, obstacle_distance->increment, obstacle_distance->min_distance, obstacle_distance->max_distance, obstacle_distance->increment_f, obstacle_distance->angle_offset, obstacle_distance->frame);
      |                                                                                                                                                      ~~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/units/src/units.h:29,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/utm.h:40,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink.h:43,
                 from /Users/kevin/github/quadcopter/arduino/simple_test/simple_test.ino:4:
/Users/kevin/Documents/Arduino/libraries/units/src/constants.h: At global scope:
/Users/kevin/Documents/Arduino/libraries/units/src/constants.h:37:20: warning: variable templates only available with '-std=c++14' or '-std=gnu++14'
   37 | static constexpr T BFS_PI =
      |                    ^~~~~~
/Users/kevin/Documents/Arduino/libraries/units/src/constants.h:40:20: warning: variable templates only available with '-std=c++14' or '-std=gnu++14'
   40 | static constexpr T BFS_2PI = static_cast<T>(2) *
      |                    ^~~~~~~
/Users/kevin/Documents/Arduino/libraries/units/src/constants.h:44:20: warning: variable templates only available with '-std=c++14' or '-std=gnu++14'
   44 | static constexpr T G_MPS2 = static_cast<T>(9.80665);
      |                    ^~~~~~
Compiling libraries...
Compiling library "TFminiArduino"
Compiling library "Adafruit NeoPixel"
/Users/kevin/Library/Arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -Werror=return-type -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD "-D__SKETCH_NAME__=\"\"\"simple_test.ino\"\"\"" -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_ITSYBITSY_M0 -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ADAFRUIT -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -Os -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/Core/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/DSP/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS-Atmel/1.2.2/CMSIS/Device/ATMEL/ -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/cores/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/variants/itsybitsy_m0 -I/Users/kevin/Documents/Arduino/libraries/TFminiArduino -I/Users/kevin/Documents/Arduino/libraries/Adafruit_NeoPixel -I/Users/kevin/Documents/Arduino/libraries/elapsedMillis -I/Users/kevin/Documents/Arduino/libraries/mavlink/src -I/Users/kevin/Documents/Arduino/libraries/units/src /Users/kevin/Documents/Arduino/libraries/Adafruit_NeoPixel/Adafruit_NeoPixel.cpp -o /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/libraries/Adafruit_NeoPixel/Adafruit_NeoPixel.cpp.o
/Users/kevin/Library/Arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-gcc -mcpu=cortex-m0plus -mthumb -c -g -Os -Werror=return-type -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD "-D__SKETCH_NAME__=\"\"\"simple_test.ino\"\"\"" -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_ITSYBITSY_M0 -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ADAFRUIT -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -Os -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/Core/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/DSP/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS-Atmel/1.2.2/CMSIS/Device/ATMEL/ -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/cores/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/variants/itsybitsy_m0 -I/Users/kevin/Documents/Arduino/libraries/TFminiArduino -I/Users/kevin/Documents/Arduino/libraries/Adafruit_NeoPixel -I/Users/kevin/Documents/Arduino/libraries/elapsedMillis -I/Users/kevin/Documents/Arduino/libraries/mavlink/src -I/Users/kevin/Documents/Arduino/libraries/units/src /Users/kevin/Documents/Arduino/libraries/Adafruit_NeoPixel/kendyte_k210.c -o /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/libraries/Adafruit_NeoPixel/kendyte_k210.c.o
/Users/kevin/Library/Arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-gcc -mcpu=cortex-m0plus -mthumb -c -g -Os -Werror=return-type -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD "-D__SKETCH_NAME__=\"\"\"simple_test.ino\"\"\"" -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_ITSYBITSY_M0 -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ADAFRUIT -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -Os -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/Core/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/DSP/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS-Atmel/1.2.2/CMSIS/Device/ATMEL/ -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/cores/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/variants/itsybitsy_m0 -I/Users/kevin/Documents/Arduino/libraries/TFminiArduino -I/Users/kevin/Documents/Arduino/libraries/Adafruit_NeoPixel -I/Users/kevin/Documents/Arduino/libraries/elapsedMillis -I/Users/kevin/Documents/Arduino/libraries/mavlink/src -I/Users/kevin/Documents/Arduino/libraries/units/src /Users/kevin/Documents/Arduino/libraries/Adafruit_NeoPixel/esp.c -o /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/libraries/Adafruit_NeoPixel/esp.c.o
/Users/kevin/Library/Arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-gcc -mcpu=cortex-m0plus -mthumb -c -g -Os -Werror=return-type -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD "-D__SKETCH_NAME__=\"\"\"simple_test.ino\"\"\"" -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_ITSYBITSY_M0 -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ADAFRUIT -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -Os -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/Core/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/DSP/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS-Atmel/1.2.2/CMSIS/Device/ATMEL/ -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/cores/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/variants/itsybitsy_m0 -I/Users/kevin/Documents/Arduino/libraries/TFminiArduino -I/Users/kevin/Documents/Arduino/libraries/Adafruit_NeoPixel -I/Users/kevin/Documents/Arduino/libraries/elapsedMillis -I/Users/kevin/Documents/Arduino/libraries/mavlink/src -I/Users/kevin/Documents/Arduino/libraries/units/src /Users/kevin/Documents/Arduino/libraries/Adafruit_NeoPixel/esp8266.c -o /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/libraries/Adafruit_NeoPixel/esp8266.c.o
Compiling library "elapsedMillis"
Compiling library "Bolder Flight Systems MAV Link"
/Users/kevin/Library/Arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -Werror=return-type -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD "-D__SKETCH_NAME__=\"\"\"simple_test.ino\"\"\"" -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_ITSYBITSY_M0 -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ADAFRUIT -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -Os -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/Core/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/DSP/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS-Atmel/1.2.2/CMSIS/Device/ATMEL/ -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/cores/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/variants/itsybitsy_m0 -I/Users/kevin/Documents/Arduino/libraries/TFminiArduino -I/Users/kevin/Documents/Arduino/libraries/Adafruit_NeoPixel -I/Users/kevin/Documents/Arduino/libraries/elapsedMillis -I/Users/kevin/Documents/Arduino/libraries/mavlink/src -I/Users/kevin/Documents/Arduino/libraries/units/src /Users/kevin/Documents/Arduino/libraries/mavlink/src/heartbeat.cpp -o /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/libraries/mavlink/heartbeat.cpp.o
/Users/kevin/Library/Arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -Werror=return-type -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD "-D__SKETCH_NAME__=\"\"\"simple_test.ino\"\"\"" -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_ITSYBITSY_M0 -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ADAFRUIT -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -Os -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/Core/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/DSP/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS-Atmel/1.2.2/CMSIS/Device/ATMEL/ -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/cores/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/variants/itsybitsy_m0 -I/Users/kevin/Documents/Arduino/libraries/TFminiArduino -I/Users/kevin/Documents/Arduino/libraries/Adafruit_NeoPixel -I/Users/kevin/Documents/Arduino/libraries/elapsedMillis -I/Users/kevin/Documents/Arduino/libraries/mavlink/src -I/Users/kevin/Documents/Arduino/libraries/units/src /Users/kevin/Documents/Arduino/libraries/mavlink/src/mission.cpp -o /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/libraries/mavlink/mission.cpp.o
/Users/kevin/Library/Arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -Werror=return-type -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD "-D__SKETCH_NAME__=\"\"\"simple_test.ino\"\"\"" -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_ITSYBITSY_M0 -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ADAFRUIT -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -Os -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/Core/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/DSP/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS-Atmel/1.2.2/CMSIS/Device/ATMEL/ -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/cores/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/variants/itsybitsy_m0 -I/Users/kevin/Documents/Arduino/libraries/TFminiArduino -I/Users/kevin/Documents/Arduino/libraries/Adafruit_NeoPixel -I/Users/kevin/Documents/Arduino/libraries/elapsedMillis -I/Users/kevin/Documents/Arduino/libraries/mavlink/src -I/Users/kevin/Documents/Arduino/libraries/units/src /Users/kevin/Documents/Arduino/libraries/mavlink/src/telemetry.cpp -o /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/libraries/mavlink/telemetry.cpp.o
/Users/kevin/Library/Arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -c -g -Os -Werror=return-type -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD "-D__SKETCH_NAME__=\"\"\"simple_test.ino\"\"\"" -DF_CPU=48000000L -DARDUINO=10607 -DARDUINO_ITSYBITSY_M0 -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ADAFRUIT -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -Os -D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0 -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x800F -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy M0 Express\"" -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/libraries/Adafruit_TinyUSB_Arduino/src/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/Core/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/DSP/Include/ -I/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS-Atmel/1.2.2/CMSIS/Device/ATMEL/ -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/cores/arduino -I/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/variants/itsybitsy_m0 -I/Users/kevin/Documents/Arduino/libraries/TFminiArduino -I/Users/kevin/Documents/Arduino/libraries/Adafruit_NeoPixel -I/Users/kevin/Documents/Arduino/libraries/elapsedMillis -I/Users/kevin/Documents/Arduino/libraries/mavlink/src -I/Users/kevin/Documents/Arduino/libraries/units/src /Users/kevin/Documents/Arduino/libraries/mavlink/src/rtcm.cpp -o /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/libraries/mavlink/rtcm.cpp.o
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2485,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/rtcm.h:36,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/rtcm.cpp:31:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h: In function 'uint16_t mavlink_msg_set_attitude_target_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_set_attitude_target_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h:183:242: warning: taking address of packed member of '__mavlink_set_attitude_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  183 |     return mavlink_msg_set_attitude_target_pack(system_id, component_id, msg, set_attitude_target->time_boot_ms, set_attitude_target->target_system, set_attitude_target->target_component, set_attitude_target->type_mask, set_attitude_target->q, set_attitude_target->body_roll_rate, set_attitude_target->body_pitch_rate, set_attitude_target->body_yaw_rate, set_attitude_target->thrust, set_attitude_target->thrust_body);
      |                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~~~~~^
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2485,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/rtcm.h:36,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/rtcm.cpp:31:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h:183:406: warning: taking address of packed member of '__mavlink_set_attitude_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  183 |     return mavlink_msg_set_attitude_target_pack(system_id, component_id, msg, set_attitude_target->time_boot_ms, set_attitude_target->target_system, set_attitude_target->target_component, set_attitude_target->type_mask, set_attitude_target->q, set_attitude_target->body_roll_rate, set_attitude_target->body_pitch_rate, set_attitude_target->body_yaw_rate, set_attitude_target->thrust, set_attitude_target->thrust_body);
      |                                                                                                                                                                                                                                                                                                                                                                                                 ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h: In function 'uint16_t mavlink_msg_set_attitude_target_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_set_attitude_target_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h:197:253: warning: taking address of packed member of '__mavlink_set_attitude_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  197 |     return mavlink_msg_set_attitude_target_pack_chan(system_id, component_id, chan, msg, set_attitude_target->time_boot_ms, set_attitude_target->target_system, set_attitude_target->target_component, set_attitude_target->type_mask, set_attitude_target->q, set_attitude_target->body_roll_rate, set_attitude_target->body_pitch_rate, set_attitude_target->body_yaw_rate, set_attitude_target->thrust, set_attitude_target->thrust_body);
      |                                                                                                                                                                                                                                        ~~~~~~~~~~~~~~~~~~~~~^
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h:197:417: warning: taking address of packed member of '__mavlink_set_attitude_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  197 |     return mavlink_msg_set_attitude_target_pack_chan(system_id, component_id, chan, msg, set_attitude_target->time_boot_ms, set_attitude_target->target_system, set_attitude_target->target_component, set_attitude_target->type_mask, set_attitude_target->q, set_attitude_target->body_roll_rate, set_attitude_target->body_pitch_rate, set_attitude_target->body_yaw_rate, set_attitude_target->thrust, set_attitude_target->thrust_body);
      |                                                                                                                                                                                                                                                                                                                                                                                                            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2485,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/heartbeat.h:36,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/heartbeat.cpp:31:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h: In function 'uint16_t mavlink_msg_set_attitude_target_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_set_attitude_target_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h:183:242: warning: taking address of packed member of '__mavlink_set_attitude_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  183 |     return mavlink_msg_set_attitude_target_pack(system_id, component_id, msg, set_attitude_target->time_boot_ms, set_attitude_target->target_system, set_attitude_target->target_component, set_attitude_target->type_mask, set_attitude_target->q, set_attitude_target->body_roll_rate, set_attitude_target->body_pitch_rate, set_attitude_target->body_yaw_rate, set_attitude_target->thrust, set_attitude_target->thrust_body);
      |                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~~~~~^
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2485,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/heartbeat.h:36,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/heartbeat.cpp:31:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h:183:406: warning: taking address of packed member of '__mavlink_set_attitude_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  183 |     return mavlink_msg_set_attitude_target_pack(system_id, component_id, msg, set_attitude_target->time_boot_ms, set_attitude_target->target_system, set_attitude_target->target_component, set_attitude_target->type_mask, set_attitude_target->q, set_attitude_target->body_roll_rate, set_attitude_target->body_pitch_rate, set_attitude_target->body_yaw_rate, set_attitude_target->thrust, set_attitude_target->thrust_body);
      |                                                                                                                                                                                                                                                                                                                                                                                                 ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h: In function 'uint16_t mavlink_msg_set_attitude_target_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_set_attitude_target_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h:197:253: warning: taking address of packed member of '__mavlink_set_attitude_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  197 |     return mavlink_msg_set_attitude_target_pack_chan(system_id, component_id, chan, msg, set_attitude_target->time_boot_ms, set_attitude_target->target_system, set_attitude_target->target_component, set_attitude_target->type_mask, set_attitude_target->q, set_attitude_target->body_roll_rate, set_attitude_target->body_pitch_rate, set_attitude_target->body_yaw_rate, set_attitude_target->thrust, set_attitude_target->thrust_body);
      |                                                                                                                                                                                                                                        ~~~~~~~~~~~~~~~~~~~~~^
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h:197:417: warning: taking address of packed member of '__mavlink_set_attitude_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  197 |     return mavlink_msg_set_attitude_target_pack_chan(system_id, component_id, chan, msg, set_attitude_target->time_boot_ms, set_attitude_target->target_system, set_attitude_target->target_component, set_attitude_target->type_mask, set_attitude_target->q, set_attitude_target->body_roll_rate, set_attitude_target->body_pitch_rate, set_attitude_target->body_yaw_rate, set_attitude_target->thrust, set_attitude_target->thrust_body);
      |                                                                                                                                                                                                                                                                                                                                                                                                            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2485,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mission.h:36,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mission.cpp:31:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h: In function 'uint16_t mavlink_msg_set_attitude_target_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_set_attitude_target_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h:183:242: warning: taking address of packed member of '__mavlink_set_attitude_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  183 |     return mavlink_msg_set_attitude_target_pack(system_id, component_id, msg, set_attitude_target->time_boot_ms, set_attitude_target->target_system, set_attitude_target->target_component, set_attitude_target->type_mask, set_attitude_target->q, set_attitude_target->body_roll_rate, set_attitude_target->body_pitch_rate, set_attitude_target->body_yaw_rate, set_attitude_target->thrust, set_attitude_target->thrust_body);
      |                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~~~~~^
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2485,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mission.h:36,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mission.cpp:31:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h:183:406: warning: taking address of packed member of '__mavlink_set_attitude_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  183 |     return mavlink_msg_set_attitude_target_pack(system_id, component_id, msg, set_attitude_target->time_boot_ms, set_attitude_target->target_system, set_attitude_target->target_component, set_attitude_target->type_mask, set_attitude_target->q, set_attitude_target->body_roll_rate, set_attitude_target->body_pitch_rate, set_attitude_target->body_yaw_rate, set_attitude_target->thrust, set_attitude_target->thrust_body);
      |                                                                                                                                                                                                                                                                                                                                                                                                 ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h: In function 'uint16_t mavlink_msg_set_attitude_target_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_set_attitude_target_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h:197:253: warning: taking address of packed member of '__mavlink_set_attitude_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  197 |     return mavlink_msg_set_attitude_target_pack_chan(system_id, component_id, chan, msg, set_attitude_target->time_boot_ms, set_attitude_target->target_system, set_attitude_target->target_component, set_attitude_target->type_mask, set_attitude_target->q, set_attitude_target->body_roll_rate, set_attitude_target->body_pitch_rate, set_attitude_target->body_yaw_rate, set_attitude_target->thrust, set_attitude_target->thrust_body);
      |                                                                                                                                                                                                                                        ~~~~~~~~~~~~~~~~~~~~~^
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h:197:417: warning: taking address of packed member of '__mavlink_set_attitude_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  197 |     return mavlink_msg_set_attitude_target_pack_chan(system_id, component_id, chan, msg, set_attitude_target->time_boot_ms, set_attitude_target->target_system, set_attitude_target->target_component, set_attitude_target->type_mask, set_attitude_target->q, set_attitude_target->body_roll_rate, set_attitude_target->body_pitch_rate, set_attitude_target->body_yaw_rate, set_attitude_target->thrust, set_attitude_target->thrust_body);
      |                                                                                                                                                                                                                                                                                                                                                                                                            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2528,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/rtcm.h:36,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/rtcm.cpp:31:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_distance_sensor.h: In function 'uint16_t mavlink_msg_distance_sensor_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_distance_sensor_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_distance_sensor.h:200:387: warning: taking address of packed member of '__mavlink_distance_sensor_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  200 |     return mavlink_msg_distance_sensor_pack(system_id, component_id, msg, distance_sensor->time_boot_ms, distance_sensor->min_distance, distance_sensor->max_distance, distance_sensor->current_distance, distance_sensor->type, distance_sensor->id, distance_sensor->orientation, distance_sensor->covariance, distance_sensor->horizontal_fov, distance_sensor->vertical_fov, distance_sensor->quaternion, distance_sensor->signal_quality);
      |                                                                                                                                                                                                                                                                                                                                                                                  ~~~~~~~~~~~~~~~~~^~~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_distance_sensor.h: In function 'uint16_t mavlink_msg_distance_sensor_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_distance_sensor_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_distance_sensor.h:214:398: warning: taking address of packed member of '__mavlink_distance_sensor_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  214 |     return mavlink_msg_distance_sensor_pack_chan(system_id, component_id, chan, msg, distance_sensor->time_boot_ms, distance_sensor->min_distance, distance_sensor->max_distance, distance_sensor->current_distance, distance_sensor->type, distance_sensor->id, distance_sensor->orientation, distance_sensor->covariance, distance_sensor->horizontal_fov, distance_sensor->vertical_fov, distance_sensor->quaternion, distance_sensor->signal_quality);
      |                                                                                                                                                                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~^~~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2542,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/rtcm.h:36,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/rtcm.cpp:31:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h: In function 'uint16_t mavlink_msg_battery_status_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_battery_status_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h:219:195: warning: taking address of packed member of '__mavlink_battery_status_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  219 |     return mavlink_msg_battery_status_pack(system_id, component_id, msg, battery_status->id, battery_status->battery_function, battery_status->type, battery_status->temperature, battery_status->voltages, battery_status->current_battery, battery_status->current_consumed, battery_status->energy_consumed, battery_status->battery_remaining, battery_status->time_remaining, battery_status->charge_state, battery_status->voltages_ext, battery_status->mode, battery_status->fault_bitmask);
      |                                                                                                                                                                                   ~~~~~~~~~~~~~~~~^~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h:219:418: warning: taking address of packed member of '__mavlink_battery_status_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  219 |     return mavlink_msg_battery_status_pack(system_id, component_id, msg, battery_status->id, battery_status->battery_function, battery_status->type, battery_status->temperature, battery_status->voltages, battery_status->current_battery, battery_status->current_consumed, battery_status->energy_consumed, battery_status->battery_remaining, battery_status->time_remaining, battery_status->charge_state, battery_status->voltages_ext, battery_status->mode, battery_status->fault_bitmask);
      |                                                                                                                                                                                                                                                                                                                                                                                                                  ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h: In function 'uint16_t mavlink_msg_battery_status_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_battery_status_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h:233:206: warning: taking address of packed member of '__mavlink_battery_status_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  233 |     return mavlink_msg_battery_status_pack_chan(system_id, component_id, chan, msg, battery_status->id, battery_status->battery_function, battery_status->type, battery_status->temperature, battery_status->voltages, battery_status->current_battery, battery_status->current_consumed, battery_status->energy_consumed, battery_status->battery_remaining, battery_status->time_remaining, battery_status->charge_state, battery_status->voltages_ext, battery_status->mode, battery_status->fault_bitmask);
      |                                                                                                                                                                                              ~~~~~~~~~~~~~~~~^~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h:233:429: warning: taking address of packed member of '__mavlink_battery_status_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  233 |     return mavlink_msg_battery_status_pack_chan(system_id, component_id, chan, msg, battery_status->id, battery_status->battery_function, battery_status->type, battery_status->temperature, battery_status->voltages, battery_status->current_battery, battery_status->current_consumed, battery_status->energy_consumed, battery_status->battery_remaining, battery_status->time_remaining, battery_status->charge_state, battery_status->voltages_ext, battery_status->mode, battery_status->fault_bitmask);
      |                                                                                                                                                                                                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2544,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/rtcm.h:36,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/rtcm.cpp:31:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_landing_target.h: In function 'uint16_t mavlink_msg_landing_target_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_landing_target_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_landing_target.h:218:349: warning: taking address of packed member of '__mavlink_landing_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  218 |     return mavlink_msg_landing_target_pack(system_id, component_id, msg, landing_target->time_usec, landing_target->target_num, landing_target->frame, landing_target->angle_x, landing_target->angle_y, landing_target->distance, landing_target->size_x, landing_target->size_y, landing_target->x, landing_target->y, landing_target->z, landing_target->q, landing_target->type, landing_target->position_valid);
      |                                                                                                                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~^
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_landing_target.h: In function 'uint16_t mavlink_msg_landing_target_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_landing_target_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_landing_target.h:232:360: warning: taking address of packed member of '__mavlink_landing_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  232 |     return mavlink_msg_landing_target_pack_chan(system_id, component_id, chan, msg, landing_target->time_usec, landing_target->target_num, landing_target->frame, landing_target->angle_x, landing_target->angle_y, landing_target->distance, landing_target->size_x, landing_target->size_y, landing_target->x, landing_target->y, landing_target->z, landing_target->q, landing_target->type, landing_target->position_valid);
      |                                                                                                                                                                                                                                                                                                                                                        ~~~~~~~~~~~~~~~~^
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2528,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/heartbeat.h:36,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/heartbeat.cpp:31:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_distance_sensor.h: In function 'uint16_t mavlink_msg_distance_sensor_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_distance_sensor_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_distance_sensor.h:200:387: warning: taking address of packed member of '__mavlink_distance_sensor_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  200 |     return mavlink_msg_distance_sensor_pack(system_id, component_id, msg, distance_sensor->time_boot_ms, distance_sensor->min_distance, distance_sensor->max_distance, distance_sensor->current_distance, distance_sensor->type, distance_sensor->id, distance_sensor->orientation, distance_sensor->covariance, distance_sensor->horizontal_fov, distance_sensor->vertical_fov, distance_sensor->quaternion, distance_sensor->signal_quality);
      |                                                                                                                                                                                                                                                                                                                                                                                  ~~~~~~~~~~~~~~~~~^~~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_distance_sensor.h: In function 'uint16_t mavlink_msg_distance_sensor_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_distance_sensor_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_distance_sensor.h:214:398: warning: taking address of packed member of '__mavlink_distance_sensor_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  214 |     return mavlink_msg_distance_sensor_pack_chan(system_id, component_id, chan, msg, distance_sensor->time_boot_ms, distance_sensor->min_distance, distance_sensor->max_distance, distance_sensor->current_distance, distance_sensor->type, distance_sensor->id, distance_sensor->orientation, distance_sensor->covariance, distance_sensor->horizontal_fov, distance_sensor->vertical_fov, distance_sensor->quaternion, distance_sensor->signal_quality);
      |                                                                                                                                                                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~^~~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2542,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/heartbeat.h:36,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/heartbeat.cpp:31:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h: In function 'uint16_t mavlink_msg_battery_status_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_battery_status_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h:219:195: warning: taking address of packed member of '__mavlink_battery_status_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  219 |     return mavlink_msg_battery_status_pack(system_id, component_id, msg, battery_status->id, battery_status->battery_function, battery_status->type, battery_status->temperature, battery_status->voltages, battery_status->current_battery, battery_status->current_consumed, battery_status->energy_consumed, battery_status->battery_remaining, battery_status->time_remaining, battery_status->charge_state, battery_status->voltages_ext, battery_status->mode, battery_status->fault_bitmask);
      |                                                                                                                                                                                   ~~~~~~~~~~~~~~~~^~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h:219:418: warning: taking address of packed member of '__mavlink_battery_status_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  219 |     return mavlink_msg_battery_status_pack(system_id, component_id, msg, battery_status->id, battery_status->battery_function, battery_status->type, battery_status->temperature, battery_status->voltages, battery_status->current_battery, battery_status->current_consumed, battery_status->energy_consumed, battery_status->battery_remaining, battery_status->time_remaining, battery_status->charge_state, battery_status->voltages_ext, battery_status->mode, battery_status->fault_bitmask);
      |                                                                                                                                                                                                                                                                                                                                                                                                                  ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h: In function 'uint16_t mavlink_msg_battery_status_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_battery_status_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h:233:206: warning: taking address of packed member of '__mavlink_battery_status_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  233 |     return mavlink_msg_battery_status_pack_chan(system_id, component_id, chan, msg, battery_status->id, battery_status->battery_function, battery_status->type, battery_status->temperature, battery_status->voltages, battery_status->current_battery, battery_status->current_consumed, battery_status->energy_consumed, battery_status->battery_remaining, battery_status->time_remaining, battery_status->charge_state, battery_status->voltages_ext, battery_status->mode, battery_status->fault_bitmask);
      |                                                                                                                                                                                              ~~~~~~~~~~~~~~~~^~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h:233:429: warning: taking address of packed member of '__mavlink_battery_status_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  233 |     return mavlink_msg_battery_status_pack_chan(system_id, component_id, chan, msg, battery_status->id, battery_status->battery_function, battery_status->type, battery_status->temperature, battery_status->voltages, battery_status->current_battery, battery_status->current_consumed, battery_status->energy_consumed, battery_status->battery_remaining, battery_status->time_remaining, battery_status->charge_state, battery_status->voltages_ext, battery_status->mode, battery_status->fault_bitmask);
      |                                                                                                                                                                                                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2544,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/heartbeat.h:36,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/heartbeat.cpp:31:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_landing_target.h: In function 'uint16_t mavlink_msg_landing_target_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_landing_target_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_landing_target.h:218:349: warning: taking address of packed member of '__mavlink_landing_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  218 |     return mavlink_msg_landing_target_pack(system_id, component_id, msg, landing_target->time_usec, landing_target->target_num, landing_target->frame, landing_target->angle_x, landing_target->angle_y, landing_target->distance, landing_target->size_x, landing_target->size_y, landing_target->x, landing_target->y, landing_target->z, landing_target->q, landing_target->type, landing_target->position_valid);
      |                                                                                                                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~^
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_landing_target.h: In function 'uint16_t mavlink_msg_landing_target_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_landing_target_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_landing_target.h:232:360: warning: taking address of packed member of '__mavlink_landing_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  232 |     return mavlink_msg_landing_target_pack_chan(system_id, component_id, chan, msg, landing_target->time_usec, landing_target->target_num, landing_target->frame, landing_target->angle_x, landing_target->angle_y, landing_target->distance, landing_target->size_x, landing_target->size_y, landing_target->x, landing_target->y, landing_target->z, landing_target->q, landing_target->type, landing_target->position_valid);
      |                                                                                                                                                                                                                                                                                                                                                        ~~~~~~~~~~~~~~~~^
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2555,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/rtcm.h:36,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/rtcm.cpp:31:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_home_position.h: In function 'uint16_t mavlink_msg_home_position_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_home_position_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_home_position.h:191:218: warning: taking address of packed member of '__mavlink_home_position_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  191 |     return mavlink_msg_home_position_pack(system_id, component_id, msg, home_position->latitude, home_position->longitude, home_position->altitude, home_position->x, home_position->y, home_position->z, home_position->q, home_position->approach_x, home_position->approach_y, home_position->approach_z, home_position->time_usec);
      |                                                                                                                                                                                                           ~~~~~~~~~~~~~~~^
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_home_position.h: In function 'uint16_t mavlink_msg_home_position_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_home_position_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_home_position.h:205:229: warning: taking address of packed member of '__mavlink_home_position_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  205 |     return mavlink_msg_home_position_pack_chan(system_id, component_id, chan, msg, home_position->latitude, home_position->longitude, home_position->altitude, home_position->x, home_position->y, home_position->z, home_position->q, home_position->approach_x, home_position->approach_y, home_position->approach_z, home_position->time_usec);
      |                                                                                                                                                                                                                      ~~~~~~~~~~~~~~~^
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2556,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/rtcm.h:36,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/rtcm.cpp:31:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_home_position.h: In function 'uint16_t mavlink_msg_set_home_position_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_set_home_position_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_home_position.h:200:284: warning: taking address of packed member of '__mavlink_set_home_position_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  200 |     return mavlink_msg_set_home_position_pack(system_id, component_id, msg, set_home_position->target_system, set_home_position->latitude, set_home_position->longitude, set_home_position->altitude, set_home_position->x, set_home_position->y, set_home_position->z, set_home_position->q, set_home_position->approach_x, set_home_position->approach_y, set_home_position->approach_z, set_home_position->time_usec);
      |                                                                                                                                                                                                                                                                         ~~~~~~~~~~~~~~~~~~~^
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_home_position.h: In function 'uint16_t mavlink_msg_set_home_position_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_set_home_position_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_home_position.h:214:295: warning: taking address of packed member of '__mavlink_set_home_position_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  214 |     return mavlink_msg_set_home_position_pack_chan(system_id, component_id, chan, msg, set_home_position->target_system, set_home_position->latitude, set_home_position->longitude, set_home_position->altitude, set_home_position->x, set_home_position->y, set_home_position->z, set_home_position->q, set_home_position->approach_x, set_home_position->approach_y, set_home_position->approach_z, set_home_position->time_usec);
      |                                                                                                                                                                                                                                                                                    ~~~~~~~~~~~~~~~~~~~^
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2528,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mission.h:36,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mission.cpp:31:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_distance_sensor.h: In function 'uint16_t mavlink_msg_distance_sensor_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_distance_sensor_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_distance_sensor.h:200:387: warning: taking address of packed member of '__mavlink_distance_sensor_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  200 |     return mavlink_msg_distance_sensor_pack(system_id, component_id, msg, distance_sensor->time_boot_ms, distance_sensor->min_distance, distance_sensor->max_distance, distance_sensor->current_distance, distance_sensor->type, distance_sensor->id, distance_sensor->orientation, distance_sensor->covariance, distance_sensor->horizontal_fov, distance_sensor->vertical_fov, distance_sensor->quaternion, distance_sensor->signal_quality);
      |                                                                                                                                                                                                                                                                                                                                                                                  ~~~~~~~~~~~~~~~~~^~~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_distance_sensor.h: In function 'uint16_t mavlink_msg_distance_sensor_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_distance_sensor_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_distance_sensor.h:214:398: warning: taking address of packed member of '__mavlink_distance_sensor_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  214 |     return mavlink_msg_distance_sensor_pack_chan(system_id, component_id, chan, msg, distance_sensor->time_boot_ms, distance_sensor->min_distance, distance_sensor->max_distance, distance_sensor->current_distance, distance_sensor->type, distance_sensor->id, distance_sensor->orientation, distance_sensor->covariance, distance_sensor->horizontal_fov, distance_sensor->vertical_fov, distance_sensor->quaternion, distance_sensor->signal_quality);
      |                                                                                                                                                                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~^~~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2555,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/heartbeat.h:36,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/heartbeat.cpp:31:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_home_position.h: In function 'uint16_t mavlink_msg_home_position_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_home_position_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_home_position.h:191:218: warning: taking address of packed member of '__mavlink_home_position_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  191 |     return mavlink_msg_home_position_pack(system_id, component_id, msg, home_position->latitude, home_position->longitude, home_position->altitude, home_position->x, home_position->y, home_position->z, home_position->q, home_position->approach_x, home_position->approach_y, home_position->approach_z, home_position->time_usec);
      |                                                                                                                                                                                                           ~~~~~~~~~~~~~~~^
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_home_position.h: In function 'uint16_t mavlink_msg_home_position_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_home_position_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_home_position.h:205:229: warning: taking address of packed member of '__mavlink_home_position_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  205 |     return mavlink_msg_home_position_pack_chan(system_id, component_id, chan, msg, home_position->latitude, home_position->longitude, home_position->altitude, home_position->x, home_position->y, home_position->z, home_position->q, home_position->approach_x, home_position->approach_y, home_position->approach_z, home_position->time_usec);
      |                                                                                                                                                                                                                      ~~~~~~~~~~~~~~~^
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2556,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/heartbeat.h:36,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/heartbeat.cpp:31:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_home_position.h: In function 'uint16_t mavlink_msg_set_home_position_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_set_home_position_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_home_position.h:200:284: warning: taking address of packed member of '__mavlink_set_home_position_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  200 |     return mavlink_msg_set_home_position_pack(system_id, component_id, msg, set_home_position->target_system, set_home_position->latitude, set_home_position->longitude, set_home_position->altitude, set_home_position->x, set_home_position->y, set_home_position->z, set_home_position->q, set_home_position->approach_x, set_home_position->approach_y, set_home_position->approach_z, set_home_position->time_usec);
      |                                                                                                                                                                                                                                                                         ~~~~~~~~~~~~~~~~~~~^
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_home_position.h: In function 'uint16_t mavlink_msg_set_home_position_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_set_home_position_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_home_position.h:214:295: warning: taking address of packed member of '__mavlink_set_home_position_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  214 |     return mavlink_msg_set_home_position_pack_chan(system_id, component_id, chan, msg, set_home_position->target_system, set_home_position->latitude, set_home_position->longitude, set_home_position->altitude, set_home_position->x, set_home_position->y, set_home_position->z, set_home_position->q, set_home_position->approach_x, set_home_position->approach_y, set_home_position->approach_z, set_home_position->time_usec);
      |                                                                                                                                                                                                                                                                                    ~~~~~~~~~~~~~~~~~~~^
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2542,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mission.h:36,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mission.cpp:31:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h: In function 'uint16_t mavlink_msg_battery_status_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_battery_status_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h:219:195: warning: taking address of packed member of '__mavlink_battery_status_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  219 |     return mavlink_msg_battery_status_pack(system_id, component_id, msg, battery_status->id, battery_status->battery_function, battery_status->type, battery_status->temperature, battery_status->voltages, battery_status->current_battery, battery_status->current_consumed, battery_status->energy_consumed, battery_status->battery_remaining, battery_status->time_remaining, battery_status->charge_state, battery_status->voltages_ext, battery_status->mode, battery_status->fault_bitmask);
      |                                                                                                                                                                                   ~~~~~~~~~~~~~~~~^~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h:219:418: warning: taking address of packed member of '__mavlink_battery_status_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  219 |     return mavlink_msg_battery_status_pack(system_id, component_id, msg, battery_status->id, battery_status->battery_function, battery_status->type, battery_status->temperature, battery_status->voltages, battery_status->current_battery, battery_status->current_consumed, battery_status->energy_consumed, battery_status->battery_remaining, battery_status->time_remaining, battery_status->charge_state, battery_status->voltages_ext, battery_status->mode, battery_status->fault_bitmask);
      |                                                                                                                                                                                                                                                                                                                                                                                                                  ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h: In function 'uint16_t mavlink_msg_battery_status_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_battery_status_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h:233:206: warning: taking address of packed member of '__mavlink_battery_status_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  233 |     return mavlink_msg_battery_status_pack_chan(system_id, component_id, chan, msg, battery_status->id, battery_status->battery_function, battery_status->type, battery_status->temperature, battery_status->voltages, battery_status->current_battery, battery_status->current_consumed, battery_status->energy_consumed, battery_status->battery_remaining, battery_status->time_remaining, battery_status->charge_state, battery_status->voltages_ext, battery_status->mode, battery_status->fault_bitmask);
      |                                                                                                                                                                                              ~~~~~~~~~~~~~~~~^~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h:233:429: warning: taking address of packed member of '__mavlink_battery_status_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  233 |     return mavlink_msg_battery_status_pack_chan(system_id, component_id, chan, msg, battery_status->id, battery_status->battery_function, battery_status->type, battery_status->temperature, battery_status->voltages, battery_status->current_battery, battery_status->current_consumed, battery_status->energy_consumed, battery_status->battery_remaining, battery_status->time_remaining, battery_status->charge_state, battery_status->voltages_ext, battery_status->mode, battery_status->fault_bitmask);
      |                                                                                                                                                                                                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2544,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mission.h:36,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mission.cpp:31:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_landing_target.h: In function 'uint16_t mavlink_msg_landing_target_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_landing_target_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_landing_target.h:218:349: warning: taking address of packed member of '__mavlink_landing_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  218 |     return mavlink_msg_landing_target_pack(system_id, component_id, msg, landing_target->time_usec, landing_target->target_num, landing_target->frame, landing_target->angle_x, landing_target->angle_y, landing_target->distance, landing_target->size_x, landing_target->size_y, landing_target->x, landing_target->y, landing_target->z, landing_target->q, landing_target->type, landing_target->position_valid);
      |                                                                                                                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~^
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_landing_target.h: In function 'uint16_t mavlink_msg_landing_target_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_landing_target_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_landing_target.h:232:360: warning: taking address of packed member of '__mavlink_landing_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  232 |     return mavlink_msg_landing_target_pack_chan(system_id, component_id, chan, msg, landing_target->time_usec, landing_target->target_num, landing_target->frame, landing_target->angle_x, landing_target->angle_y, landing_target->distance, landing_target->size_x, landing_target->size_y, landing_target->x, landing_target->y, landing_target->z, landing_target->q, landing_target->type, landing_target->position_valid);
      |                                                                                                                                                                                                                                                                                                                                                        ~~~~~~~~~~~~~~~~^
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2606,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/rtcm.h:36,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/rtcm.cpp:31:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_obstacle_distance.h: In function 'uint16_t mavlink_msg_obstacle_distance_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_obstacle_distance_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_obstacle_distance.h:173:158: warning: taking address of packed member of '__mavlink_obstacle_distance_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  173 |     return mavlink_msg_obstacle_distance_pack(system_id, component_id, msg, obstacle_distance->time_usec, obstacle_distance->sensor_type, obstacle_distance->distances, obstacle_distance->increment, obstacle_distance->min_distance, obstacle_distance->max_distance, obstacle_distance->increment_f, obstacle_distance->angle_offset, obstacle_distance->frame);
      |                                                                                                                                           ~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_obstacle_distance.h: In function 'uint16_t mavlink_msg_obstacle_distance_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_obstacle_distance_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_obstacle_distance.h:187:169: warning: taking address of packed member of '__mavlink_obstacle_distance_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  187 |     return mavlink_msg_obstacle_distance_pack_chan(system_id, component_id, chan, msg, obstacle_distance->time_usec, obstacle_distance->sensor_type, obstacle_distance->distances, obstacle_distance->increment, obstacle_distance->min_distance, obstacle_distance->max_distance, obstacle_distance->increment_f, obstacle_distance->angle_offset, obstacle_distance->frame);
      |                                                                                                                                                      ~~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2555,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mission.h:36,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mission.cpp:31:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_home_position.h: In function 'uint16_t mavlink_msg_home_position_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_home_position_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_home_position.h:191:218: warning: taking address of packed member of '__mavlink_home_position_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  191 |     return mavlink_msg_home_position_pack(system_id, component_id, msg, home_position->latitude, home_position->longitude, home_position->altitude, home_position->x, home_position->y, home_position->z, home_position->q, home_position->approach_x, home_position->approach_y, home_position->approach_z, home_position->time_usec);
      |                                                                                                                                                                                                           ~~~~~~~~~~~~~~~^
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_home_position.h: In function 'uint16_t mavlink_msg_home_position_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_home_position_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_home_position.h:205:229: warning: taking address of packed member of '__mavlink_home_position_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  205 |     return mavlink_msg_home_position_pack_chan(system_id, component_id, chan, msg, home_position->latitude, home_position->longitude, home_position->altitude, home_position->x, home_position->y, home_position->z, home_position->q, home_position->approach_x, home_position->approach_y, home_position->approach_z, home_position->time_usec);
      |                                                                                                                                                                                                                      ~~~~~~~~~~~~~~~^
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2556,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mission.h:36,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mission.cpp:31:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_home_position.h: In function 'uint16_t mavlink_msg_set_home_position_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_set_home_position_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_home_position.h:200:284: warning: taking address of packed member of '__mavlink_set_home_position_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  200 |     return mavlink_msg_set_home_position_pack(system_id, component_id, msg, set_home_position->target_system, set_home_position->latitude, set_home_position->longitude, set_home_position->altitude, set_home_position->x, set_home_position->y, set_home_position->z, set_home_position->q, set_home_position->approach_x, set_home_position->approach_y, set_home_position->approach_z, set_home_position->time_usec);
      |                                                                                                                                                                                                                                                                         ~~~~~~~~~~~~~~~~~~~^
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_home_position.h: In function 'uint16_t mavlink_msg_set_home_position_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_set_home_position_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_home_position.h:214:295: warning: taking address of packed member of '__mavlink_set_home_position_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  214 |     return mavlink_msg_set_home_position_pack_chan(system_id, component_id, chan, msg, set_home_position->target_system, set_home_position->latitude, set_home_position->longitude, set_home_position->altitude, set_home_position->x, set_home_position->y, set_home_position->z, set_home_position->q, set_home_position->approach_x, set_home_position->approach_y, set_home_position->approach_z, set_home_position->time_usec);
      |                                                                                                                                                                                                                                                                                    ~~~~~~~~~~~~~~~~~~~^
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2485,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/telemetry.h:39,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/telemetry.cpp:33:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h: In function 'uint16_t mavlink_msg_set_attitude_target_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_set_attitude_target_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h:183:242: warning: taking address of packed member of '__mavlink_set_attitude_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  183 |     return mavlink_msg_set_attitude_target_pack(system_id, component_id, msg, set_attitude_target->time_boot_ms, set_attitude_target->target_system, set_attitude_target->target_component, set_attitude_target->type_mask, set_attitude_target->q, set_attitude_target->body_roll_rate, set_attitude_target->body_pitch_rate, set_attitude_target->body_yaw_rate, set_attitude_target->thrust, set_attitude_target->thrust_body);
      |                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~~~~~^
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2485,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/telemetry.h:39,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/telemetry.cpp:33:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h:183:406: warning: taking address of packed member of '__mavlink_set_attitude_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  183 |     return mavlink_msg_set_attitude_target_pack(system_id, component_id, msg, set_attitude_target->time_boot_ms, set_attitude_target->target_system, set_attitude_target->target_component, set_attitude_target->type_mask, set_attitude_target->q, set_attitude_target->body_roll_rate, set_attitude_target->body_pitch_rate, set_attitude_target->body_yaw_rate, set_attitude_target->thrust, set_attitude_target->thrust_body);
      |                                                                                                                                                                                                                                                                                                                                                                                                 ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h: In function 'uint16_t mavlink_msg_set_attitude_target_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_set_attitude_target_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h:197:253: warning: taking address of packed member of '__mavlink_set_attitude_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  197 |     return mavlink_msg_set_attitude_target_pack_chan(system_id, component_id, chan, msg, set_attitude_target->time_boot_ms, set_attitude_target->target_system, set_attitude_target->target_component, set_attitude_target->type_mask, set_attitude_target->q, set_attitude_target->body_roll_rate, set_attitude_target->body_pitch_rate, set_attitude_target->body_yaw_rate, set_attitude_target->thrust, set_attitude_target->thrust_body);
      |                                                                                                                                                                                                                                        ~~~~~~~~~~~~~~~~~~~~~^
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_attitude_target.h:197:417: warning: taking address of packed member of '__mavlink_set_attitude_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  197 |     return mavlink_msg_set_attitude_target_pack_chan(system_id, component_id, chan, msg, set_attitude_target->time_boot_ms, set_attitude_target->target_system, set_attitude_target->target_component, set_attitude_target->type_mask, set_attitude_target->q, set_attitude_target->body_roll_rate, set_attitude_target->body_pitch_rate, set_attitude_target->body_yaw_rate, set_attitude_target->thrust, set_attitude_target->thrust_body);
      |                                                                                                                                                                                                                                                                                                                                                                                                            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2606,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/heartbeat.h:36,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/heartbeat.cpp:31:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_obstacle_distance.h: In function 'uint16_t mavlink_msg_obstacle_distance_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_obstacle_distance_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_obstacle_distance.h:173:158: warning: taking address of packed member of '__mavlink_obstacle_distance_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  173 |     return mavlink_msg_obstacle_distance_pack(system_id, component_id, msg, obstacle_distance->time_usec, obstacle_distance->sensor_type, obstacle_distance->distances, obstacle_distance->increment, obstacle_distance->min_distance, obstacle_distance->max_distance, obstacle_distance->increment_f, obstacle_distance->angle_offset, obstacle_distance->frame);
      |                                                                                                                                           ~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_obstacle_distance.h: In function 'uint16_t mavlink_msg_obstacle_distance_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_obstacle_distance_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_obstacle_distance.h:187:169: warning: taking address of packed member of '__mavlink_obstacle_distance_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  187 |     return mavlink_msg_obstacle_distance_pack_chan(system_id, component_id, chan, msg, obstacle_distance->time_usec, obstacle_distance->sensor_type, obstacle_distance->distances, obstacle_distance->increment, obstacle_distance->min_distance, obstacle_distance->max_distance, obstacle_distance->increment_f, obstacle_distance->angle_offset, obstacle_distance->frame);
      |                                                                                                                                                      ~~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2606,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mission.h:36,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mission.cpp:31:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_obstacle_distance.h: In function 'uint16_t mavlink_msg_obstacle_distance_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_obstacle_distance_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_obstacle_distance.h:173:158: warning: taking address of packed member of '__mavlink_obstacle_distance_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  173 |     return mavlink_msg_obstacle_distance_pack(system_id, component_id, msg, obstacle_distance->time_usec, obstacle_distance->sensor_type, obstacle_distance->distances, obstacle_distance->increment, obstacle_distance->min_distance, obstacle_distance->max_distance, obstacle_distance->increment_f, obstacle_distance->angle_offset, obstacle_distance->frame);
      |                                                                                                                                           ~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_obstacle_distance.h: In function 'uint16_t mavlink_msg_obstacle_distance_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_obstacle_distance_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_obstacle_distance.h:187:169: warning: taking address of packed member of '__mavlink_obstacle_distance_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  187 |     return mavlink_msg_obstacle_distance_pack_chan(system_id, component_id, chan, msg, obstacle_distance->time_usec, obstacle_distance->sensor_type, obstacle_distance->distances, obstacle_distance->increment, obstacle_distance->min_distance, obstacle_distance->max_distance, obstacle_distance->increment_f, obstacle_distance->angle_offset, obstacle_distance->frame);
      |                                                                                                                                                      ~~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2528,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/telemetry.h:39,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/telemetry.cpp:33:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_distance_sensor.h: In function 'uint16_t mavlink_msg_distance_sensor_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_distance_sensor_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_distance_sensor.h:200:387: warning: taking address of packed member of '__mavlink_distance_sensor_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  200 |     return mavlink_msg_distance_sensor_pack(system_id, component_id, msg, distance_sensor->time_boot_ms, distance_sensor->min_distance, distance_sensor->max_distance, distance_sensor->current_distance, distance_sensor->type, distance_sensor->id, distance_sensor->orientation, distance_sensor->covariance, distance_sensor->horizontal_fov, distance_sensor->vertical_fov, distance_sensor->quaternion, distance_sensor->signal_quality);
      |                                                                                                                                                                                                                                                                                                                                                                                  ~~~~~~~~~~~~~~~~~^~~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_distance_sensor.h: In function 'uint16_t mavlink_msg_distance_sensor_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_distance_sensor_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_distance_sensor.h:214:398: warning: taking address of packed member of '__mavlink_distance_sensor_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  214 |     return mavlink_msg_distance_sensor_pack_chan(system_id, component_id, chan, msg, distance_sensor->time_boot_ms, distance_sensor->min_distance, distance_sensor->max_distance, distance_sensor->current_distance, distance_sensor->type, distance_sensor->id, distance_sensor->orientation, distance_sensor->covariance, distance_sensor->horizontal_fov, distance_sensor->vertical_fov, distance_sensor->quaternion, distance_sensor->signal_quality);
      |                                                                                                                                                                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~^~~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2542,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/telemetry.h:39,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/telemetry.cpp:33:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h: In function 'uint16_t mavlink_msg_battery_status_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_battery_status_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h:219:195: warning: taking address of packed member of '__mavlink_battery_status_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  219 |     return mavlink_msg_battery_status_pack(system_id, component_id, msg, battery_status->id, battery_status->battery_function, battery_status->type, battery_status->temperature, battery_status->voltages, battery_status->current_battery, battery_status->current_consumed, battery_status->energy_consumed, battery_status->battery_remaining, battery_status->time_remaining, battery_status->charge_state, battery_status->voltages_ext, battery_status->mode, battery_status->fault_bitmask);
      |                                                                                                                                                                                   ~~~~~~~~~~~~~~~~^~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h:219:418: warning: taking address of packed member of '__mavlink_battery_status_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  219 |     return mavlink_msg_battery_status_pack(system_id, component_id, msg, battery_status->id, battery_status->battery_function, battery_status->type, battery_status->temperature, battery_status->voltages, battery_status->current_battery, battery_status->current_consumed, battery_status->energy_consumed, battery_status->battery_remaining, battery_status->time_remaining, battery_status->charge_state, battery_status->voltages_ext, battery_status->mode, battery_status->fault_bitmask);
      |                                                                                                                                                                                                                                                                                                                                                                                                                  ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h: In function 'uint16_t mavlink_msg_battery_status_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_battery_status_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h:233:206: warning: taking address of packed member of '__mavlink_battery_status_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  233 |     return mavlink_msg_battery_status_pack_chan(system_id, component_id, chan, msg, battery_status->id, battery_status->battery_function, battery_status->type, battery_status->temperature, battery_status->voltages, battery_status->current_battery, battery_status->current_consumed, battery_status->energy_consumed, battery_status->battery_remaining, battery_status->time_remaining, battery_status->charge_state, battery_status->voltages_ext, battery_status->mode, battery_status->fault_bitmask);
      |                                                                                                                                                                                              ~~~~~~~~~~~~~~~~^~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_battery_status.h:233:429: warning: taking address of packed member of '__mavlink_battery_status_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  233 |     return mavlink_msg_battery_status_pack_chan(system_id, component_id, chan, msg, battery_status->id, battery_status->battery_function, battery_status->type, battery_status->temperature, battery_status->voltages, battery_status->current_battery, battery_status->current_consumed, battery_status->energy_consumed, battery_status->battery_remaining, battery_status->time_remaining, battery_status->charge_state, battery_status->voltages_ext, battery_status->mode, battery_status->fault_bitmask);
      |                                                                                                                                                                                                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2544,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/telemetry.h:39,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/telemetry.cpp:33:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_landing_target.h: In function 'uint16_t mavlink_msg_landing_target_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_landing_target_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_landing_target.h:218:349: warning: taking address of packed member of '__mavlink_landing_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  218 |     return mavlink_msg_landing_target_pack(system_id, component_id, msg, landing_target->time_usec, landing_target->target_num, landing_target->frame, landing_target->angle_x, landing_target->angle_y, landing_target->distance, landing_target->size_x, landing_target->size_y, landing_target->x, landing_target->y, landing_target->z, landing_target->q, landing_target->type, landing_target->position_valid);
      |                                                                                                                                                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~^
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_landing_target.h: In function 'uint16_t mavlink_msg_landing_target_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_landing_target_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_landing_target.h:232:360: warning: taking address of packed member of '__mavlink_landing_target_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  232 |     return mavlink_msg_landing_target_pack_chan(system_id, component_id, chan, msg, landing_target->time_usec, landing_target->target_num, landing_target->frame, landing_target->angle_x, landing_target->angle_y, landing_target->distance, landing_target->size_x, landing_target->size_y, landing_target->x, landing_target->y, landing_target->z, landing_target->q, landing_target->type, landing_target->position_valid);
      |                                                                                                                                                                                                                                                                                                                                                        ~~~~~~~~~~~~~~~~^
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2555,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/telemetry.h:39,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/telemetry.cpp:33:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_home_position.h: In function 'uint16_t mavlink_msg_home_position_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_home_position_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_home_position.h:191:218: warning: taking address of packed member of '__mavlink_home_position_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  191 |     return mavlink_msg_home_position_pack(system_id, component_id, msg, home_position->latitude, home_position->longitude, home_position->altitude, home_position->x, home_position->y, home_position->z, home_position->q, home_position->approach_x, home_position->approach_y, home_position->approach_z, home_position->time_usec);
      |                                                                                                                                                                                                           ~~~~~~~~~~~~~~~^
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_home_position.h: In function 'uint16_t mavlink_msg_home_position_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_home_position_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_home_position.h:205:229: warning: taking address of packed member of '__mavlink_home_position_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  205 |     return mavlink_msg_home_position_pack_chan(system_id, component_id, chan, msg, home_position->latitude, home_position->longitude, home_position->altitude, home_position->x, home_position->y, home_position->z, home_position->q, home_position->approach_x, home_position->approach_y, home_position->approach_z, home_position->time_usec);
      |                                                                                                                                                                                                                      ~~~~~~~~~~~~~~~^
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2556,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/telemetry.h:39,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/telemetry.cpp:33:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_home_position.h: In function 'uint16_t mavlink_msg_set_home_position_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_set_home_position_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_home_position.h:200:284: warning: taking address of packed member of '__mavlink_set_home_position_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  200 |     return mavlink_msg_set_home_position_pack(system_id, component_id, msg, set_home_position->target_system, set_home_position->latitude, set_home_position->longitude, set_home_position->altitude, set_home_position->x, set_home_position->y, set_home_position->z, set_home_position->q, set_home_position->approach_x, set_home_position->approach_y, set_home_position->approach_z, set_home_position->time_usec);
      |                                                                                                                                                                                                                                                                         ~~~~~~~~~~~~~~~~~~~^
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_home_position.h: In function 'uint16_t mavlink_msg_set_home_position_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_set_home_position_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_set_home_position.h:214:295: warning: taking address of packed member of '__mavlink_set_home_position_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  214 |     return mavlink_msg_set_home_position_pack_chan(system_id, component_id, chan, msg, set_home_position->target_system, set_home_position->latitude, set_home_position->longitude, set_home_position->altitude, set_home_position->x, set_home_position->y, set_home_position->z, set_home_position->q, set_home_position->approach_x, set_home_position->approach_y, set_home_position->approach_z, set_home_position->time_usec);
      |                                                                                                                                                                                                                                                                                    ~~~~~~~~~~~~~~~~~~~^
In file included from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/common.h:2606,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/mavlink.h:32,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/telemetry.h:39,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/telemetry.cpp:33:
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_obstacle_distance.h: In function 'uint16_t mavlink_msg_obstacle_distance_encode(uint8_t, uint8_t, mavlink_message_t*, const mavlink_obstacle_distance_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_obstacle_distance.h:173:158: warning: taking address of packed member of '__mavlink_obstacle_distance_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  173 |     return mavlink_msg_obstacle_distance_pack(system_id, component_id, msg, obstacle_distance->time_usec, obstacle_distance->sensor_type, obstacle_distance->distances, obstacle_distance->increment, obstacle_distance->min_distance, obstacle_distance->max_distance, obstacle_distance->increment_f, obstacle_distance->angle_offset, obstacle_distance->frame);
      |                                                                                                                                           ~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_obstacle_distance.h: In function 'uint16_t mavlink_msg_obstacle_distance_encode_chan(uint8_t, uint8_t, uint8_t, mavlink_message_t*, const mavlink_obstacle_distance_t*)':
/Users/kevin/Documents/Arduino/libraries/mavlink/src/mavlink/common/./mavlink_msg_obstacle_distance.h:187:169: warning: taking address of packed member of '__mavlink_obstacle_distance_t' may result in an unaligned pointer value [-Waddress-of-packed-member]
  187 |     return mavlink_msg_obstacle_distance_pack_chan(system_id, component_id, chan, msg, obstacle_distance->time_usec, obstacle_distance->sensor_type, obstacle_distance->distances, obstacle_distance->increment, obstacle_distance->min_distance, obstacle_distance->max_distance, obstacle_distance->increment_f, obstacle_distance->angle_offset, obstacle_distance->frame);
      |                                                                                                                                                      ~~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from /Users/kevin/Documents/Arduino/libraries/units/src/units.h:29,
                 from /Users/kevin/Documents/Arduino/libraries/mavlink/src/telemetry.cpp:36:
/Users/kevin/Documents/Arduino/libraries/units/src/constants.h: At global scope:
/Users/kevin/Documents/Arduino/libraries/units/src/constants.h:37:20: warning: variable templates only available with '-std=c++14' or '-std=gnu++14'
   37 | static constexpr T BFS_PI =
      |                    ^~~~~~
/Users/kevin/Documents/Arduino/libraries/units/src/constants.h:40:20: warning: variable templates only available with '-std=c++14' or '-std=gnu++14'
   40 | static constexpr T BFS_2PI = static_cast<T>(2) *
      |                    ^~~~~~~
/Users/kevin/Documents/Arduino/libraries/units/src/constants.h:44:20: warning: variable templates only available with '-std=c++14' or '-std=gnu++14'
   44 | static constexpr T G_MPS2 = static_cast<T>(9.80665);
      |                    ^~~~~~
Compiling library "Bolder Flight Systems Unit Conversions"
Compiling core...
Using previously compiled file: /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/core/variant.cpp.o
Using precompiled core: /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-core-cache/core_8c415fa7c5912ffdc224b70e5855163e.a
Linking everything together...
/Users/kevin/Library/Arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-g++ -L/private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8 -Os -Wl,--gc-sections -save-temps -T/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/variants/itsybitsy_m0/linker_scripts/gcc/flash_with_bootloader.ld -Wl,-Map,/private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/simple_test.ino.map --specs=nano.specs --specs=nosys.specs -mcpu=cortex-m0plus -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -o /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/simple_test.ino.elf /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/sketch/simple_test.ino.cpp.o /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/libraries/Adafruit_NeoPixel/Adafruit_NeoPixel.cpp.o /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/libraries/Adafruit_NeoPixel/esp.c.o /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/libraries/Adafruit_NeoPixel/esp8266.c.o /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/libraries/Adafruit_NeoPixel/kendyte_k210.c.o /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/libraries/mavlink/heartbeat.cpp.o /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/libraries/mavlink/mission.cpp.o /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/libraries/mavlink/rtcm.cpp.o /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/libraries/mavlink/telemetry.cpp.o /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/core/variant.cpp.o -Wl,--start-group -L/Users/kevin/Library/Arduino15/packages/adafruit/tools/CMSIS/5.4.0/CMSIS/Lib/GCC/ -larm_cortexM0l_math -L/Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/variants/itsybitsy_m0 -lm /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/../arduino-core-cache/core_8c415fa7c5912ffdc224b70e5855163e.a -Wl,--end-group
/Users/kevin/Library/Arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-objcopy -O binary /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/simple_test.ino.elf /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/simple_test.ino.bin
/Users/kevin/Library/Arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-objcopy -O ihex -R .eeprom /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/simple_test.ino.elf /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/simple_test.ino.hex
open /Users/kevin/Library/Arduino15/packages/adafruit/hardware/samd/1.7.11/bootloaders/itsybitsyM0/bootloader-itsybitsy_m0-v2.0.0-adafruit.5.hex: no such file or directory

Using library TFminiArduino at version 0.1.1 in folder: /Users/kevin/Documents/Arduino/libraries/TFminiArduino 
Using library Adafruit NeoPixel at version 1.10.7 in folder: /Users/kevin/Documents/Arduino/libraries/Adafruit_NeoPixel 
Using library elapsedMillis at version 1.0.6 in folder: /Users/kevin/Documents/Arduino/libraries/elapsedMillis 
Using library Bolder Flight Systems MAV Link at version 4.8.9 in folder: /Users/kevin/Documents/Arduino/libraries/mavlink 
Using library Bolder Flight Systems Unit Conversions at version 4.2.1 in folder: /Users/kevin/Documents/Arduino/libraries/units 
/Users/kevin/Library/Arduino15/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/arm-none-eabi-size -A /private/var/folders/8m/htkq_jv500b_1yqyk33q6tzc0000gn/T/arduino-sketch-D07A21A5DF6FF6F540D6C6B6CEB4ADF8/simple_test.ino.elf
Sketch uses 12264 bytes (4%) of program storage space. Maximum is 262144 bytes.
flybrianfly commented 1 year ago

Thanks, I use Teensy a ton and got spoiled having elapsedMillis. This is the Teensy implementation: https://github.com/PaulStoffregen/cores/blob/master/teensy/elapsedMillis.h

I'll have to look more into the template issues with the Units library. Tough having different Arduino boards using different g++/gcc compiler versions. I think it's mostly used here for radian <-> degree conversions.

Lot's of warnings are expected. This is from the C MAV Link message implementation (https://github.com/mavlink/c_library_v2), which this library wraps around.

smudge-smiff commented 1 year ago
#include <elapsedMillis.h>

I tried this. Using the example, I could not get anything to compile.

Compiling on Arduino for STM32, I get:

I get the following error related: E:\Documents\Arduino\libraries\mavlink-main\src\heartbeat.h:101:3: error: 'elapsedMillis' does not name a type 101 | elapsedMillis heartbeat_timerms;

When I compile for pure arduino (Mega/Arduino/mini etc), I get the following: E:\Documents\Arduino\libraries\mavlink-main\src/mavlink.h:35:10: fatal error: string: No such file or directory

include