Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method for analyzing the upper and lower axles of a vehicle based on a sensing technology, which has the advantages of reasonable structure, high accuracy, convenience in use and wide application range.
The purpose of the invention is realized as follows: a method for analyzing the loading and unloading of a vehicle on the bridge based on sensing technology, the method comprising the steps of:
step 1): acquiring accelerometer and gyroscope data; the accelerometer acquires a vector R = [ Rx, Ry, Rz ]
And the included angle values Axr, Ayr and Azr between the vector R and the X, Y, Z; the accelerometer also obtains a measurement value Racc = [ RxAcc, RyAcc, RzAcc ]; the gyroscope acquires an angular velocity change Rate: assuming that the device is horizontally placed on an XY plane, the projections of an inertial force vector R on an XZ plane and a YZ plane are respectively Rxz and Ryz, an included angle formed by a Z axis and the Rxz vector and the Ryz is defined as Axz and Ayz, the gyroscope measures the change rate of an angle, firstly, assuming that the angle (namely Axz) rotated around the Y axis is measured at the time t0 and is defined as Axz0, and then, measuring the angle again at the time t1 to obtain Axz 1; the rate of change of angle is calculated as follows: RateAxz = (Axz 1-Axz 0)/(t 1-t 0);
step 2): fusing and calculating accelerometer and gyroscope data; introducing a new vector Rest = [ RxEst, RyEst, RzEst ], so that Rest (0) = Racc (0), then
RxEst(0)=RxAcc(0) RyEst(0)=RyAcc(0) RzEst(0)=RzAcc(0)
Making each equal time interval T measure once, the value range of the time interval T is 10ms-100ms, obtaining new measured values Racc (1), Racc (2), Racc (3), … … Racc (n), calculating new estimated values Rest (1), Rest (2), Rest (3), … … Rest (n) in each time interval;
suppose that in step n, there are two columns of known values Rest (n-1), Racc (n)
The right triangle formed by Rz and Rxz can be obtained according to the gyroscope vector diagram: tan (Axz) = Rx/Rz = > Axz = atan2(Rx, Rz),
given the known estimates RxEst (n-1) and RzEst (n-1), it can be derived: axz (n-1) = atan2(RxEst (n-1), RzEst (n-1)), the gyroscope measures the rate of change of the Axz angle, so the new angle Axz (n)) can be estimated as follows: axz (n) = Axz (n-1) + rateaxz (n) × T, and the same can be said: ayz (n) = Ayz (n-1) + rateayz (n) × T,
since RateAxz is directly readable by the gyroscope, the following equation can be obtained by using the average rotation speed RateAxzAvg: RateAxzAvg = (RateAxz (N)) + RateAxz (N-1))/2; axz (n) = Axz (n-1) + RateAxzAvg T; the same can be obtained: ayz (n) = Ayz (n-1) + rateayz (n) × T;
the vector Rgyro = [ RxGyro, RyGyro, RzGyro ] is introduced here, which can be obtained from the above equation:
RxGyro = sin (axz (n))/SQRT (1+ cos (axz (n)) < lambda > 2 </lambda > < tan (ayz (n)) < lambda > 2 </lambda >; the same can be obtained: RyGyro = sin (Ayz (n))/SQRT (1+ cos (Ayz (n)) < Lambda > 2 </Lambda > (Axz (n)) < Lambda > 2;
then rest (n) = (Racc w1+ Rgyro w2)/(w1+ w2), the numerator and denominator are divided by w1, and the formula can be simplified as: rest (n) = (Racc w1/w1+ Rgyro w2/w1)/(w1/w1+ w2/w 1); let w2= w1= wGyro, available: rest (n) = (Racc + Rgyro × (wGyro)/(1 + wGyro); wGyro represents the degree of confidence in the accelerometer and gyroscope, which ranges from 5 to 20.
Step 3): judging vehicle driving map information; judging the inclination angle change of the equipment according to the numerical value of rest (n) generated in the previous step, thereby judging whether the vehicle is in an upper axle, a lower axle and a flat road running state;
step 4): navigating the vehicle according to the map information; the map information at least comprises two parts of map information on the viaduct and map information under the viaduct, and the map information on the viaduct or the map information under the viaduct is selected according to the information obtained by judgment, so that the vehicle is navigated according to the map information.
The method for analyzing the vehicle getting on and off the axle based on the sensing technology adopts the following hardware equipment, and comprises the following steps:
a mobile phone; the mobile phone comprises one or more processors, the mobile phone at least comprises a gyroscope, an accelerometer, a memory and a GPS receiver, the gyroscope, the accelerometer, the memory and the GPS receiver are respectively connected with the processors, the memory is used for storing one or more programs executed by the one or more processors, and the mobile phone also comprises a Bluetooth interface which can be used for being connected with a vehicle-mounted GPS navigator;
the mobile phone comprises a display screen, wherein the display screen is a display screen with a touch sensitive surface;
the mobile phone also comprises a communication module, wherein the communication module is one or a combination of more of an Ethernet module, a 4G module, a ZigBee communication module, a WiFi communication module and a GPRS module.
The reference frequency of the GPS receiver is 2-26 MHz.
The memory includes a RAM memory and a ROM memory.
The main frequency of the processor is at least 1 GHz.
The invention has the beneficial effects that: the invention adopts the data of the accelerometer and the gyroscope to calculate, judges according to the obtained calculation result, judges according to Rest (n) that the vehicle is on the bridge, adopts the map information on the viaduct to carry out high navigation on the vehicle, judges that the vehicle is off the bridge, adopts the map information under the viaduct to navigate the vehicle, judges that the vehicle stably runs under the viaduct all the time, adopts the map information under the viaduct to navigate the vehicle, and avoids the problem that the existing navigation is difficult to judge the running condition of the vehicle, thereby causing wrong navigation; the invention can also connect the mobile phone with the vehicle-mounted GPS navigator through the Bluetooth interface, which is convenient for the large screen to display navigation information, adopts the GPS receiver to receive the GPS information in time and combines the GPS information with the mobile phone map information and the vehicle driving information obtained by the calculation of the accelerometer and the gyroscope in time, thereby making accurate navigation; the invention has the advantages of reasonable structure, high accuracy, convenient use and wide application range.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
Example 1
As shown in fig. 1-4, a method for analyzing the getting on and off of a vehicle on the basis of sensing technology, the method comprising the steps of:
step 1): acquiring accelerometer and gyroscope data; the accelerometer acquires a vector R = [ Rx, Ry, Rz ]
And the included angle values Axr, Ayr and Azr between the vector R and the X, Y, Z; the accelerometer also obtains a measurement value Racc = [ RxAcc, RyAcc, RzAcc ]; the gyroscope acquires an angular velocity change Rate: assuming that the device is horizontally placed on an XY plane, the projections of an inertial force vector R on an XZ plane and a YZ plane are respectively Rxz and Ryz, an included angle formed by a Z axis and the Rxz vector and the Ryz is defined as Axz and Ayz, the gyroscope measures the change rate of an angle, firstly, assuming that the angle (namely Axz) rotated around the Y axis is measured at the time t0 and is defined as Axz0, and then, measuring the angle again at the time t1 to obtain Axz 1; the rate of change of angle is calculated as follows: RateAxz = (Axz 1-Axz 0)/(t 1-t 0);
step 2): fusing and calculating accelerometer and gyroscope data; introducing a new vector Rest = [ RxEst, RyEst, RzEst ], so that Rest (0) = Racc (0), then
RxEst(0)=RxAcc(0) RyEst(0)=RyAcc(0) RzEst(0)=RzAcc(0)
Making each equal time interval T measure once, the value range of the time interval T is 10ms-100ms, obtaining new measured values Racc (1), Racc (2), Racc (3), … … Racc (n), calculating new estimated values Rest (1), Rest (2), Rest (3), … … Rest (n) in each time interval;
suppose that in step n, there are two columns of known values Rest (n-1), Racc (n)
The right triangle formed by Rz and Rxz can be obtained according to the gyroscope vector diagram: tan (Axz) = Rx/Rz = > Axz = atan2(Rx, Rz),
given the known estimates RxEst (n-1) and RzEst (n-1), it can be derived: axz (n-1) = atan2(RxEst (n-1), RzEst (n-1)), the gyroscope measures the rate of change of the Axz angle, so the new angle Axz (n)) can be estimated as follows: axz (n) = Axz (n-1) + rateaxz (n) × T, and the same can be said: ayz (n) = Ayz (n-1) + rateayz (n) × T,
since RateAxz is directly readable by the gyroscope, the following equation can be obtained by using the average rotation speed RateAxzAvg: RateAxzAvg = (RateAxz (N)) + RateAxz (N-1))/2; axz (n) = Axz (n-1) + RateAxzAvg T; the same can be obtained: ayz (n) = Ayz (n-1) + rateayz (n) × T;
the vector Rgyro = [ RxGyro, RyGyro, RzGyro ] is introduced here, which can be obtained from the above equation:
RxGyro = sin (axz (n))/SQRT (1+ cos (axz (n)) < lambda > 2 </lambda > < tan (ayz (n)) < lambda > 2 </lambda >; the same can be obtained: RyGyro = sin (Ayz (n))/SQRT (1+ cos (Ayz (n)) < Lambda > 2 </Lambda > (Axz (n)) < Lambda > 2;
then rest (n) = (Racc w1+ Rgyro w2)/(w1+ w2), the numerator and denominator are divided by w1, and the formula can be simplified as: rest (n) = (Racc w1/w1+ Rgyro w2/w1)/(w1/w1+ w2/w 1); let w2= w1= wGyro, available: rest (n) = (Racc + Rgyro × (wGyro)/(1 + wGyro); wGyro represents the degree of confidence in the accelerometer and gyroscope, which ranges from 5 to 20.
Step 3): judging vehicle driving map information; judging the inclination angle change of the equipment according to the numerical value of rest (n) generated in the previous step, thereby judging whether the vehicle is in an upper axle, a lower axle and a flat road running state;
step 4): navigating the vehicle according to the map information; the map information at least comprises two parts of map information on the viaduct and map information under the viaduct, and the map information on the viaduct or the map information under the viaduct is selected according to the information obtained by judgment, so that the vehicle is navigated according to the map information.
The method for analyzing the vehicle getting on and off the axle based on the sensing technology adopts the following hardware equipment, and comprises the following steps:
a mobile phone; the mobile phone comprises one or more processors, the mobile phone at least comprises a gyroscope, an accelerometer, a memory and a GPS receiver, the gyroscope, the accelerometer, the memory and the GPS receiver are respectively connected with the processors, the memory is used for storing one or more programs executed by the one or more processors, and the mobile phone also comprises a Bluetooth interface which can be used for being connected with a vehicle-mounted GPS navigator;
the mobile phone comprises a display screen, wherein the display screen is a display screen with a touch sensitive surface;
the mobile phone also comprises a communication module, wherein the communication module is one or a combination of more of an Ethernet module, a 4G module, a ZigBee communication module, a WiFi communication module and a GPRS module.
The invention adopts the data of the accelerometer and the gyroscope to calculate, judges according to the obtained calculation result, judges that the vehicle is on the bridge according to Rest (n), adopts the map information on the viaduct to navigate the vehicle, judges that the vehicle is off the bridge, adopts the map information under the viaduct to navigate the vehicle, judges that the vehicle stably runs under the viaduct all the time, and adopts the map information under the viaduct to navigate the vehicle, thereby avoiding the error navigation caused by the difficulty in judging the running condition of the vehicle by the existing navigation; the invention can also connect the mobile phone with the vehicle-mounted GPS navigator through the Bluetooth interface, which is convenient for the large screen to display navigation information, adopts the GPS receiver to receive the GPS information in time and combines the GPS information with the mobile phone map information and the vehicle driving information obtained by the calculation of the accelerometer and the gyroscope in time, thereby making accurate navigation; the invention has the advantages of reasonable structure, high accuracy, convenient use and wide application range.
Example 2
As shown in fig. 1-4, a method for analyzing the getting on and off of a vehicle on the basis of sensing technology, the method comprising the steps of:
step 1): acquiring accelerometer and gyroscope data; the accelerometer acquires a vector R = [ Rx, Ry, Rz ]
And the included angle values Axr, Ayr and Azr between the vector R and the X, Y, Z; the accelerometer also obtains a measurement value Racc = [ RxAcc, RyAcc, RzAcc ]; the gyroscope acquires an angular velocity change Rate: assuming that the device is horizontally placed on an XY plane, the projections of an inertial force vector R on an XZ plane and a YZ plane are respectively Rxz and Ryz, an included angle formed by a Z axis and the Rxz vector and the Ryz is defined as Axz and Ayz, the gyroscope measures the change rate of an angle, firstly, assuming that the angle (namely Axz) rotated around the Y axis is measured at the time t0 and is defined as Axz0, and then, measuring the angle again at the time t1 to obtain Axz 1; the rate of change of angle is calculated as follows: RateAxz = (Axz 1-Axz 0)/(t 1-t 0);
step 2): fusing and calculating accelerometer and gyroscope data; introducing a new vector Rest = [ RxEst, RyEst, RzEst ], so that Rest (0) = Racc (0), then
RxEst(0)=RxAcc(0) RyEst(0)=RyAcc(0) RzEst(0)=RzAcc(0)
Making each equal time interval T measure once, the value range of the time interval T is 10ms-100ms, obtaining new measured values Racc (1), Racc (2), Racc (3), … … Racc (n), calculating new estimated values Rest (1), Rest (2), Rest (3), … … Rest (n) in each time interval;
suppose that in step n, there are two columns of known values Rest (n-1), Racc (n)
The right triangle formed by Rz and Rxz can be obtained according to the gyroscope vector diagram: tan (Axz) = Rx/Rz = > Axz = atan2(Rx, Rz),
given the known estimates RxEst (n-1) and RzEst (n-1), it can be derived: axz (n-1) = atan2(RxEst (n-1), RzEst (n-1)), the gyroscope measures the rate of change of the Axz angle, so the new angle Axz (n)) can be estimated as follows: axz (n) = Axz (n-1) + rateaxz (n) × T, and the same can be said: ayz (n) = Ayz (n-1) + rateayz (n) × T,
since RateAxz is directly readable by the gyroscope, the following equation can be obtained by using the average rotation speed RateAxzAvg: RateAxzAvg = (RateAxz (N)) + RateAxz (N-1))/2; axz (n) = Axz (n-1) + RateAxzAvg T; the same can be obtained: ayz (n) = Ayz (n-1) + rateayz (n) × T;
the vector Rgyro = [ RxGyro, RyGyro, RzGyro ] is introduced here, which can be obtained from the above equation:
RxGyro = sin (axz (n))/SQRT (1+ cos (axz (n)) < lambda > 2 </lambda > < tan (ayz (n)) < lambda > 2 </lambda >; the same can be obtained: RyGyro = sin (Ayz (n))/SQRT (1+ cos (Ayz (n)) < Lambda > 2 </Lambda > (Axz (n)) < Lambda > 2;
then rest (n) = (Racc w1+ Rgyro w2)/(w1+ w2), the numerator and denominator are divided by w1, and the formula can be simplified as: rest (n) = (Racc w1/w1+ Rgyro w2/w1)/(w1/w1+ w2/w 1); let w2= w1= wGyro, available: rest (n) = (Racc + Rgyro × (wGyro)/(1 + wGyro); wGyro represents the degree of confidence in the accelerometer and gyroscope, which ranges from 5 to 20.
Step 3): judging vehicle driving map information; judging the inclination angle change of the equipment according to the numerical value of rest (n) generated in the previous step, thereby judging whether the vehicle is in an upper axle, a lower axle and a flat road running state;
step 4): navigating the vehicle according to the map information; the map information at least comprises two parts of map information on the viaduct and map information under the viaduct, and the map information on the viaduct or the map information under the viaduct is selected according to the information obtained by judgment, so that the vehicle is navigated according to the map information.
The method for analyzing the vehicle getting on and off the axle based on the sensing technology adopts the following hardware equipment, and comprises the following steps:
a mobile phone; the mobile phone comprises one or more processors, the mobile phone at least comprises a gyroscope, an accelerometer, a memory and a GPS receiver, the gyroscope, the accelerometer, the memory and the GPS receiver are respectively connected with the processors, the memory is used for storing one or more programs executed by the one or more processors, and the mobile phone also comprises a Bluetooth interface which can be used for being connected with a vehicle-mounted GPS navigator;
the mobile phone comprises a display screen, wherein the display screen is a display screen with a touch sensitive surface;
the mobile phone also comprises a communication module, wherein the communication module is one or a combination of more of an Ethernet module, a 4G module, a ZigBee communication module, a WiFi communication module and a GPRS module.
For better effect, the reference frequency of the GPS receiver is 2-26 MHz.
For better results, the memory includes a RAM memory and a ROM memory.
For better effect, the main frequency of the processor is at least 1 GHz.
The invention adopts the data of the accelerometer and the gyroscope to calculate, judges according to the obtained calculation result, judges according to Rest (n) that the vehicle is on the bridge, adopts the map information on the viaduct to carry out high navigation on the vehicle, judges that the vehicle is off the bridge, adopts the map information under the viaduct to navigate the vehicle, judges that the vehicle stably runs under the viaduct all the time, adopts the map information under the viaduct to navigate the vehicle, and avoids the problem that the existing navigation is difficult to judge the running condition of the vehicle, thereby causing wrong navigation; the invention can also connect the mobile phone with the vehicle-mounted GPS navigator through the Bluetooth interface, which is convenient for the large screen to display navigation information, adopts the GPS receiver to receive the GPS information in time and combines the GPS information with the mobile phone map information and the vehicle driving information obtained by the calculation of the accelerometer and the gyroscope in time, thereby making accurate navigation; the invention has the advantages of reasonable structure, high accuracy, convenient use and wide application range.