Skip to content

Commit

Permalink
運用での改善案を反映
Browse files Browse the repository at this point in the history
  • Loading branch information
seki-hiro committed Jul 6, 2023
1 parent a90d758 commit 67f7794
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/src_user/Applications/DriverInstances/di_sagitta.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ CCP_CmdRet Cmd_DI_SAGITTA_SET_UNIX_TIME_US(const CommonCmdPacket* packet)

CCP_CmdRet Cmd_DI_SAGITTA_SET_PARAMETER(const CommonCmdPacket* packet)
{
if (!DI_SAGITTA_is_booted_[SAGITTA_IDX_IN_UNIT]) return CCP_make_cmd_ret_without_err_code(CCP_EXEC_ILLEGAL_CONTEXT);

uint8_t param_id = CCP_get_param_from_packet(packet, 0, uint8_t);

DS_CMD_ERR_CODE ret;
Expand Down Expand Up @@ -244,8 +242,6 @@ CCP_CmdRet Cmd_DI_SAGITTA_CHANGE_PARAMETER(const CommonCmdPacket* packet)

CCP_CmdRet Cmd_DI_SAGITTA_READ_PARAMETER(const CommonCmdPacket* packet)
{
if (!DI_SAGITTA_is_booted_[SAGITTA_IDX_IN_UNIT]) return CCP_make_cmd_ret_without_err_code(CCP_EXEC_ILLEGAL_CONTEXT);

DS_CMD_ERR_CODE ret;
uint8_t param_id = CCP_get_param_from_packet(packet, 0, uint8_t);

Expand Down
2 changes: 1 addition & 1 deletion src/src_user/Drivers/Aocs/sagitta.c
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ DS_CMD_ERR_CODE SAGITTA_change_camera(SAGITTA_Driver* sagitta_driver, uint8_t pa
sagitta_driver->info.set_parameter.camera.interval_s = value;
break;
case 4:
sagitta_driver->info.set_parameter.camera.offset_pix = (uint16_t)value;
sagitta_driver->info.set_parameter.camera.offset_pix = (int16_t)value;
break;
case 5:
sagitta_driver->info.set_parameter.camera.pga_gain = (uint8_t)value;
Expand Down

0 comments on commit 67f7794

Please sign in to comment.