LeoJhonSong / ternary-array-passive-bearing

passive bearing based on ternary sonar array

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ternary-array-passive-bearing

passive bearing based on ternary sonar array

数据流

  1. A/D采样后为数字信号, 即采样时间离散, 数值为量化数值
  2. 在python程序中收集采样后数据, 每1s数据解算一次
  3. TODO: 降采样后的数据以及每秒解算出的角度存至数据库

MARS

树莓派作为网关组网

  • 电脑侧设置与10.30.4.77通信时通过eth0接口收发, 网关为10.30.4.77

     sudo ip route add 10.30.4.77 via [树莓派eth0 ip] dev eth0
  • 树莓派侧eth1设置静态ip为10.30.4.1, 子网掩码255.255.255.0, 网关10.30.4.1, 开启ip转发

     # 临时 (重启后失效)
     sysctl -w net.ipv4.ip_forward=1
     # 永久
     sudo vi /etc/sysctl.conf # 取消net.ipv4.ip_forward=1的注释
     sudo sysctl -p /etc/sysctl.conf

路由配置命令备忘

# 查看当前路由
ip route
# 删除指定路由
sudo ip route del default via <gateway_ip> dev <interface>
# 添加路由并设置优先级 (数值越小优先级越高)
sudo ip route add default via <gateway_ip> dev <interface> metric <new_metric>

仿真

用torch生成音频

参考资料

About

passive bearing based on ternary sonar array

License:GNU General Public License v3.0


Languages

Language:Jupyter Notebook 98.5%Language:Python 1.3%Language:CSS 0.2%