#include "mip_sdk.h"
#include "byteswap_utilities.h"
#include "mip_gx4_imu.h"
#include "mip_gx4_45.h"
#include <stdio.h>
#include <unistd.h>
Go to the source code of this file.
Defines | |
#define | DEFAULT_PACKET_TIMEOUT_MS 1000 |
#define | MIP_SDK_GX4_45_IMU_DIRECT_MODE 0x02 |
#define | MIP_SDK_GX4_45_IMU_STANDARD_MODE 0x01 |
| |
#define | NUM_COMMAND_LINE_ARGUMENTS 3 |
#define | Sleep(x) usleep(x*1000.0) |
Functions | |
void | ahrs_packet_callback (void *user_ptr, u8 *packet, u16 packet_size, u8 callback_type) |
void | filter_packet_callback (void *user_ptr, u8 *packet, u16 packet_size, u8 callback_type) |
void | gps_packet_callback (void *user_ptr, u8 *packet, u16 packet_size, u8 callback_type) |
u16 | mip_3dm_cmd_hw_specific_device_status (mip_interface *device_interface, u16 model_number, u8 status_selector, u8 *response_buffer) |
u16 | mip_3dm_cmd_hw_specific_imu_device_status (mip_interface *device_interface, u16 model_number, u8 status_selector, u8 *response_buffer) |
void | print_command_line_usage () |
void | print_header () |
void | print_packet_stats () |
#define DEFAULT_PACKET_TIMEOUT_MS 1000 |
Definition at line 60 of file GX4-45_Test.h.
#define MIP_SDK_GX4_45_IMU_DIRECT_MODE 0x02 |
Definition at line 56 of file GX4-45_Test.h.
#define MIP_SDK_GX4_45_IMU_STANDARD_MODE 0x01 |
THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, LORD MICROSTRAIN SENSING SYSTEMS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
Definition at line 55 of file GX4-45_Test.h.
#define NUM_COMMAND_LINE_ARGUMENTS 3 |
Definition at line 58 of file GX4-45_Test.h.
#define Sleep | ( | x | ) | usleep(x*1000.0) |
Definition at line 63 of file GX4-45_Test.h.
void ahrs_packet_callback | ( | void * | user_ptr, |
u8 * | packet, | ||
u16 | packet_size, | ||
u8 | callback_type | ||
) |
Definition at line 2473 of file GX4-45_Test.c.
void filter_packet_callback | ( | void * | user_ptr, |
u8 * | packet, | ||
u16 | packet_size, | ||
u8 | callback_type | ||
) |
Definition at line 2368 of file GX4-45_Test.c.
void gps_packet_callback | ( | void * | user_ptr, |
u8 * | packet, | ||
u16 | packet_size, | ||
u8 | callback_type | ||
) |
Definition at line 2577 of file GX4-45_Test.c.
u16 mip_3dm_cmd_hw_specific_device_status | ( | mip_interface * | device_interface, |
u16 | model_number, | ||
u8 | status_selector, | ||
u8 * | response_buffer | ||
) |
Requests GX4-45 Basic or Diagnostic Status Message.
[in] | mip_interface | *device_interface - pointer to the mip interface structure. |
[in] | u16 | model_number - LORD Microstrain Sensing Systems model number for GX4-45 (6236) |
[in] | u8 | status selector - specifies which type of status message is being requested. [out] u8 *response_buffer - pointer to the location to store response bytes. |
MIP_INTERFACE_ERROR | Interface not initialized or device not in IMU Direct Mode. |
MIP_INTERFACE_OK | Status message successfully recieved. |
Definition at line 2843 of file GX4-45_Test.c.
u16 mip_3dm_cmd_hw_specific_imu_device_status | ( | mip_interface * | device_interface, |
u16 | model_number, | ||
u8 | status_selector, | ||
u8 * | response_buffer | ||
) |
Requests GX4-IMU Basic or Diagnostic Status Message.
[in] | mip_interface | *device_interface - pointer to the mip interface structure. |
[in] | u16 | model_number - LORD Microstrain Sensing Systems model number for GX4 IMU (6237) |
[in] | u8 | status selector - specifies which type of status message is being requested. [out] u8 *response_buffer - pointer to the location to store response bytes. |
MIP_INTERFACE_ERROR | Interface not initialized or device not in IMU Direct Mode. |
MIP_INTERFACE_OK | Status message successfully recieved. |
This function should only be called in IMU Direct Mode.
Definition at line 2758 of file GX4-45_Test.c.
void print_command_line_usage | ( | ) |
Definition at line 2682 of file GX4-45_Test.c.
void print_header | ( | ) |
Definition at line 2705 of file GX4-45_Test.c.
void print_packet_stats | ( | ) |
Definition at line 2719 of file GX4-45_Test.c.