Browse Source

refator events: move temperature calibration implementation into subdirectory

sbg
Beat Küng 8 years ago committed by Lorenz Meier
parent
commit
603cd1e6dc
  1. 6
      src/modules/events/CMakeLists.txt
  2. 10
      src/modules/events/send_event.cpp
  3. 0
      src/modules/events/temperature_calibration/accel.cpp
  4. 0
      src/modules/events/temperature_calibration/baro.cpp
  5. 0
      src/modules/events/temperature_calibration/gyro.cpp
  6. 0
      src/modules/events/temperature_calibration/polyfit.hpp
  7. 0
      src/modules/events/temperature_calibration/temperature_calibration.h

6
src/modules/events/CMakeLists.txt

@ -38,9 +38,9 @@ px4_add_module( @@ -38,9 +38,9 @@ px4_add_module(
COMPILE_FLAGS
SRCS
send_event.cpp
temperature_gyro_calibration.cpp
temperature_accel_calibration.cpp
temperature_baro_calibration.cpp
temperature_calibration/gyro.cpp
temperature_calibration/accel.cpp
temperature_calibration/baro.cpp
DEPENDS
platforms__common
modules__uORB

10
src/modules/events/send_event.cpp

@ -32,7 +32,7 @@ @@ -32,7 +32,7 @@
****************************************************************************/
#include "send_event.h"
#include "temperature_calibration.h"
#include "temperature_calibration/temperature_calibration.h"
#include <px4_log.h>
#include <drivers/drv_hrt.h>
@ -129,7 +129,9 @@ void SendEvent::process_commands() @@ -129,7 +129,9 @@ void SendEvent::process_commands()
} else {
answer_command(cmd, vehicle_command_s::VEHICLE_CMD_RESULT_FAILED);
}
} else if ((int)(cmd.param1) == 3) { //TODO: this needs to be specified in mavlink (and adjust commander accordingly)...
} else if ((int)(cmd.param1) ==
3) { //TODO: this needs to be specified in mavlink (and adjust commander accordingly)...
if (run_temperature_accel_calibration() == 0) {
answer_command(cmd, vehicle_command_s::VEHICLE_CMD_RESULT_ACCEPTED);
@ -137,7 +139,9 @@ void SendEvent::process_commands() @@ -137,7 +139,9 @@ void SendEvent::process_commands()
} else {
answer_command(cmd, vehicle_command_s::VEHICLE_CMD_RESULT_FAILED);
}
} else if ((int)(cmd.param1) == 4) { //TODO: this needs to be specified in mavlink (and adjust commander accordingly)...
} else if ((int)(cmd.param1) ==
4) { //TODO: this needs to be specified in mavlink (and adjust commander accordingly)...
if (run_temperature_baro_calibration() == 0) {
answer_command(cmd, vehicle_command_s::VEHICLE_CMD_RESULT_ACCEPTED);

0
src/modules/events/temperature_accel_calibration.cpp → src/modules/events/temperature_calibration/accel.cpp

0
src/modules/events/temperature_baro_calibration.cpp → src/modules/events/temperature_calibration/baro.cpp

0
src/modules/events/temperature_gyro_calibration.cpp → src/modules/events/temperature_calibration/gyro.cpp

0
src/modules/events/polyfit.hpp → src/modules/events/temperature_calibration/polyfit.hpp

0
src/modules/events/temperature_calibration.h → src/modules/events/temperature_calibration/temperature_calibration.h

Loading…
Cancel
Save