ramlife

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 27 下一页

2020年10月21日

摘要: #1. 离散位置式 PID 公式: u(k) = k_{p}(error(k) + \frac{T}{T_{i}}\sum_{j = 0}^{k}error(j) + \frac{^{T_{d}}}{T}(error(k) - error(k - 1))) = k_{p}error(k) + k_{ 阅读全文
posted @ 2020-10-21 11:04 ramlife 阅读(251) 评论(0) 推荐(0)

2020年10月16日

摘要: 工程的配置中, user 的选项卡,after build/rebuild 的两条命令可以设置为 fromelf --text -c -o "$L@L.asm" "#L" fromelf --bin -o "$L@L.bin" "#L" 阅读全文
posted @ 2020-10-16 14:52 ramlife 阅读(279) 评论(0) 推荐(0)

摘要: class Process : public QObject { Q_OBJECT public: Process() { connect(&m_process, SIGNAL(readyReadStandardOutput()), this, SLOT(onReadData())); m_proc 阅读全文
posted @ 2020-10-16 10:53 ramlife 阅读(2572) 评论(0) 推荐(0)

2020年10月12日

摘要: git 生成 ssh key,执行下面代码即可: git config --global --list git config --global user.name "这里换上你的用户名" git config --global user.email "这里换上你的邮箱" ssh-keygen -t 阅读全文
posted @ 2020-10-12 14:44 ramlife 阅读(150) 评论(0) 推荐(0)

2020年10月10日

摘要: #1 py3 中 print 不换行,只需要增加参数 end = '' 就可以了。类似于: print(output, end = '') #2 如果在 py2 中想要使用 py3 的 print ,只需要在文件最上面增加 from future import print_function 即可。 阅读全文
posted @ 2020-10-10 14:46 ramlife 阅读(215) 评论(0) 推荐(0)

2020年10月9日

摘要: #1 小车端开机,然后连接无线网,通过 ifconfig 获得 ip 地址。 #2 虚拟机端 ssh 到小车,修改 .bashrc 中的 rikibase(车体是几驱的,轮子是什么样的), 然后 source .bashrc 让小车重新加载 bashrc. #3 虚拟机修改自身的 .bashrc 中 阅读全文
posted @ 2020-10-09 17:18 ramlife 阅读(231) 评论(0) 推荐(0)

2020年9月27日

摘要: 只需要修改 CMakeLists.txt,增加下面的属性即可。 set(CMAKE_CXX_FLAGS "-Wno-error=deprecated-declarations -Wno-deprecated-declarations ") 阅读全文
posted @ 2020-09-27 17:55 ramlife 阅读(4078) 评论(0) 推荐(0)

2020年9月24日

摘要: 今天先参照 https://www.jianshu.com/p/ddf7c0153644 这个里面的说明写了相应的配置文件,结果一启动容器就报错了。 Creating docker-test_mysql_1 ... Creating docker-test_mysql_1 ... error ERR 阅读全文
posted @ 2020-09-24 14:15 ramlife 阅读(224) 评论(0) 推荐(0)

摘要: 没有安装过 docker 的 ubuntu 安装 docker的步骤: $ sudo apt-get update $ sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ softwa 阅读全文
posted @ 2020-09-24 14:02 ramlife 阅读(145) 评论(0) 推荐(0)

2020年9月19日

摘要: ubuntu 下没有 dos2unix,但是又类似的工具,tofrodos, 安装这个工具,使用两个命令: todos, fromdos 即可。 参考: https://www.jianshu.com/p/d5eb279de997 阅读全文
posted @ 2020-09-19 16:36 ramlife 阅读(245) 评论(0) 推荐(0)

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 27 下一页