Skip to content

Commit

Permalink
GCS_MAVLink: clarify timeline on removal of HIL_GPS and BATTERY2
Browse files Browse the repository at this point in the history
try to move to a standard greppable pattern for code to be removed
  • Loading branch information
peterbarker authored and tridge committed Jun 10, 2024
1 parent 81e08b1 commit 4fb8408
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libraries/GCS_MAVLink/GCS_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
#define HAL_MAVLINK_BINDINGS_ENABLED HAL_GCS_ENABLED
#endif

// CODE_REMOVAL
// BATTERY2 is slated to be removed:
// ArduPilot 4.6 stops compiling support in
// ArduPilot 4.7 removes the code entirely
#ifndef AP_MAVLINK_BATTERY2_ENABLED
#define AP_MAVLINK_BATTERY2_ENABLED 0
#endif
Expand Down Expand Up @@ -59,8 +62,11 @@
#define AP_MAVLINK_RALLY_POINT_PROTOCOL_ENABLED HAL_GCS_ENABLED && HAL_RALLY_ENABLED
#endif

// CODE_REMOVAL
// handling of HIL_GPS is slated to be removed in 4.7; GPS_INPUT can be used
// in its place
// ArduPilot 4.6 stops compiling support in
// ArduPilot 4.7 removes the code entirely
#ifndef AP_MAVLINK_MSG_HIL_GPS_ENABLED
#define AP_MAVLINK_MSG_HIL_GPS_ENABLED 0
#endif
Expand Down

0 comments on commit 4fb8408

Please sign in to comment.