Skip to content

Commit

Permalink
exp
Browse files Browse the repository at this point in the history
  • Loading branch information
haitomatic committed Mar 11, 2024
1 parent b593d5c commit 97594db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ param set-default CA_SV_CS1_TRQ_R 0.5

# GZ SIM
param set-default SIM_GZ_EC_FUNC1 101
param set-default SIM_GZ_EC_MIN1 0
param set-default SIM_GZ_EC_MIN1 150
param set-default SIM_GZ_EC_MAX1 1000

param set-default SIM_GZ_SV_FUNC1 201
Expand Down Expand Up @@ -90,3 +90,5 @@ param set-default FW_LAUN_DETCN_ON 1

# Misc
param set-default RTL_RETURN_ALT 30.0
param set-default RTL_DESCEND_ALT 30.0
param set-default FW_LND_USETER 0
3 changes: 2 additions & 1 deletion src/modules/simulation/gz_bridge/GZMixingInterfaceESC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void GZMixingInterfaceESC::motorSpeedCallback(const gz::msgs::Actuators &actuato
}

pthread_mutex_lock(&_node_mutex);

px4_info("motorSpeedCallback");
esc_status_s esc_status{};
esc_status.esc_count = actuators.velocity_size();

Expand All @@ -114,6 +114,7 @@ void GZMixingInterfaceESC::motorSpeedCallback(const gz::msgs::Actuators &actuato

if (actuators.velocity(i) > 0) {
esc_status.esc_armed_flags |= 1 << i;
px4_info("ESC %d: %d RPM", i, actuators.velocity(i));
}
}

Expand Down

0 comments on commit 97594db

Please sign in to comment.