mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 01:53:34 +08:00
Checkout to matching firmware if possible
This commit is contained in:
@@ -16,7 +16,11 @@ jobs:
|
|||||||
repository: PX4/Firmware
|
repository: PX4/Firmware
|
||||||
ref: master
|
ref: master
|
||||||
submodules: recurvise
|
submodules: recurvise
|
||||||
- run: git submodule update --init --recursive
|
- name: Checkout matching branch on PX4/Firmware if possible
|
||||||
|
run: |
|
||||||
|
git fetch origin
|
||||||
|
git checkout ${{github.head_ref}} || echo "Firmware branch: ${{github.head_ref}} not found, using master instead"
|
||||||
|
git submodule update --init --recursive
|
||||||
working-directory: ../Firmware
|
working-directory: ../Firmware
|
||||||
- name: Configure Firmware to include current ECL version
|
- name: Configure Firmware to include current ECL version
|
||||||
working-directory: ../Firmware/src/lib/ecl
|
working-directory: ../Firmware/src/lib/ecl
|
||||||
|
|||||||
@@ -387,7 +387,6 @@ void EstimatorInterface::setOpticalFlowData(const flowSample& flow)
|
|||||||
|
|
||||||
flowSample optflow_sample_new = flow;
|
flowSample optflow_sample_new = flow;
|
||||||
|
|
||||||
// compensate time-stamp for the trailing edge of the flow data integration period
|
|
||||||
optflow_sample_new.time_us -= _params.flow_delay_ms * 1000;
|
optflow_sample_new.time_us -= _params.flow_delay_ms * 1000;
|
||||||
optflow_sample_new.time_us -= FILTER_UPDATE_PERIOD_MS * 1000 / 2;
|
optflow_sample_new.time_us -= FILTER_UPDATE_PERIOD_MS * 1000 / 2;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user