mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 13:03:34 +08:00
Fix duplicate newlines at the end of files
This commit is contained in:
@@ -262,4 +262,3 @@ PARAM_DEFINE_INT32(VOXL_ESC_T_WARN, 0);
|
||||
* @max 200
|
||||
*/
|
||||
PARAM_DEFINE_INT32(VOXL_ESC_T_OVER, 0);
|
||||
|
||||
|
||||
@@ -41,4 +41,3 @@
|
||||
* @group Sensors
|
||||
*/
|
||||
PARAM_DEFINE_INT32(ADC_ADS1115_EN, 0);
|
||||
|
||||
|
||||
@@ -92,4 +92,3 @@ int BMP581_I2C::set_reg(uint8_t value, uint8_t addr)
|
||||
uint8_t cmd[2] = { (uint8_t)(addr), value};
|
||||
return transfer(cmd, sizeof(cmd), nullptr, 0);
|
||||
}
|
||||
|
||||
|
||||
@@ -163,4 +163,3 @@ PARAM_DEFINE_INT32(TRIG_PWM_SHOOT, 1900);
|
||||
* @reboot_required true
|
||||
*/
|
||||
PARAM_DEFINE_INT32(TRIG_PWM_NEUTRAL, 1500);
|
||||
|
||||
|
||||
@@ -134,4 +134,3 @@ private:
|
||||
perf_counter_t _comms_errors{perf_alloc(PC_COUNT, MODULE_NAME": communication errors")};
|
||||
perf_counter_t _fault_perf{perf_alloc(PC_ELAPSED, MODULE_NAME": fault detected")};
|
||||
};
|
||||
|
||||
|
||||
@@ -38,4 +38,3 @@ px4_add_module(
|
||||
DEPENDS
|
||||
drivers_rangefinder
|
||||
)
|
||||
|
||||
|
||||
@@ -4,4 +4,3 @@ serial_config:
|
||||
port_config_param:
|
||||
name: SENS_SF0X_CFG
|
||||
group: Sensors
|
||||
|
||||
|
||||
@@ -4,4 +4,3 @@ serial_config:
|
||||
port_config_param:
|
||||
name: SENS_TFMINI_CFG
|
||||
group: Sensors
|
||||
|
||||
|
||||
@@ -476,4 +476,3 @@ int DShotTelemetry::setBaudrate(unsigned baud)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
## SBF Library
|
||||
|
||||
The `sbf/` directory contains all the logic required to work with SBF, including message
|
||||
definitions, block IDs and a simple parser for the messages used by PX4.
|
||||
definitions, block IDs and a simple parser for the messages used by PX4.
|
||||
|
||||
@@ -55,4 +55,4 @@ px4_add_module(
|
||||
module.yaml
|
||||
DEPENDS
|
||||
git_gps_devices
|
||||
)
|
||||
)
|
||||
|
||||
@@ -13,4 +13,3 @@ serial_config:
|
||||
group: GPS
|
||||
default: GPS1
|
||||
label: Main GPS
|
||||
|
||||
|
||||
@@ -275,4 +275,4 @@ PARAM_DEFINE_INT32(GPS_1_GNSS, 0);
|
||||
* @reboot_required true
|
||||
* @group GPS
|
||||
*/
|
||||
PARAM_DEFINE_INT32(GPS_2_GNSS, 0);
|
||||
PARAM_DEFINE_INT32(GPS_2_GNSS, 0);
|
||||
|
||||
@@ -213,4 +213,3 @@ int FXOS8701CQ_SPI::write(unsigned reg, void *data, unsigned count)
|
||||
|
||||
return transfer(cmd, nullptr, sizeof(cmd));
|
||||
}
|
||||
|
||||
|
||||
@@ -84,4 +84,3 @@ mat3f vnm_negative_mat3f(mat3f m);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -44,4 +44,3 @@ px4_add_module(
|
||||
drivers_magnetometer
|
||||
px4_work_queue
|
||||
)
|
||||
|
||||
|
||||
@@ -116,4 +116,3 @@
|
||||
#define OSD_SYMBOL_ON_M 0x9B
|
||||
#define OSD_SYMBOL_FLY_M 0x9C
|
||||
#define OSD_SYMBOL_FLIGHT_TIME 0x70
|
||||
|
||||
|
||||
@@ -161,4 +161,3 @@ TEST_F(MessageDisplayTest, testMessageDisplayWarning)
|
||||
strncpy(correct, ground_truth, FULL_MSG_LENGTH);
|
||||
EXPECT_STREQ(message, correct);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,4 +43,3 @@ public:
|
||||
private:
|
||||
int _fd{-1};
|
||||
};
|
||||
|
||||
|
||||
@@ -848,4 +848,3 @@ enum betaflightDJIModesMask_e {
|
||||
// 0b00100000 resc
|
||||
// 0b01000000 acro
|
||||
// 0b10000000 acro
|
||||
|
||||
|
||||
@@ -172,4 +172,3 @@ private:
|
||||
char _device[64] {};
|
||||
PerformanceData _performance_data{};
|
||||
};
|
||||
|
||||
|
||||
@@ -30,4 +30,3 @@ actuator_output:
|
||||
200: PWM 200 Hz
|
||||
400: PWM 400 Hz
|
||||
reboot_required: true
|
||||
|
||||
|
||||
@@ -136,4 +136,3 @@ bool GHSTTelemetry::send_gps2_status()
|
||||
|
||||
return ghst_send_telemetry_gps2_status(_uart_fd, ground_speed, ground_course, num_sats, home_dist, home_dir, flags);
|
||||
}
|
||||
|
||||
|
||||
@@ -32,4 +32,3 @@ serial_config:
|
||||
description_extended: |
|
||||
Setting this to 'Disabled' will use a board-specific default port
|
||||
for RC input.
|
||||
|
||||
|
||||
@@ -38,4 +38,3 @@ px4_add_module(
|
||||
rpi_rc_in.cpp
|
||||
DEPENDS
|
||||
)
|
||||
|
||||
|
||||
@@ -211,4 +211,3 @@ int rpi_rc_in_main(int argc, char **argv)
|
||||
return 1;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -38,4 +38,3 @@ px4_add_module(
|
||||
bst.cpp
|
||||
DEPENDS
|
||||
)
|
||||
|
||||
|
||||
@@ -41,4 +41,3 @@ px4_add_module(
|
||||
MODULE_CONFIG
|
||||
module.yaml
|
||||
)
|
||||
|
||||
|
||||
@@ -4,4 +4,3 @@ serial_config:
|
||||
port_config_param:
|
||||
name: TEL_FRSKY_CONFIG
|
||||
group: Telemetry
|
||||
|
||||
|
||||
@@ -38,4 +38,3 @@ px4_add_module(
|
||||
hott_sensors.cpp
|
||||
DEPENDS
|
||||
)
|
||||
|
||||
|
||||
@@ -4,4 +4,3 @@ serial_config:
|
||||
port_config_param:
|
||||
name: TEL_HOTT_CONFIG
|
||||
group: Telemetry
|
||||
|
||||
|
||||
@@ -12,4 +12,3 @@ serial_config:
|
||||
port_config_param:
|
||||
name: ISBD_CONFIG
|
||||
group: Iridium SBD
|
||||
|
||||
|
||||
@@ -38,4 +38,3 @@ px4_add_module(
|
||||
test_ppm.cpp
|
||||
DEPENDS
|
||||
)
|
||||
|
||||
|
||||
@@ -10,4 +10,3 @@ actuator_output:
|
||||
group_label: 'PWMs'
|
||||
channel_label: 'PWM Channel'
|
||||
num_channels: 4
|
||||
|
||||
|
||||
@@ -63,4 +63,3 @@ PARAM_DEFINE_INT32(VOXL2_IO_MIN, 1000);
|
||||
* @unit us
|
||||
*/
|
||||
PARAM_DEFINE_INT32(VOXL2_IO_MAX, 2000);
|
||||
|
||||
|
||||
@@ -40,4 +40,3 @@ px4_add_library(heatshrink
|
||||
target_compile_options(heatshrink PRIVATE
|
||||
${MAX_CUSTOM_OPT_LEVEL}
|
||||
-DHEATSHRINK_DYNAMIC_ALLOC=0)
|
||||
|
||||
|
||||
@@ -419,4 +419,3 @@ def encode(data, window_size, lookahead_size):
|
||||
if sunk == in_size:
|
||||
heatshrink_encoder_finish(hse)
|
||||
return ret
|
||||
|
||||
|
||||
@@ -375,4 +375,3 @@ OStream &operator<<(OStream &os, const matrix::Dual<Type, N> &dual)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -58,4 +58,3 @@ add_custom_command(OUTPUT ${generated_actuators_metadata_file}
|
||||
COMMENT "Generating actuators.json"
|
||||
)
|
||||
add_custom_target(actuators_json DEPENDS ${generated_actuators_metadata_file})
|
||||
|
||||
|
||||
@@ -128,4 +128,3 @@ void ParamAutosave::Run()
|
||||
_retry_count = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -49,4 +49,3 @@ void param_primary_set_value(param_t param, const void *val);
|
||||
void param_primary_reset(param_t param);
|
||||
void param_primary_reset_all();
|
||||
void param_primary_get_counters(struct param_primary_counters *cnt);
|
||||
|
||||
|
||||
@@ -146,4 +146,3 @@ class JsonOutput():
|
||||
def Save(self, filename):
|
||||
with codecs.open(filename, 'w', 'utf-8') as f:
|
||||
f.write(self.output)
|
||||
|
||||
|
||||
@@ -428,4 +428,3 @@ bool ghst_send_telemetry_gps2_status(int uart_fd, uint16_t ground_speed, uint16_
|
||||
|
||||
return write(uart_fd, buf, offset) == offset;
|
||||
}
|
||||
|
||||
|
||||
@@ -520,7 +520,4 @@ bool RCTest::sumdTest()
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
ut_declare_test_c(rc_tests_main, RCTest)
|
||||
|
||||
|
||||
@@ -742,4 +742,3 @@ private:
|
||||
*/
|
||||
void _setFastDescend(float alt_setpoint, float alt);
|
||||
};
|
||||
|
||||
|
||||
@@ -18,4 +18,3 @@ if [ ! -f "$version_file" ]; then
|
||||
fi
|
||||
|
||||
sed -n 's/.*PX4_GIT_TAG_OR_BRANCH_NAME\s*"\(.*\)".*/version=\1/p' "$version_file"
|
||||
|
||||
|
||||
@@ -366,4 +366,3 @@ const char *px4_firmware_oem_version_string(void)
|
||||
{
|
||||
return PX4_GIT_OEM_VERSION_STR;
|
||||
}
|
||||
|
||||
|
||||
@@ -206,4 +206,3 @@ __EXPORT uint64_t px4_os_version_binary(void);
|
||||
__EXPORT const char *px4_firmware_oem_version_string(void);
|
||||
|
||||
__END_DECLS
|
||||
|
||||
|
||||
@@ -138,5 +138,3 @@ static constexpr const int16_t totalintensity_table[19][37] {
|
||||
static constexpr float WMM_TOTALINTENSITY_SCALE_TO_NANOTESLA = 2.04183477f;
|
||||
static constexpr float WMM_TOTALINTENSITY_MIN_NANOTESLA = 22226.9f; // latitude: -30, longitude: -60
|
||||
static constexpr float WMM_TOTALINTENSITY_MAX_NANOTESLA = 66904.8f; // latitude: -60, longitude: 130
|
||||
|
||||
|
||||
|
||||
@@ -41,4 +41,3 @@ px4_add_module(
|
||||
DEPENDS
|
||||
world_magnetic_model
|
||||
)
|
||||
|
||||
|
||||
@@ -190,4 +190,3 @@ private:
|
||||
&_vtol_checks,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -285,4 +285,3 @@ TEST_F(ReporterTest, reporting_multiple)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -183,4 +183,3 @@ void EscChecks::checkEscStatus(const Context &context, Report &reporter, const e
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -879,4 +879,3 @@ bool EstimatorChecks::checkPosVelValidity(const hrt_abstime &now, const bool dat
|
||||
|
||||
return valid;
|
||||
}
|
||||
|
||||
|
||||
@@ -36,4 +36,3 @@ add_library(mode_util
|
||||
mode_requirements.cpp
|
||||
)
|
||||
add_dependencies(mode_util uorb_headers prebuild_targets)
|
||||
|
||||
|
||||
@@ -130,4 +130,3 @@ void FactoryCalibrationStorage::cleanup()
|
||||
param_control_autosave(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -194,4 +194,3 @@ private:
|
||||
);
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -283,4 +283,3 @@ private:
|
||||
);
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -137,4 +137,3 @@ if __name__ == "__main__":
|
||||
html_template_content = html_template_content.replace(html_tag, html_conditions)
|
||||
with open(html_output_file, 'w') as file:
|
||||
file.write(html_template_content)
|
||||
|
||||
|
||||
@@ -353,4 +353,3 @@ int lm_mag_fit(const float x[], const float y[], const float z[], unsigned int s
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -232,4 +232,3 @@ static inline union px4_custom_mode get_px4_custom_mode(uint8_t nav_state)
|
||||
}
|
||||
|
||||
#endif /* DEFINE_GET_PX4_CUSTOM_MODE */
|
||||
|
||||
|
||||
@@ -100,4 +100,3 @@ private:
|
||||
float _longitude;
|
||||
|
||||
};
|
||||
|
||||
|
||||
-1
@@ -56,4 +56,3 @@ void ActuatorEffectivenessRoverAckermann::updateSetpoint(const matrix::Vector<fl
|
||||
{
|
||||
stopMaskedMotorsWithZeroThrust(_motors_mask, actuator_sp);
|
||||
}
|
||||
|
||||
|
||||
@@ -559,4 +559,3 @@ float Ekf::getMagDeclination()
|
||||
// otherwise use the parameter value
|
||||
return math::radians(_params.mag_declination_deg);
|
||||
}
|
||||
|
||||
|
||||
@@ -46,4 +46,3 @@ px4_add_module(
|
||||
DEPENDS
|
||||
geo
|
||||
)
|
||||
|
||||
|
||||
@@ -260,4 +260,3 @@ void OutputBase::set_stabilize(bool roll_stabilize, bool pitch_stabilize, bool y
|
||||
}
|
||||
|
||||
} /* namespace gimbal */
|
||||
|
||||
|
||||
@@ -280,4 +280,3 @@
|
||||
|
||||
|
||||
#endif /* __CMSIS_COMPILER_H */
|
||||
|
||||
|
||||
@@ -514,4 +514,3 @@ extern const unsigned char hwLUT[256];
|
||||
#endif /* (defined(ARM_MATH_MVEI) || defined(ARM_MATH_HELIUM)) */
|
||||
|
||||
#endif /* ARM_COMMON_TABLES_H */
|
||||
|
||||
|
||||
@@ -45,4 +45,3 @@ px4_add_module(
|
||||
DEPENDS
|
||||
hysteresis
|
||||
)
|
||||
|
||||
|
||||
@@ -41,4 +41,3 @@ px4_add_module(
|
||||
KalmanFilter.cpp
|
||||
DEPENDS
|
||||
)
|
||||
|
||||
|
||||
@@ -200,4 +200,3 @@ parameters:
|
||||
num_instances: *max_num_config_instances
|
||||
default: [0.015, 0.015, 0.015]
|
||||
reboot_required: true
|
||||
|
||||
|
||||
@@ -164,4 +164,3 @@ private:
|
||||
(ParamFloat<px4::params::COM_SPOOLUP_TIME>) _param_com_spoolup_time
|
||||
)
|
||||
};
|
||||
|
||||
|
||||
@@ -379,4 +379,3 @@ dma_reset(void)
|
||||
stm32_dmastart(rx_dma, rx_dma_callback, NULL, false);
|
||||
rCR3 |= USART_CR3_DMAR;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,4 +39,3 @@
|
||||
* @group UAVCAN
|
||||
*/
|
||||
PARAM_DEFINE_INT32(SIM_GZ_EN, 0);
|
||||
|
||||
|
||||
@@ -40,4 +40,3 @@ px4_add_module(
|
||||
tailsitter.cpp
|
||||
standard.cpp
|
||||
)
|
||||
|
||||
|
||||
@@ -37,4 +37,3 @@ px4_add_module(
|
||||
SRCS
|
||||
actuator_test.cpp
|
||||
)
|
||||
|
||||
|
||||
@@ -39,4 +39,3 @@ px4_add_module(
|
||||
dumpfile.cpp
|
||||
DEPENDS
|
||||
)
|
||||
|
||||
|
||||
@@ -38,4 +38,3 @@ px4_add_module(
|
||||
led_control.cpp
|
||||
DEPENDS
|
||||
)
|
||||
|
||||
|
||||
@@ -38,4 +38,3 @@ px4_add_module(
|
||||
mtd.cpp
|
||||
DEPENDS
|
||||
)
|
||||
|
||||
|
||||
@@ -39,4 +39,3 @@ px4_add_module(
|
||||
nshterm.cpp
|
||||
DEPENDS
|
||||
)
|
||||
|
||||
|
||||
@@ -39,4 +39,3 @@ px4_add_module(
|
||||
DEPENDS
|
||||
px4_platform
|
||||
)
|
||||
|
||||
|
||||
@@ -38,4 +38,3 @@ px4_add_module(
|
||||
reflect.c
|
||||
DEPENDS
|
||||
)
|
||||
|
||||
|
||||
@@ -38,4 +38,3 @@ px4_add_module(
|
||||
sd_bench.cpp
|
||||
DEPENDS
|
||||
)
|
||||
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
|
||||
/serial_test
|
||||
|
||||
|
||||
@@ -224,4 +224,3 @@ int test_file2(int argc, char *argv[])
|
||||
|
||||
return test_corruption(filename, write_chunk, write_size, flags);
|
||||
}
|
||||
|
||||
|
||||
@@ -38,4 +38,3 @@ px4_add_module(
|
||||
SRCS
|
||||
listener_main.cpp
|
||||
)
|
||||
|
||||
|
||||
@@ -38,4 +38,3 @@ px4_add_module(
|
||||
usb_connected.cpp
|
||||
DEPENDS
|
||||
)
|
||||
|
||||
|
||||
@@ -37,4 +37,3 @@ px4_add_module(
|
||||
SRCS
|
||||
template_module.cpp
|
||||
)
|
||||
|
||||
|
||||
@@ -87,4 +87,3 @@ private:
|
||||
uORB::SubscriptionInterval _parameter_update_sub{ORB_ID(parameter_update), 1_s};
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user