Compare commits

...

23 Commits

Author SHA1 Message Date
Pedro Roque 726b6ad8e2 Merge branch 'main' into pr-dual-atmos 2025-12-16 14:27:48 -08:00
Pedro-Roque 0f33c118ac fix: changes to dds-topics 2025-12-16 14:26:58 -08:00
Pedro-Roque 0a6f2fe3b0 fix: roll back file 2025-12-16 10:17:57 -08:00
Pedro Roque c187897bc7 Merge branch 'main' into pr-dual-atmos 2025-12-16 08:57:02 -08:00
Pedro-Roque f0d695363a fix: revert to clearly defined max_num_motors 2025-12-15 17:22:20 -08:00
Pedro-Roque 596f2f3804 Merge branch 'pr-dual-atmos' of github.com:PX4/PX4-Autopilot into pr-dual-atmos 2025-12-15 17:11:58 -08:00
Pedro-Roque 4c5a455590 feat: save some memory 2025-12-15 17:11:52 -08:00
Pedro Roque 8cfc8d77ed Merge branch 'main' into pr-dual-atmos 2025-12-15 14:52:32 -08:00
Pedro-Roque cd5650c823 Merge branch 'pr-dual-atmos' of github.com:PX4/PX4-Autopilot into pr-dual-atmos 2025-12-15 14:52:17 -08:00
Pedro-Roque f3a8209e35 fix: added not necessary space 2025-12-15 14:51:53 -08:00
Pedro Roque 4db0ae99d0 Merge branch 'main' into pr-dual-atmos 2025-12-13 15:16:32 -08:00
Pedro Roque 553bbd5014 Merge branch 'main' into pr-dual-atmos 2025-12-12 11:56:48 -08:00
Pedro-Roque a430de9073 fix: removed non-necessary actuator_size variable 2025-12-11 10:17:01 -08:00
Pedro-Roque fe4e55c316 fix: sync with main 2025-12-11 09:31:09 -08:00
Pedro Roque 5b5ad76f63 Merge branch 'main' into pr-dual-atmos 2025-12-11 09:28:22 -08:00
Pedro-Roque 6109d46986 fix: sync submodules with remote 2025-12-11 09:28:07 -08:00
Pedro-Roque d896b5d835 fix: remove extra modules 2025-12-11 09:27:22 -08:00
Pedro Roque c2e70a46ec Merge branch 'main' into pr-dual-atmos 2025-12-10 16:08:52 -08:00
Pedro-Roque d093115534 fix: ensure esc count does not exceed maximum number of ESCs 2025-12-10 15:57:56 -08:00
Pedro-Roque d1c6e7f111 fix: revert non-necessary changes 2025-12-10 15:45:12 -08:00
Pedro-Roque 0b530615af fix: add motor number max fitting Actuator 2025-12-10 15:41:39 -08:00
Pedro-Roque 6991a6ac88 fix: update gz sim to latest 2025-12-07 23:35:50 -08:00
Pedro-Roque 49a8c46946 init: working towards dual-action ATMOS 2025-12-07 23:15:52 -08:00
2 changed files with 5 additions and 3 deletions
@@ -109,9 +109,10 @@ void GZMixingInterfaceESC::motorSpeedCallback(const gz::msgs::Actuators &actuato
pthread_mutex_lock(&_node_mutex);
esc_status_s esc_status{};
esc_status.esc_count = actuators.velocity_size();
// Limit to max supported ESCs while allowing for a larger number of system actuators
esc_status.esc_count = math::min(actuators.velocity_size(), static_cast<int>(esc_status_s::CONNECTED_ESC_MAX));
for (int i = 0; i < actuators.velocity_size(); i++) {
for (int i = 0; i < esc_status.esc_count; i++) {
esc_status.esc[i].timestamp = hrt_absolute_time();
esc_status.esc[i].esc_rpm = actuators.velocity(i);
esc_status.esc_online_flags |= 1 << i;
+2 -1
View File
@@ -1,3 +1,4 @@
__max_num_motors: &max_num_motors 12
__max_num_servos: &max_num_servos 8
__max_num_tilts: &max_num_tilts 4
@@ -18,7 +19,7 @@ actuator_output:
min: { min: 0, max: 1000, default: 0 }
max: { min: 0, max: 1000, default: 1000 }
failsafe: { min: 0, max: 1000 }
num_channels: *max_num_servos
num_channels: *max_num_motors
- param_prefix: SIM_GZ_SV
group_label: 'Servos'
channel_label: 'Servo'