Explorar o código

update: 优化adc库对CPU温度的描述,优化libgnss的功能描述,增加关键字

Wendal Chen %!s(int64=2) %!d(string=hai) anos
pai
achega
d77a1e2ab1
Modificáronse 2 ficheiros con 6 adicións e 2 borrados
  1. 4 0
      components/minmea/luat_lib_libgnss.c
  2. 2 2
      luat/modules/luat_lib_adc.c

+ 4 - 0
components/minmea/luat_lib_libgnss.c

@@ -12,6 +12,10 @@
 -- 相关链接: https://lbsyun.baidu.com/index.php?title=coordinate
 -- 相关链接: https://www.openluat.com/GPS-Offset.html
 
+-- 提醒: GPS功能, GNSS功能, NMEA解析功能,均为当前库的子功能
+-- 本库的主要功能就是解析NMEA协议, 支持内置GNSS也支持外置GNSS
+
+-- 以下是使用本libgnss的示例代码
 -- 方案1, 经lua层进行数据中转
 uart.setup(2, 115200)
 uart.on(2, "recv", function(id, len)

+ 2 - 2
luat/modules/luat_lib_adc.c

@@ -10,12 +10,12 @@
 
 -- 本库可读取硬件adc通道, 也支持读取CPU温度和VBAT供电电源(若模块支持的话)
 
--- 读取CPU温度
+-- 读取CPU温度, 单位为0.001摄氏度, 是内部温度, 非环境温度
 adc.open(adc.CH_CPU)
 local temp = adc.get(adc.CH_CPU)
 adc.close(adc.CH_CPU)
 
--- 读取VBAT供电电压
+-- 读取VBAT供电电压, 单位为mV
 adc.open(adc.CH_VBAT)
 local vbat = adc.get(adc.CH_VBAT)
 adc.close(adc.CH_VBAT)