The invention relates to the field of automobile technology, and relates to a method for calibrating the installation attitude of a six-axis sensor device, which includes the following steps: first, opening the sensor to read data; second, static calibration, parking on a horizontal road surface, collecting the current accelerator data to obtain the conversion method between the installation attitude of the device and the XYZ axis of the automobile, and converting the XYZ axis data of the device to the horizontal coordinates of the automobile. First, find out the gravity axis; third, dynamic calibration, judge the relationship between the driving direction and the direction of XYZ axis; filter the reversing action of the car, collect the data of gyroscope and accelerometer, while ensuring the car's certain speed, get the relationship between the driving direction of the car and the direction of XYZ axis; fourth, after calibration, get the driving action of the car such as rapid acceleration, rapid deceleration, sharp turning, etc. The invention makes it convenient to install a vehicle driving behavior judgment system for different types of vehicles.
【技术实现步骤摘要】
一种基于六轴传感器设备安装姿态校准方法
本专利技术涉及汽车
,具体地说,涉及一种基于六轴传感器设备安装姿态校准方法。
技术介绍
随着科技的发展,汽车作为人们出行的交通工具之一,其普及度越来越高。汽车的各种配置也越来越丰富,现有的很多车主爱好加装各种汽车辅助系统来提高驾驶的乐趣和安全性,比如,现在加装汽车行驶行为判断系统,这种系统一般是基于LSM6DS33六轴传感器,以高通mdm9x07为主控芯片的系统,它通过汽车OBD口安装在车上的,但不同品牌的车,OBD口位置和朝向不一样,安装十分麻烦,所以需要安装姿态自动校准来解决上述问题。
技术实现思路
本专利技术的内容是提供一种基于六轴传感器设备安装姿态校准方法,其能够克服现有技术的某种或某些缺陷。根据本专利技术的一种基于六轴传感器设备安装姿态校准方法,其包括以下步骤:一、打开传感器读取数据;二、静态校验,校准设备安装在汽车上位置;汽车停在水平的路面上,采集当前加速计数据得出设备安装姿态与汽车XYZ轴的转换方法,把设备的XYZ轴数据换算到汽车水平坐标上,找出重力轴;三、动态校验,判断出汽车行驶方向与XYZ轴方向关系;过滤汽车倒车的动作,采集陀螺仪和加速计的数据,同时保证汽车一定车速,得出汽车行驶方向和XYZ轴方向关系;四、经过校验之后,得出汽车急加速,急减速,急转弯等行驶动作。作为优选,步骤二中,找出重力轴的判断方法为:如果XYZ三个轴中哪个轴读取的数据接近1G,这个轴就是重力轴,其他两个轴就在水平面上,另外两个轴与汽车参考坐标通过汽车正向行驶得出。作为优选,步骤二中,如果找不出重力轴,那么设备是经过旋转后安装, ...
【技术保护点】
1.一种基于六轴传感器设备安装姿态校准方法,其特征在于:包括以下步骤:一、打开传感器读取数据;二、静态校验,校准设备安装在汽车上位置;汽车停在水平的路面上,采集当前加速计数据得出设备安装姿态与汽车XYZ轴的转换方法,把设备的XYZ轴数据换算到汽车水平坐标上,找出重力轴;三、动态校验,判断出汽车行驶方向与XYZ轴方向关系;过滤汽车倒车的动作,采集陀螺仪和加速计的数据,同时保证汽车一定车速,得出汽车行驶方向和XYZ轴方向关系;四、经过校验之后,得出汽车急加速,急减速,急转弯等行驶动作。
【技术特征摘要】
1.一种基于六轴传感器设备安装姿态校准方法,其特征在于:包括以下步骤:一、打开传感器读取数据;二、静态校验,校准设备安装在汽车上位置;汽车停在水平的路面上,采集当前加速计数据得出设备安装姿态与汽车XYZ轴的转换方法,把设备的XYZ轴数据换算到汽车水平坐标上,找出重力轴;三、动态校验,判断出汽车行驶方向与XYZ轴方向关系;过滤汽车倒车的动作,采集陀螺仪和加速计的数据,同时保证汽车一定车速,得出汽车行驶方向和XYZ轴方向关系;四、经过校验之后,得出汽车急加速,急减速,急转弯等行驶动作。2.根据权利要求1所述的一种基于六轴传感器设备安装姿态校准方法,其特征在于:步骤二中,找出重力轴的判断方法为:如果XYZ三个轴中哪个轴读取的数据接近1G,这个轴就是重力轴,其他两个轴就在水平面上,另外两个轴与汽...
【专利技术属性】
技术研发人员:唐宗欢,陈元辰,杨纯文,吴学伟,
申请(专利权)人:深圳市伟文无线通讯技术有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。