Skip to content

Commit

Permalink
Merge branch 'main' into disable-thrust-reduction
Browse files Browse the repository at this point in the history
  • Loading branch information
somebody-once-told-me authored Nov 20, 2024
2 parents e5d8528 + f8b34fd commit a695ee7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build_all_targets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Update python packaging to avoid canonicalize_version() error
run: |
pip3 install -U packaging
- name: Install Python Dependencies
uses: py-actions/py-dependency-install@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion Tools/setup/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
argcomplete
cerberus
coverage
empy==3.3.4
empy>=3.3,<4
future
jinja2>=2.8
jsonschema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ static constexpr const char *battery_fault_reason_str(battery_fault_reason_t bat
void BatteryChecks::checkAndReport(const Context &context, Report &reporter)
{
if (circuit_breaker_enabled_by_val(_param_cbrk_supply_chk.get(), CBRK_SUPPLY_CHK_KEY)) {
// Reset related failsafe flags otherwise failures from before disabling the check cause failsafes without reported reason
reporter.failsafeFlags().battery_unhealthy = false;
reporter.failsafeFlags().battery_low_remaining_time = false;
reporter.failsafeFlags().battery_warning = battery_status_s::BATTERY_WARNING_NONE;
return;
}

Expand Down
7 changes: 6 additions & 1 deletion src/modules/sensors/vehicle_air_data/VehicleAirData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#include <lib/geo/geo.h>
#include <lib/atmosphere/atmosphere.h>


namespace sensors
{

Expand Down Expand Up @@ -188,6 +187,12 @@ void VehicleAirData::Run()
_sensor_sub[uorb_index].registerCallback();
}

if (!_calibration[uorb_index].calibrated()) {
_calibration[uorb_index].set_device_id(report.device_id);
_calibration[uorb_index].ParametersSave(uorb_index);
param_notify_changes();
}

ParametersUpdate(true);
}

Expand Down

0 comments on commit a695ee7

Please sign in to comment.