Skip to content

Commit

Permalink
accel and gyro calibration cleanup
Browse files Browse the repository at this point in the history
 - kill IOCTLs for accel and gyro calibration
 - move accel/calibration entirely to sensors module
  • Loading branch information
dagar committed Mar 10, 2020
1 parent ab3670e commit 1d1a985
Show file tree
Hide file tree
Showing 79 changed files with 562 additions and 1,448 deletions.
1 change: 0 additions & 1 deletion boards/airmind/mindpx-v2/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ px4_add_board(
vtol_att_control
SYSTEMCMDS
bl_update
config
#dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/atlflight/eagle/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ px4_add_board(
vtol_att_control
SYSTEMCMDS
#bl_update
#config
#dumpfile
esc_calib
#hardfault_log
Expand Down
1 change: 0 additions & 1 deletion boards/atlflight/excelsior/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ px4_add_board(
vtol_att_control
SYSTEMCMDS
#bl_update
#config
#dumpfile
esc_calib
#hardfault_log
Expand Down
1 change: 0 additions & 1 deletion boards/av/x-v1/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ px4_add_board(
vtol_att_control
SYSTEMCMDS
#bl_update
config
dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/bitcraze/crazyflie/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ px4_add_board(
#temperature_compensation
SYSTEMCMDS
bl_update
config
dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/holybro/durandal-v1/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ px4_add_board(
vtol_att_control
SYSTEMCMDS
bl_update
config
dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/holybro/durandal-v1/stackcheck.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ px4_add_board(
vtol_att_control
SYSTEMCMDS
bl_update
config
dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/holybro/kakutef7/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ px4_add_board(
#temperature_compensation
SYSTEMCMDS
bl_update
config
dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/intel/aerofc-v1/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ px4_add_board(
#vtol_att_control
SYSTEMCMDS
bl_update
config
#dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/intel/aerofc-v1/rtps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ px4_add_board(
#vtol_att_control
SYSTEMCMDS
bl_update
config
#dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/modalai/fc-v1/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ px4_add_board(
vtol_att_control
SYSTEMCMDS
bl_update
config
dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/mro/ctrl-zero-f7/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ px4_add_board(
vtol_att_control
SYSTEMCMDS
bl_update
config
dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/mro/x21-777/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ px4_add_board(
vtol_att_control
SYSTEMCMDS
bl_update
config
dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/mro/x21/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ px4_add_board(
vtol_att_control
SYSTEMCMDS
bl_update
config
#dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/nxp/fmuk66-v3/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ px4_add_board(
vtol_att_control
SYSTEMCMDS
bl_update
config
#dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/nxp/fmurt1062-v1/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ px4_add_board(
vmount
SYSTEMCMDS
# bl_update
config
dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/omnibus/f4sd/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ px4_add_board(
#vtol_att_control
SYSTEMCMDS
#bl_update
config
dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v2/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ px4_add_board(
vtol_att_control
SYSTEMCMDS
bl_update
#config
#dmesg
#dumpfile
#esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v2/fixedwing.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ px4_add_board(
#vmount
SYSTEMCMDS
#bl_update
#config
#dumpfile
#esc_calib
hardfault_log
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v2/lpe.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ px4_add_board(

SYSTEMCMDS
bl_update
#config
#dumpfile
#esc_calib
hardfault_log
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v2/multicopter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ px4_add_board(
vmount
SYSTEMCMDS
#bl_update
#config
#dumpfile
#esc_calib
hardfault_log
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v2/rover.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ px4_add_board(

SYSTEMCMDS
bl_update
#config
#dumpfile
#esc_calib
hardfault_log
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v2/test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ px4_add_board(
#vtol_att_control
SYSTEMCMDS
#bl_update
#config
#dmesg
#dumpfile
#esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v3/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ px4_add_board(
vtol_att_control
SYSTEMCMDS
bl_update
config
#dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v3/rtps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ px4_add_board(
vtol_att_control
SYSTEMCMDS
bl_update
config
#dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v3/stackcheck.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ px4_add_board(

SYSTEMCMDS
bl_update
config
dumpfile
esc_calib
hardfault_log
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v4/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ px4_add_board(
vtol_att_control
SYSTEMCMDS
bl_update
config
#dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v4/rtps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ px4_add_board(
vtol_att_control
SYSTEMCMDS
bl_update
config
#dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v4/stackcheck.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ px4_add_board(
vtol_att_control
SYSTEMCMDS
bl_update
config
#dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v4pro/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ px4_add_board(
vtol_att_control
SYSTEMCMDS
bl_update
config
#dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v4pro/rtps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ px4_add_board(
vtol_att_control
SYSTEMCMDS
bl_update
config
#dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v5/critmonitor.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ px4_add_board(
vtol_att_control
SYSTEMCMDS
bl_update
config
dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v5/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ px4_add_board(
vtol_att_control
SYSTEMCMDS
bl_update
config
dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v5/fixedwing.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ px4_add_board(
vmount
SYSTEMCMDS
bl_update
config
dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v5/irqmonitor.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ px4_add_board(
vtol_att_control
SYSTEMCMDS
bl_update
config
dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v5/multicopter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ px4_add_board(
vmount
SYSTEMCMDS
bl_update
config
dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v5/rover.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ px4_add_board(
vmount
SYSTEMCMDS
bl_update
config
dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v5/rtps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ px4_add_board(
vtol_att_control
SYSTEMCMDS
bl_update
config
dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v5/stackcheck.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ px4_add_board(
vtol_att_control
SYSTEMCMDS
bl_update
config
dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v5x/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ px4_add_board(
vtol_att_control
SYSTEMCMDS
bl_update
config
dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/px4/fmu-v5x/p2_base_phy_LAN8742Ai.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ px4_add_board(
vtol_att_control
SYSTEMCMDS
bl_update
config
dmesg
dumpfile
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/px4/sitl/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ px4_add_board(
uuv_att_control

SYSTEMCMDS
#config
#dumpfile
dyn
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/px4/sitl/rtps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ px4_add_board(
vmount
vtol_att_control
SYSTEMCMDS
#config
#dumpfile
dyn
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/px4/sitl/test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ px4_add_board(
vmount
vtol_att_control
SYSTEMCMDS
#config
#dumpfile
dyn
esc_calib
Expand Down
1 change: 0 additions & 1 deletion boards/uvify/core/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ px4_add_board(
vmount
SYSTEMCMDS
bl_update
config
dmesg
dumpfile
esc_calib
Expand Down
14 changes: 8 additions & 6 deletions platforms/common/include/px4_platform_common/module_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ class ModuleParams : public ListNode<ModuleParams *>
setParent(parent);
}

// empty copy and move constructors (don't copy _children)
ModuleParams(const ModuleParams &) {};
ModuleParams(ModuleParams &&) {};

// no assignment
ModuleParams &operator=(const ModuleParams &) = delete;
ModuleParams &operator=(ModuleParams &&) = delete;

/**
* @brief Sets the parent module. This is typically not required,
* only in cases where the parent cannot be set via constructor.
Expand All @@ -65,12 +73,6 @@ class ModuleParams : public ListNode<ModuleParams *>

virtual ~ModuleParams() = default;

// Disallow copy construction and move assignment.
ModuleParams(const ModuleParams &) = delete;
ModuleParams &operator=(const ModuleParams &) = delete;
ModuleParams(ModuleParams &&) = delete;
ModuleParams &operator=(ModuleParams &&) = delete;

protected:
/**
* @brief Call this method whenever the module gets a parameter change notification.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct wq_config_t {

namespace wq_configurations
{
static constexpr wq_config_t rate_ctrl{"wq:rate_ctrl", 1600, 0}; // PX4 inner loop highest priority
static constexpr wq_config_t rate_ctrl{"wq:rate_ctrl", 1800, 0}; // PX4 inner loop highest priority

static constexpr wq_config_t SPI0{"wq:SPI0", 2000, -1};
static constexpr wq_config_t SPI1{"wq:SPI1", 2000, -2};
Expand Down
Loading

0 comments on commit 1d1a985

Please sign in to comment.