| RcdMathLib_doc
    Open Source Library  for Linear and Non-linear Algebra | 
 
 
 
Go to the documentation of this file.
   24 #ifndef MAGNETIC_BASED_POSITION_H_ 
   25 #define MAGNETIC_BASED_POSITION_H_ 
   50 #define PI         3.14159265358979323846 
   55 #define AR         PI * R0 * R0     //Loop area 
   60 #define MU0        4 * PI * 1E-7    //TGm/A 
   65 #define K          MU0 * NW * I0 * AR / (4 * PI) 
   75 #define K_T        K * MG_TO_T 
   80 #define MILPS_MAX_DIST     25 
  111                                   matrix_t distance_arr[], uint8_t length,
 
  183                                                matrix_t anchor_pos_matrix[anchor_num][3],
 
  184                                                matrix_t pseudo_inv_matrix[4][anchor_num],
 
  
 
matrix_t magnetic_based_get_distances_to_anchors(matrix_t ref_point[3], matrix_t point[3])
Computes the distance between a mobile station and a reference station of magnetic-based localization...
void magnetic_based_get_distances(matrix_t magnetic_field_strength_arr[], matrix_t angular_theta_arr[], matrix_t distance_arr[], uint8_t length, matrix_t k)
Computes the distances between a mobile station and the reference stations of a magnet-based localiza...
void magnetic_based_get_magnetic_field_vec(uint8_t m, matrix_t ref_point_matrix[m][3], matrix_t target_point[], matrix_t k, matrix_t magn_field_vec[])
Computes the magnetic field strengths from a mobile station to various reference stations.
void magnetic_based_preprocessing_get_position(uint8_t anchor_num, matrix_t anchor_pos_matrix[anchor_num][3], matrix_t pseudo_inv_matrix[4][anchor_num], matrix_t homog_sol_arr[], matrix_t solution_x1[], matrix_t solution_x2[])
Computes the position of a mobile station by a magnetic-based localization system.
#define matrix_t
Define the data type of the matrix elements.
matrix_t magnetic_based_get_r(matrix_t B, matrix_t theta, matrix_t k)
Computes the distance between a mobile station and a reference stations of a magnet-based localizatio...
void magnetic_based_get_absolute_error(matrix_t value_arr[], matrix_t approx_value_arr[], matrix_t absolute_error_arr[], uint8_t length)
Computes the absolute error of a position of magnet-based localization system.
matrix_t magnetic_based_get_magnetic_field(matrix_t ref_point[3], matrix_t target_point[3], matrix_t k)
Computes the magnetic field strength from a mobile station to a reference station.