# ADCS---Bang-Bang-RCS-Thrusters
A simulation of spacecraft attitude control using 12 RCS thrusters placed on the vertices of a cuboid-shaped
spacecraft.
## Discrete Element Implementation: Switches and Schmitt Triggers
Before attitude control can be performed using bang-bang control, the discrete elements must be implemented in
Simulink and their behavior confirmed using graphical methods (phase portraits).
To do this, a 1DOF "spacecraft" is considered, where only rotation about a single axis is considered, and the
discrete elements use the full-state feedback (where the state is the displacement angle and body rate) to
apply control. The elements implemented in Simulink are shown below:
### Switch
<img src="/figures/switch_slx.png">
### Schmitt
<img src="/figures/schmitt_slx.png">
## Switch Results
The outputs in the phase space of the switch look like the following, using an initial state of [1.5 rad, 0 rad/s]':
<img src="/figures/switch_phase_portrait.png" style="height:50%">
<img src="/figures/switch_dth_t.png" style="height:50%">
<img src="/figures/switch_th_t.png" style="height:50%">
## Schmitt Trigger Results
The outputs in the phase space of the switch look like the following, using an initial state of [1.5 rad, 0 rad/s]':
<img src="/figures/schmitt_phase_portrait.png" style="height:50%">
<img src="/figures/schmitt_dth_t.png" style="height:50%">
<img src="/figures/schmitt_th_t.png" style="height:50%">
In th above, it can be seen that the Schmitt Trigger exhibits the expected behavior, reaching its convergence limit at the boundary box near equilibrium. Likewise, the switch exhibits the expected behavior of converging towards equilibrium, and if the simulation were run longer it would asymptotically approach equililbrium.
## Spacecraft Attitude Control Simulation
The spacecraft attitude control simulation is implemented using quaternion-based full-state feedback (FSFB), with the complex parts of the quaternion making and the absolute angular velocity comprising the state: [q1, q2, q3, w1, w2, w3]'. The simulink diagram for this simulation is as follows:
<img src="/figures/acs_slx.png">
As seen above, the combination of which RCS thrusters to use is written as a linear allocation problem which is solved by using the MATLAB linprog() function in-the-loop.
The simulation results are as following, demonstrating successful control using bang-bang actuated RCS thrusters:
### Angular Velocity
<img src="/figures/acs_w.png">
### Body-to-ECI Quaternion
<img src="/figures/acs_quat.png">
### Torque Comparison
<img src="/figures/acs_final.png">
没有合适的资源?快使用搜索试试~ 我知道了~
使用 12 个 RCS 推进器对立方体形状航天器进行姿态控制matlab代码.zip
共73个文件
mat:39个
png:12个
xml:5个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 157 浏览量
2024-04-26
23:04:41
上传
评论
收藏 735KB ZIP 举报
温馨提示
1.版本:matlab2014/2019a/2021a 2.附赠案例数据可直接运行matlab程序。 3.代码特点:参数化编程、参数可方便更改、代码编程思路清晰、注释明细。 4.适用对象:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业和毕业设计。
资源推荐
资源详情
资源评论
收起资源包目录
使用 12 个 RCS 推进器对立方体形状航天器进行姿态控制matlab代码.zip (73个子文件)
使用 12 个 RCS 推进器对立方体形状航天器进行姿态控制matlab代码
ADCS---Bang-Bang-RCS-Thrusters-main
figures
schmitt_dth_t.png 21KB
schmitt_phase_portrait.png 22KB
acs_final.png 24KB
schmitt_th_t.png 23KB
switch_dth_t.png 16KB
acs_w.png 22KB
acs_quat.png 22KB
acs_slx.png 56KB
switch_slx.png 13KB
schmitt_slx.png 22KB
switch_th_t.png 16KB
switch_phase_portrait.png 23KB
README.md 3KB
code
sim_3dof_pitchover.slxc 13KB
asn_4_bb_acs.slxc 74KB
asn_4_bb_switch.slx 96KB
slprj
_jitprj
sQbkY1qopWMQTpxJWiKz8MH.mat 1KB
skP05EnhUu3hqH07FGFSpFB.l 11KB
jitEngineAccessInfo.mat 878B
sbx5qxWGxa5lDFs551KB1HF.l 12KB
s0XFqA8lfSDOhLzEQoNcWLC.mat 1KB
sbx5qxWGxa5lDFs551KB1HF.mat 1KB
ss6lg9Gn34LVlaSDTAy449G.l 16KB
skP05EnhUu3hqH07FGFSpFB.mat 1KB
sQbkY1qopWMQTpxJWiKz8MH.l 15KB
s0XFqA8lfSDOhLzEQoNcWLC.l 25KB
ss6lg9Gn34LVlaSDTAy449G.mat 1KB
_sfprj
precompile
SJq19Ga8aonJ8yuT9w04fG.mat 714B
autoInferAccessInfo.mat 997B
kvph0PWRhJbCknrUuYeheC.mat 744B
PNzYxbuJitL7ur27sDKIiG.mat 662B
QaykbGiUCb2HrBnFOiTE7B.mat 1021B
evgezDmMxwrWBXktvx1oUF.mat 655B
cLTheKv8peyG3QtnKV9otB.mat 732B
ItnvLuJPKSzoakeNz5erKE.mat 694B
YbZw6UqIX4dgv1qPp9HokG.mat 655B
66Tb21W8RaOzvruZc2SWFB.mat 720B
AEMQhUbslMw7xRwl9fyeiB.mat 721B
asn_4_bb_switch
_self
sfun
info
binfo.mat 768B
amsi_serial.mat 238B
asn_4_bb_acs
_self
sfun
info
binfo.mat 890B
amsi_serial.mat 236B
EMLReport
sQbkY1qopWMQTpxJWiKz8MH.mat 16KB
s0XFqA8lfSDOhLzEQoNcWLC.mat 78KB
sbx5qxWGxa5lDFs551KB1HF.mat 15KB
emlReportAccessInfo.mat 877B
skP05EnhUu3hqH07FGFSpFB.mat 7KB
ss6lg9Gn34LVlaSDTAy449G.mat 28KB
sl_proj.tmw 83B
accel
asn_4_bb_acs
asn_4_bb_acs_top_vm.bc 11KB
asn_4_bb_acs_SolverChangeInfo.mat 749B
amsi_serial.mat 236B
asn_4_bb_acs_instrumentation_settings.mat 180B
tmwinternal
simulink_cache.xml 371B
sim_3dof_pitchover
sim_3dof_pitchover_top_vm.bc 12KB
sim_3dof_pitchover_instrumentation_settings.mat 180B
amsi_serial.mat 242B
sim_3dof_pitchover_SolverChangeInfo.mat 749B
tmwinternal
simulink_cache.xml 371B
sim
varcache
asn_4_bb_schmitt
checksumOfCache.mat 392B
varInfo.mat 2KB
tmwinternal
simulink_cache.xml 371B
asn_4_bb_switch
checksumOfCache.mat 392B
varInfo.mat 1024B
tmwinternal
simulink_cache.xml 371B
asn_4_bb_acs
checksumOfCache.mat 392B
varInfo.mat 3KB
tmwinternal
simulink_cache.xml 371B
asn_4_bb_switch.slxc 5KB
asn_4_bb_script.m 2KB
asn_4_bb_schmitt.slx 89KB
asn_4_bb_schmitt.slxc 5KB
asn_4_bb_acs.slx 256KB
共 73 条
- 1
资源评论
Matlab科研辅导帮
- 粉丝: 1w+
- 资源: 7553
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功