#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.
|
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 |
#define MIP_SDK_GX4_45_IMU_DIRECT_MODE 0x02 |
#define MIP_SDK_GX4_45_IMU_STANDARD_MODE 0x01 |
- Copyright
- 2014 Lord Microstrain Sensing Systems.
CHANGES
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 |
#define Sleep |
( |
|
x | ) |
usleep(x*1000.0) |
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 |
|
) |
| |
DESCRIPTION
Requests GX4-45 Basic or Diagnostic Status Message.
DETAILS
- Parameters
-
[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. |
- Return values
-
MIP_INTERFACE_ERROR | Interface not initialized or device not in IMU Direct Mode.
|
MIP_INTERFACE_OK | Status message successfully recieved.
|
NOTES
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 |
|
) |
| |
DESCRIPTION
Requests GX4-IMU Basic or Diagnostic Status Message.
DETAILS
- Parameters
-
[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. |
- Return values
-
MIP_INTERFACE_ERROR | Interface not initialized or device not in IMU Direct Mode.
|
MIP_INTERFACE_OK | Status message successfully recieved.
|
NOTES
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 |
( |
| ) |
|
void print_packet_stats |
( |
| ) |
|