导航

    • 登录
    • 搜索
    • 版块
    • 产品
    • 教程
    • 论坛
    • 淘宝
    1. 主页
    2. pm1f
    3. 帖子
    P
    • 举报资料
    • 资料
    • 关注
    • 粉丝
    • 屏蔽
    • 帖子
    • 楼层
    • 最佳
    • 群组

    pm1f 创建的帖子

    • P

      openmv4 plus神经网络训练
      OpenMV Cam • • pm1f

      2
      0
      赞同
      2
      楼层
      2286
      浏览

      不要重复发帖子: https://forum.singtown.com/topic/7709/h7plus如何使用神经网络识别数字/8
    • P

      关于openmv星瞳官网的PID代码理解
      OpenMV Cam • • pm1f

      1
      0
      赞同
      1
      楼层
      2133
      浏览

      尚无回复

    • P

      openmv IO口相关问题
      OpenMV Cam • • pm1f

      2
      0
      赞同
      2
      楼层
      2353
      浏览

      例子:https://book.openmv.cc/example/02-Board-Control/pin-control.html 代码控制的IO功能。 如果“接线一端连接io,另一端连接gnd”,开启内置的上拉电阻就行。 参考这个https://singtown.com/learn/547/
    • P

      串口uart如何发送小数
      OpenMV Cam • • pm1f

      2
      0
      赞同
      2
      楼层
      2545
      浏览

      uart.write里面应该是字节传。 串口发送的是字节。 你的思路应该是,怎么把小数转为字节。 1,直接转为字符串,uart.write(str(13.468946)[0:4])。缺点:截取到长度4,而且字符串可能不好转换。 2,使用struct.pack('<f',13.468946)。小端,四字节float。https://cn.bing.com/search?q=python3+struct.pack&qs=n&form=QBRE&sp=-1&pq=python3+struct.pack&sc=1-19&sk=&cvid=CDDA981B461A4729922E0C09E82933B8 import struct struct.pack('<f',13.468946) b'\xce\x80WA'
    • P

      openmv串口和测距模块
      OpenMV Cam • • pm1f

      2
      0
      赞同
      2
      楼层
      2435
      浏览

      L是int,uart.write只能发送字节串(字符串)。 uart.write(str(L))#转为字符串