file
gps.hContents
- Reference
Contains prototypes for functions related to the VEX GPS.
This file should not be modified by users, since it gets replaced whenever a kernel upgrade occurs.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http:/
Namespaces
Functions
- struct __attribute__((__packed__)) gps_position_s
- int32_t gps_initialize_full(uint8_t port, double xInitial, double yInitial, double headingInitial, double xOffset, double yOffset)
- Set the GPS's offset relative to the center of turning in meters, as well as its initial position.
- int32_t gps_set_offset(uint8_t port, double xOffset, double yOffset)
- Set the GPS's offset relative to the center of turning in meters.
-
gps_
position_ s_ t gps_get_offset(uint8_t port) - Get the GPS's cartesian location relative to the center of turning/origin in meters.
- int32_t gps_set_position(uint8_t port, double xInitial, double yInitial, double headingInitial)
- Sets the robot's location relative to the center of the field in meters.
- int32_t gps_set_data_rate(uint8_t port, uint32_t rate)
- Set the GPS sensor's data rate in milliseconds, only applies to IMU on GPS.
- double gps_get_error(uint8_t port)
- Get the possible RMS (Root Mean Squared) error in meters for GPS position.
-
gps_
status_ s_ t gps_get_position_and_orientation(uint8_t port) - Gets the position and roll, yaw, and pitch of the GPS.
-
gps_
position_ s_ t gps_get_position(uint8_t port) - Gets the x and y position on the field of the GPS in meters.
- double gps_get_position_x(uint8_t port)
- Gets the X position in meters of the robot relative to the starting position.
- double gps_get_position_y(uint8_t port)
- Gets the Y position in meters of the robot relative to the starting position.
-
gps_
orientation_ s_ t gps_get_orientation(uint8_t port) - Gets the pitch, roll, and yaw of the GPS relative to the starting orientation.
- double gps_get_pitch(uint8_t port)
- Gets the pitch of the robot in degrees relative to the starting oreintation.
- double gps_get_roll(uint8_t port)
- Gets the roll of the robot in degrees relative to the starting oreintation.
- double gps_get_yaw(uint8_t port)
- Gets the yaw of the robot in degrees relative to the starting oreintation.
- double gps_get_heading(uint8_t port)
- Get the heading in [0,360) degree values.
- double gps_get_heading_raw(uint8_t port)
- Get the heading in the max double value and min double value scale.
-
gps_
gyro_ s_ t gps_get_gyro_rate(uint8_t port) - Get the GPS's raw gyroscope values.
- double gps_get_gyro_rate_x(uint8_t port)
- Get the GPS's raw gyroscope value in x-axis.
- double gps_get_gyro_rate_y(uint8_t port)
- Get the GPS's raw gyroscope value in y-axis.
- double gps_get_gyro_rate_z(uint8_t port)
- Get the GPS's raw gyroscope value in z-axis.
-
gps_
accel_ s_ t gps_get_accel(uint8_t port) - Get the GPS's raw accelerometer values.
- double gps_get_accel_x(uint8_t port)
- Get the GPS's raw accelerometer value in x-axis.
- double gps_get_accel_y(uint8_t port)
- Get the GPS's raw accelerometer value in y-axis.
- double gps_get_accel_z(uint8_t port)
- Get the GPS's raw accelerometer value in z-axis.
Typedefs
- using gps_accel_s_t = struct gps_raw_s
- using gps_gyro_s_t = struct gps_raw_s