xbox.py 文件源码

python
阅读 15 收藏 0 点赞 0 评论 0

项目:KSURCT-TEST 作者: jisaiahgarrett 项目源码 文件源码
def value(self):
        normal = self.__value - self.zero_value
        if self.__value > 0:
            normal = normal / (self.VAR_MAX - self.zero_value)
        else:
            normal = -normal / (self.VAR_MIN - self.zero_value)

        if isclose(normal, 0, abs_tol=0.04):
            return 0
        return normal
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号