Skip to content

Commit

Permalink
Merge branch 'CxPilot' into feature/SW-233-lua-binding-addition-suppo…
Browse files Browse the repository at this point in the history
…rt-to-new-escx-telem
  • Loading branch information
loki077 authored Jun 6, 2024
2 parents b3dc8b4 + fab15ea commit 98ba423
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/carbonix_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ jobs:
- name: Extract firmware version and commit id
id: extract_info
run: |
FIRMWARE_VERSION=$(grep -oP '#define AP_CUSTOM_FIRMWARE_STRING "\K(.*)(?=")' libraries/AP_Common/AP_FWVersionDefine.h)
FIRMWARE_VERSION=$(grep -oP '#define AP_CUSTOM_FIRMWARE_STRING "\K(.*)(?=")' libraries/AP_Common/CxVersion.h)
COMMIT_ID=$(git rev-parse --short HEAD)
echo "firmware_version=$FIRMWARE_VERSION" >> $GITHUB_ENV
echo "commit_id=$COMMIT_ID" >> $GITHUB_ENV
Expand Down
1 change: 1 addition & 0 deletions Tools/AP_Periph/AP_Periph.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <AP_Scripting/AP_Scripting.h>
#include <AP_HAL/CANIface.h>
#include <AP_Stats/AP_Stats.h>
#include <AP_Common/CxVersion.h>

#if HAL_GCS_ENABLED
#include "GCS_MAVLink.h"
Expand Down
5 changes: 1 addition & 4 deletions libraries/AP_Common/AP_FWVersionDefine.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@

#include <AP_Common/AP_FWVersion.h>
#include <AP_Vehicle/AP_Vehicle_Type.h>

#ifdef CARBOPILOT
#define AP_CUSTOM_FIRMWARE_STRING "CxPilot-5.1.1"
#endif
#include <AP_Common/CxVersion.h>

/*
allow vendors to set AP_CUSTOM_FIRMWARE_STRING in hwdef.dat
Expand Down
5 changes: 5 additions & 0 deletions libraries/AP_Common/CxVersion.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#ifdef CARBOPILOT
#ifndef AP_CUSTOM_FIRMWARE_STRING
#define AP_CUSTOM_FIRMWARE_STRING "CxPilot-5.1.1"
#endif
#endif

0 comments on commit 98ba423

Please sign in to comment.