Skip to content

Commit

Permalink
Merge pull request #168 from ut-issl/hotfix/fix-typo
Browse files Browse the repository at this point in the history
[Hotfix] Typoの一括修正
  • Loading branch information
200km authored Aug 14, 2023
2 parents a158406 + 0a16b44 commit e275f8a
Show file tree
Hide file tree
Showing 47 changed files with 220 additions and 223 deletions.
10 changes: 4 additions & 6 deletions src/src_user/Applications/DriverInstances/di_mpu9250.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

static void DI_MPU9250_init_(void);
static void DI_MPU9250_update_(void);
static void DI_MPU9250_temperature_caliblation_(void);
static void DI_MPU9250_temperature_calibration_(void);

static MPU9250_Driver mpu9250_driver_[MPU9250_IDX_MAX];
const MPU9250_Driver* const mpu9250_driver[MPU9250_IDX_MAX] = {&mpu9250_driver_[MPU9250_IDX_ON_AOBC]};
Expand Down Expand Up @@ -103,14 +103,12 @@ static void DI_MPU9250_init_(void)
// 温度補正
const float kRangeLow = MPU9250_PARAMETERS_temperature_range_low_degC;
const float kRangeHigh = MPU9250_PARAMETERS_temperature_range_high_degC;
// 切片は実機計測値、切片はOPT-1, RWASATでの測定値を利用
// 特にSFは小さいのでなしとする
// SF,バイアスは y = SF*x - BIASという式を想定
// X軸
ret3 = POLYNOMIAL_APPROX_initialize(&(di_mpu9250_[MPU9250_IDX_ON_AOBC].gyro_bias_compo_rad_s[0]),
MPU9250_PARAMETERS_kNumCoeffTempCalib, MPU9250_PARAMETERS_bias_coeff_compo_x,
kRangeLow, kRangeHigh);
if (ret3 < 0) Printf("MPU9250 Gyro-X Bias Temperature Caliblation init Failed ! \n");
if (ret3 < 0) Printf("MPU9250 Gyro-X Bias Temperature Calibration init Failed ! \n");

ret3 = POLYNOMIAL_APPROX_initialize(&(di_mpu9250_[MPU9250_IDX_ON_AOBC].gyro_scale_factor_compo[0]),
MPU9250_PARAMETERS_kNumCoeffTempCalib, MPU9250_PARAMETERS_scale_factor_coeff_compo_x,
Expand Down Expand Up @@ -160,12 +158,12 @@ static void DI_MPU9250_update_(void)
EL_record_event(EL_GROUP_TLM_ERROR_MPU9250, (uint32_t)MPU9250_IDX_ON_AOBC, EL_ERROR_LEVEL_HIGH, (uint32_t)ret);
}

DI_MPU9250_temperature_caliblation_();
DI_MPU9250_temperature_calibration_();
}
return;
}

static void DI_MPU9250_temperature_caliblation_(void)
static void DI_MPU9250_temperature_calibration_(void)
{
for (int mpu_idx = 0; mpu_idx < MPU9250_IDX_MAX; mpu_idx++)
{
Expand Down
18 changes: 9 additions & 9 deletions src/src_user/Applications/DriverInstances/di_stim210.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

static void DI_STIM210_init_(void);
static void DI_STIM210_update_(void);
static void DI_STIM210_temperature_caliblation_(void);
static void DI_STIM210_temperature_calibration_(void);

static STIM210_Driver stim210_driver_[STIM210_IDX_MAX];
const STIM210_Driver* const stim210_driver[STIM210_IDX_MAX] = {&stim210_driver_[STIM210_IDX_IN_UNIT]};
Expand Down Expand Up @@ -83,26 +83,26 @@ static void DI_STIM210_init_(void)
// X軸
ret = POLYNOMIAL_APPROX_initialize(&(di_stim210_[STIM210_IDX_IN_UNIT].bias_compo_rad_s[0]),
STIM210_PARAMETERS_kNumCoeffTempCalib, STIM210_PARAMETERS_bias_coeff_compo_x, kRangeLow, kRangeHigh);
if (ret < 0) Printf("STIM210 Gyro-X Bias Temperature Caliblation init Failed ! \n");
if (ret < 0) Printf("STIM210 Gyro-X Bias Temperature Calibration init Failed ! \n");
ret = POLYNOMIAL_APPROX_initialize(&(di_stim210_[STIM210_IDX_IN_UNIT].scale_factor_compo[0]),
STIM210_PARAMETERS_kNumCoeffTempCalib, STIM210_PARAMETERS_scale_factor_coeff_compo_x, kRangeLow, kRangeHigh);
if (ret < 0) Printf("STIM210 Gyro-X SF Temperature Caliblation init Failed ! \n");
if (ret < 0) Printf("STIM210 Gyro-X SF Temperature Calibration init Failed ! \n");

// Y軸
ret = POLYNOMIAL_APPROX_initialize(&(di_stim210_[STIM210_IDX_IN_UNIT].bias_compo_rad_s[1]),
STIM210_PARAMETERS_kNumCoeffTempCalib, STIM210_PARAMETERS_bias_coeff_compo_y, kRangeLow, kRangeHigh);
if (ret < 0) Printf("STIM210 Gyro-Y Bias Temperature Caliblation init Failed ! \n");
if (ret < 0) Printf("STIM210 Gyro-Y Bias Temperature Calibration init Failed ! \n");
ret = POLYNOMIAL_APPROX_initialize(&(di_stim210_[STIM210_IDX_IN_UNIT].scale_factor_compo[1]),
STIM210_PARAMETERS_kNumCoeffTempCalib, STIM210_PARAMETERS_scale_factor_coeff_compo_y, kRangeLow, kRangeHigh);
if (ret < 0) Printf("STIM210 Gyro-Y SF Temperature Caliblation init Failed ! \n");
if (ret < 0) Printf("STIM210 Gyro-Y SF Temperature Calibration init Failed ! \n");

// Z軸
ret = POLYNOMIAL_APPROX_initialize(&(di_stim210_[STIM210_IDX_IN_UNIT].bias_compo_rad_s[2]),
STIM210_PARAMETERS_kNumCoeffTempCalib, STIM210_PARAMETERS_bias_coeff_compo_z, kRangeLow, kRangeHigh);
if (ret < 0) Printf("STIM210 Gyro-Z Bias Temperature Caliblation init Failed ! \n");
if (ret < 0) Printf("STIM210 Gyro-Z Bias Temperature Calibration init Failed ! \n");
ret = POLYNOMIAL_APPROX_initialize(&(di_stim210_[STIM210_IDX_IN_UNIT].scale_factor_compo[2]),
STIM210_PARAMETERS_kNumCoeffTempCalib, STIM210_PARAMETERS_scale_factor_coeff_compo_z, kRangeLow, kRangeHigh);
if (ret < 0) Printf("STIM210 Gyro-Z SF Temperature Caliblation init Failed ! \n");
if (ret < 0) Printf("STIM210 Gyro-Z SF Temperature Calibration init Failed ! \n");

return;
}
Expand Down Expand Up @@ -146,7 +146,7 @@ static void DI_STIM210_update_(void)
// NOT REACHED
}

DI_STIM210_temperature_caliblation_();
DI_STIM210_temperature_calibration_();
}
else if (power_switch_control->switch_state_unreg[APP_PSC_UNREG_IDX_STIM210] == APP_PSC_STATE_OFF)
{
Expand All @@ -155,7 +155,7 @@ static void DI_STIM210_update_(void)
}
}

static void DI_STIM210_temperature_caliblation_(void)
static void DI_STIM210_temperature_calibration_(void)
{
for (int stim_idx = 0; stim_idx < STIM210_IDX_MAX; stim_idx++)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static AOCS_ERROR APP_BDOT_calculate_mag_vec_time_derivative_(void);
* @return void
* @note MTQの出力がOFFのときに呼び出され,MTQの出力をONにする役割を持つ
*/
static void APP_BDOT_cauculate_target_mtq_output_(void);
static void APP_BDOT_calculate_target_mtq_output_(void);

/**
* @brief MTQ目標磁気モーメント維持関数
Expand Down Expand Up @@ -92,7 +92,7 @@ void APP_BDOT_exec_(void)
switch (aocs_manager->mtq_output_state)
{
case AOCS_MANAGER_MTQ_OUTPUT_STATE_OFF:
APP_BDOT_cauculate_target_mtq_output_();
APP_BDOT_calculate_target_mtq_output_();
break;
case AOCS_MANAGER_MTQ_OUTPUT_STATE_ON:
APP_BDOT_maintain_mtq_output_();
Expand All @@ -106,7 +106,7 @@ void APP_BDOT_exec_(void)
}
}

void APP_BDOT_cauculate_target_mtq_output_(void)
void APP_BDOT_calculate_target_mtq_output_(void)
{
AOCS_ERROR ret;
ret = APP_BDOT_calculate_mag_vec_time_derivative_();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void APP_UNLOADING_exec_(void)
APP_UNLOADING_update_unloading_state_();
APP_UNLOADING_calc_output_torque();

// アンローディング処理がenableになっているときのみ,出力目標トルクをAOCS Manegerにセットする
// アンローディング処理がenableになっているときのみ,出力目標トルクをAOCS Managerにセットする
// disableのときは,出力目標トルクのセットはしないが,トルク計算自体はcalc_torque_outputで行われている.
if (unloading_.exec_is_enable == APP_UNLOADING_EXEC_ENABLE)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ extern const Unloading* const unloading;
AppInfo APP_UNLOADING_create_app(void);

CCP_CmdRet Cmd_APP_UNLOADING_SET_ENABLE(const CommonCmdPacket* packet);
CCP_CmdRet Cmd_APP_UNLOADING_SET_ANGULAR_VEROCITY_THRESHOLD(const CommonCmdPacket* packet);
CCP_CmdRet Cmd_APP_UNLOADING_SET_ANGULAR_VEROCITY_THRESHOLD(const CommonCmdPacket* packet); // TODO Fix typo (major update)
CCP_CmdRet Cmd_APP_UNLOADING_SET_CONTROL_GAIN(const CommonCmdPacket* packet);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
// Satellite parameters
#include <src_user/Settings/SatelliteParameters/attitude_determination_parameters.h>

MATRIX_DEFINE_MATRIX_SRTUCT(6, 3, float);
MATRIX_DEFINE_MATRIX_SRTUCT(6, 1, float);
MATRIX_DEFINE_MATRIX_SRTUCT(3, 6, float);
MATRIX_DEFINE_MATRIX_SRTUCT(3, 3, float);
MATRIX_DEFINE_MATRIX_SRTUCT(3, 1, float);
MATRIX_DEFINE_MATRIX_STRUCT(6, 3, float);
MATRIX_DEFINE_MATRIX_STRUCT(6, 1, float);
MATRIX_DEFINE_MATRIX_STRUCT(3, 6, float);
MATRIX_DEFINE_MATRIX_STRUCT(3, 3, float);
MATRIX_DEFINE_MATRIX_STRUCT(3, 1, float);

static SttGyroEkf stt_gyro_ekf_;
const SttGyroEkf* const stt_gyro_ekf = &stt_gyro_ekf_;
Expand Down Expand Up @@ -106,7 +106,7 @@ typedef enum
APP_STT_GYRO_EKF_STT_STATUS_NG //!< STTからQuaternionが更新されていない
} APP_STT_GYRO_EKF_STT_STATUS;

static const float APP_STT_GYRO_EKF_kAccceptableMaxTimeStepSec_ = 1.0f; //!< 時間刻みがこれより大きい場合フィルタ計算をスキップ
static const float APP_STT_GYRO_EKF_kAcceptableMaxTimeStepSec_ = 1.0f; //!< 時間刻みがこれより大きい場合フィルタ計算をスキップ
static const float APP_STT_GYRO_EKF_kComputationCycle_ = 0.1f; //!< EKFアプリの計算周期.タスクリストでの実行頻度と合わせること
static float APP_STT_GYRO_EKF_rate_bias_propagation_coefficient_; //!< レートバイアス伝搬の漸化式の係数.計算速度のために固定値.
static CalculationTime APP_STT_GYRO_EKF_calculation_time_;
Expand Down Expand Up @@ -305,7 +305,7 @@ static void APP_STT_GYRO_EKF_exec_(void)

void APP_STT_GYRO_EKF_execute_estimation(float time_step_s)
{
if (time_step_s > APP_STT_GYRO_EKF_kAccceptableMaxTimeStepSec_)
if (time_step_s > APP_STT_GYRO_EKF_kAcceptableMaxTimeStepSec_)
{
// フィルタ計算を回し始めた初回や,別のモードに遷移したあと戻ってきた初回などは,time_step_sが大きな値になっている.
// これらのケースでは,状態変数や推定結果に,ある程度正しい値を入れて初期化しておく.
Expand Down Expand Up @@ -729,14 +729,14 @@ CCP_CmdRet Cmd_STT_GYRO_EKF_SET_INITIAL_COVARIANCE_MATRIX(const CommonCmdPacket*
size_t arg_num;
for (arg_num = 0; arg_num < PHYSICAL_CONST_THREE_DIM; arg_num++)
{
float initial_covarinace_upper_diagonal_component = CCP_get_param_from_packet(packet, arg_num, float);
if (initial_covarinace_upper_diagonal_component < 0.0f) return CCP_make_cmd_ret_without_err_code(CCP_EXEC_ILLEGAL_PARAMETER);
stt_gyro_ekf_.initial_covariance.diagonal_component_stt[arg_num] = initial_covarinace_upper_diagonal_component;
float initial_covariance_upper_diagonal_component = CCP_get_param_from_packet(packet, arg_num, float);
if (initial_covariance_upper_diagonal_component < 0.0f) return CCP_make_cmd_ret_without_err_code(CCP_EXEC_ILLEGAL_PARAMETER);
stt_gyro_ekf_.initial_covariance.diagonal_component_stt[arg_num] = initial_covariance_upper_diagonal_component;
}

float initial_covarinace_lower_diagonal_component = CCP_get_param_from_packet(packet, arg_num, float);
if (initial_covarinace_lower_diagonal_component < 0.0f) return CCP_make_cmd_ret_without_err_code(CCP_EXEC_ILLEGAL_PARAMETER);
stt_gyro_ekf_.initial_covariance.diagonal_component_gyro = initial_covarinace_lower_diagonal_component;
float initial_covariance_lower_diagonal_component = CCP_get_param_from_packet(packet, arg_num, float);
if (initial_covariance_lower_diagonal_component < 0.0f) return CCP_make_cmd_ret_without_err_code(CCP_EXEC_ILLEGAL_PARAMETER);
stt_gyro_ekf_.initial_covariance.diagonal_component_gyro = initial_covariance_lower_diagonal_component;

return CCP_make_cmd_ret_without_err_code(CCP_EXEC_SUCCESS);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <src_user/Library/matrix.h>
#include <src_user/Library/vector3.h>

MATRIX_DEFINE_MATRIX_SRTUCT(6, 6, float);
MATRIX_DEFINE_MATRIX_STRUCT(6, 6, float);

/**
* @struct EstimatedResult
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @file sun_vecor_propagator.h
* @file sun_vector_propagator.h
* @brief 太陽方向ベクトル伝搬アプリ
*
* 最後にサンセンサによって太陽方向が取れた時の姿勢を基準姿勢とする.基準姿勢から今の姿勢への変換クオータニオンを計算し,それを使って今の太陽方向ベクトルを計算する.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
static MtqSeirenController mtq_seiren_controller_;
const MtqSeirenController* const mtq_seiren_controller = &mtq_seiren_controller_;

//!< 元のcase文仕様に伴って生じる,MTQoff期間の余分な長さ [msec]
//!< 元のcase文仕様に伴って生じる,MTQ off期間の余分な長さ [msec]
static const uint32_t APP_MTQ_SEIREN_CONTROLLER_kDelayForMTQStopExec_ms_ = 100;

static void APP_MTQ_SEIREN_CONTROLLER_init_(void);
Expand Down Expand Up @@ -76,7 +76,7 @@ static void APP_MTQ_SEIREN_CONTROLLER_wait_for_demagnitization_(void);
* @brief MTQ出力磁気モーメント実効値clip関数
* @param[out] clipped_mag_moment_cmd_Am2s : clip後のMTQ駆動/消磁の合計インターバルの間に出力できる磁気モーメント積算値 [Am^2sec]
* @param[in] mag_moment_cmd_Am2 : clip前の磁気モーメント出力指令値 [Am^2]
* @note MTQ_SEIREN_CONTROLLERアプリ内でMTQ駆動/消磁の比率とPWMduty比の計算が混ざって同じものとして計算されてしまっている
* @note MTQ_SEIREN_CONTROLLERアプリ内でMTQ駆動/消磁の比率とPWM duty比の計算が混ざって同じものとして計算されてしまっている
* @note このことへの対処として,MTQ駆動/消磁の合計インターバルに対する駆動時間の比率を使って最大MTQ駆動可能量を補正した上でclipする
*/
static void APP_MTQ_SEIREN_CONTROLLER_clip_mtq_out_Am2s_(float clipped_mag_moment_cmd_Am2s[PHYSICAL_CONST_THREE_DIM],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,33 +317,33 @@ CCP_CmdRet Cmd_APP_MPU9250_FILTER_SET_SPIKE_FILTER_PARAM(const CommonCmdPacket*
if (axis_id >= PHYSICAL_CONST_THREE_DIM) return CCP_make_cmd_ret_without_err_code(CCP_EXEC_ILLEGAL_PARAMETER);
read_out_offset++;

SpikeFilter_Config config_recieved;
config_recieved.count_limit_to_accept = param[read_out_offset];
SpikeFilter_Config config_received;
config_received.count_limit_to_accept = param[read_out_offset];
read_out_offset++;

config_recieved.count_limit_to_reject_continued_warning = param[read_out_offset];
config_received.count_limit_to_reject_continued_warning = param[read_out_offset];
read_out_offset++;

float reject_threshold_float;
ENDIAN_memcpy(&reject_threshold_float, param + read_out_offset, sizeof(float));
if (reject_threshold_float < 0.0) return CCP_make_cmd_ret_without_err_code(CCP_EXEC_ILLEGAL_PARAMETER);
config_recieved.reject_threshold = (double)(reject_threshold_float);
config_received.reject_threshold = (double)(reject_threshold_float);
read_out_offset += sizeof(float);

float amplitude_limit_to_accept_as_step_float;
ENDIAN_memcpy(&amplitude_limit_to_accept_as_step_float, param + read_out_offset, sizeof(float));
if (amplitude_limit_to_accept_as_step_float < 0.0) return CCP_make_cmd_ret_without_err_code(CCP_EXEC_ILLEGAL_PARAMETER);
config_recieved.amplitude_limit_to_accept_as_step = (double)(amplitude_limit_to_accept_as_step_float);
config_received.amplitude_limit_to_accept_as_step = (double)(amplitude_limit_to_accept_as_step_float);

C2A_MATH_ERROR init_error;
switch (sensor_id)
{
case MPU9250_FILTER_SENSOR_ID_MAG:
init_error = SPIKE_FILTER_init(&APP_MPU9250_FILTER_spike_mag_[axis_id], config_recieved);
init_error = SPIKE_FILTER_init(&APP_MPU9250_FILTER_spike_mag_[axis_id], config_received);

if (init_error == C2A_MATH_ERROR_OK)
{
mpu9250_filter_.spike_filter_config_mag[axis_id] = config_recieved;
mpu9250_filter_.spike_filter_config_mag[axis_id] = config_received;
return CCP_make_cmd_ret_without_err_code(CCP_EXEC_SUCCESS);
}
else
Expand All @@ -352,11 +352,11 @@ CCP_CmdRet Cmd_APP_MPU9250_FILTER_SET_SPIKE_FILTER_PARAM(const CommonCmdPacket*
}
break;
case MPU9250_FILTER_SENSOR_ID_GYRO:
init_error = SPIKE_FILTER_init(&APP_MPU9250_FILTER_spike_gyro_[axis_id], config_recieved);
init_error = SPIKE_FILTER_init(&APP_MPU9250_FILTER_spike_gyro_[axis_id], config_received);

if (init_error == C2A_MATH_ERROR_OK)
{
mpu9250_filter_.spike_filter_config_gyro[axis_id] = config_recieved;
mpu9250_filter_.spike_filter_config_gyro[axis_id] = config_received;
return CCP_make_cmd_ret_without_err_code(CCP_EXEC_SUCCESS);
}
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static void APP_NANOSSOC_D60_FILTER_exec_(void)
{
// 太陽センサのプレゼンスがない場合には,直近のプレゼンスに備え,伝播値をフィルタ過去値に反映
// 伝播値そのものに対してはフィルタ処理を実施しない
if (aocs_manager->sun_visibility == AOCS_MANAGER_SUN_INVISIBILE)
if (aocs_manager->sun_visibility == AOCS_MANAGER_SUN_INVISIBLE)
{
VECTOR3_copy(nanossoc_d60_filter_.sun_vec_est_body, aocs_manager->sun_vec_est_body);
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static void APP_OEM7600_FILTER_init_(void)

static void APP_OEM7600_FILTER_exec_(void)
{
if (aocs_manager->gps_visibility == AOCS_MANAGER_GPS_INVISIBILE) return;
if (aocs_manager->gps_visibility == AOCS_MANAGER_GPS_INVISIBLE) return;

for (uint8_t axis_id = 0; axis_id < PHYSICAL_CONST_THREE_DIM; axis_id++)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,46 +261,46 @@ CCP_CmdRet Cmd_APP_RM3100_FILTER_SET_SPIKE_FILTER_PARAM(const CommonCmdPacket* p
if (axis_id >= PHYSICAL_CONST_THREE_DIM) return CCP_make_cmd_ret_without_err_code(CCP_EXEC_ILLEGAL_PARAMETER);
read_out_offset++;

SpikeFilter_Config config_recieved;
config_recieved.count_limit_to_accept = param[read_out_offset];
SpikeFilter_Config config_received;
config_received.count_limit_to_accept = param[read_out_offset];
read_out_offset++;

config_recieved.count_limit_to_reject_continued_warning = param[read_out_offset];
config_received.count_limit_to_reject_continued_warning = param[read_out_offset];
read_out_offset++;

float reject_threshold_float;
ENDIAN_memcpy(&reject_threshold_float, param + read_out_offset, sizeof(float));
if (reject_threshold_float < 0.0) return CCP_make_cmd_ret_without_err_code(CCP_EXEC_ILLEGAL_PARAMETER);
config_recieved.reject_threshold = (double)(reject_threshold_float);
config_received.reject_threshold = (double)(reject_threshold_float);
read_out_offset += sizeof(float);

float amplitude_limit_to_accept_as_step_float;
ENDIAN_memcpy(&amplitude_limit_to_accept_as_step_float, param + read_out_offset, sizeof(float));
if (amplitude_limit_to_accept_as_step_float < 0.0) return CCP_make_cmd_ret_without_err_code(CCP_EXEC_ILLEGAL_PARAMETER);
config_recieved.amplitude_limit_to_accept_as_step = (double)(amplitude_limit_to_accept_as_step_float);
config_received.amplitude_limit_to_accept_as_step = (double)(amplitude_limit_to_accept_as_step_float);

C2A_MATH_ERROR init_error;
switch (rm3100_id)
{
case RM3100_IDX_ON_AOBC:
init_error = SPIKE_FILTER_init(&APP_RM3100_FILTER_spike_[RM3100_IDX_ON_AOBC][axis_id],
config_recieved);
config_received);
if (init_error != C2A_MATH_ERROR_OK)
{
return CCP_make_cmd_ret_without_err_code(CCP_EXEC_ILLEGAL_CONTEXT);
}

rm3100_filter_.spike_filter_config[RM3100_IDX_ON_AOBC][axis_id] = config_recieved;
rm3100_filter_.spike_filter_config[RM3100_IDX_ON_AOBC][axis_id] = config_received;
return CCP_make_cmd_ret_without_err_code(CCP_EXEC_SUCCESS);
case RM3100_IDX_EXTERNAL:
init_error = SPIKE_FILTER_init(&APP_RM3100_FILTER_spike_[RM3100_IDX_EXTERNAL][axis_id],
config_recieved);
config_received);
if (init_error != C2A_MATH_ERROR_OK)
{
return CCP_make_cmd_ret_without_err_code(CCP_EXEC_ILLEGAL_CONTEXT);
}

rm3100_filter_.spike_filter_config[RM3100_IDX_EXTERNAL][axis_id] = config_recieved;
rm3100_filter_.spike_filter_config[RM3100_IDX_EXTERNAL][axis_id] = config_received;
return CCP_make_cmd_ret_without_err_code(CCP_EXEC_SUCCESS);
default:
return CCP_make_cmd_ret_without_err_code(CCP_EXEC_ILLEGAL_PARAMETER);
Expand Down
Loading

0 comments on commit e275f8a

Please sign in to comment.