diff --git a/src/modules/uavcan/uavcan_servers.cpp b/src/modules/uavcan/uavcan_servers.cpp index afd92e71e4..f7ee5852d3 100644 --- a/src/modules/uavcan/uavcan_servers.cpp +++ b/src/modules/uavcan/uavcan_servers.cpp @@ -504,7 +504,7 @@ pthread_addr_t UavcanServers::run(pthread_addr_t) _esc_enumeration_active = command_id; _esc_enumeration_index = 0; _esc_count = 0; - beep(_esc_enumeration_active ? 500.0F : 1000.0F, 0.5F); + beep(_esc_enumeration_active ? 500.0F : 1000.0F, 0.2F); uavcan::protocol::enumeration::Begin::Request req; // TODO: Incorrect implementation; the parameter name field should be left empty. // Leaving it as-is to avoid breaking compatibility with non-compliant nodes. @@ -757,8 +757,8 @@ uint8_t UavcanServers::get_next_dirty_node_id(uint8_t base) void UavcanServers::beep(float frequency, float duration) { uavcan::equipment::indication::BeepCommand cmd; - cmd.frequency = 500.0f; - cmd.duration = 0.5f; + cmd.frequency = frequency; + cmd.duration = duration; (void)_beep_pub.broadcast(cmd); } @@ -855,13 +855,13 @@ void UavcanServers::cb_enumeration_save(const uavcan::ServiceCallResult