Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/libraries/AP_GPS/AP_GPS_Params.cpp
Views: 1798
1/*2This program is free software: you can redistribute it and/or modify3it under the terms of the GNU General Public License as published by4the Free Software Foundation, either version 3 of the License, or5(at your option) any later version.67This program is distributed in the hope that it will be useful,8but WITHOUT ANY WARRANTY; without even the implied warranty of9MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the10GNU General Public License for more details.1112You should have received a copy of the GNU General Public License13along with this program. If not, see <http://www.gnu.org/licenses/>.14*/1516#include "AP_GPS_config.h"1718#if AP_GPS_ENABLED1920#include "AP_GPS.h"2122// table of user settable parameters23const AP_Param::GroupInfo AP_GPS::Params::var_info[] = {24// @Param: TYPE25// @DisplayName: GPS type26// @Description: GPS type27// @Values: 0:None,1:AUTO,2:uBlox,5:NMEA,6:SiRF,7:HIL,8:SwiftNav,9:DroneCAN,10:Septentrio(SBF),11:Trimble(GSOF),13:ERB,14:MAVLink,15:NOVA,16:HemisphereNMEA,17:uBlox-MovingBaseline-Base,18:uBlox-MovingBaseline-Rover,19:MSP,20:AllyStar,21:ExternalAHRS,22:DroneCAN-MovingBaseline-Base,23:DroneCAN-MovingBaseline-Rover,24:UnicoreNMEA,25:UnicoreMovingBaselineNMEA,26:Septentrio-DualAntenna(SBF)28// @RebootRequired: True29// @User: Advanced30AP_GROUPINFO_FLAGS("TYPE", 1, AP_GPS::Params, type, 0, AP_PARAM_FLAG_ENABLE),3132// @Param: GNSS_MODE33// @DisplayName: GNSS system configuration34// @Description: Bitmask for what GNSS system to use on the first GPS (all unchecked or zero to leave GPS as configured)35// @Bitmask: 0:GPS,1:SBAS,2:Galileo,3:Beidou,4:IMES,5:QZSS,6:GLONASS36// @User: Advanced37AP_GROUPINFO("GNSS_MODE", 2, AP_GPS::Params, gnss_mode, 0),3839// @Param: RATE_MS40// @DisplayName: GPS update rate in milliseconds41// @Description: Controls how often the GPS should provide a position update. Lowering below 5Hz(default) is not allowed. Raising the rate above 5Hz usually provides little benefit and for some GPS (eg Ublox M9N) can severely impact performance.42// @Units: ms43// @Values: 100:10Hz,125:8Hz,200:5Hz44// @Range: 50 20045// @User: Advanced46AP_GROUPINFO("RATE_MS", 3, AP_GPS::Params, rate_ms, 200),4748// @Param: POS_X49// @DisplayName: Antenna X position offset50// @Description: X position of the first GPS antenna in body frame. Positive X is forward of the origin. Use antenna phase centroid location if provided by the manufacturer.51// @Units: m52// @Range: -5 553// @Increment: 0.0154// @User: Advanced5556// @Param: POS_Y57// @DisplayName: Antenna Y position offset58// @Description: Y position of the first GPS antenna in body frame. Positive Y is to the right of the origin. Use antenna phase centroid location if provided by the manufacturer.59// @Units: m60// @Range: -5 561// @Increment: 0.0162// @User: Advanced6364// @Param: POS_Z65// @DisplayName: Antenna Z position offset66// @Description: Z position of the first GPS antenna in body frame. Positive Z is down from the origin. Use antenna phase centroid location if provided by the manufacturer.67// @Units: m68// @Range: -5 569// @Increment: 0.0170// @User: Advanced71AP_GROUPINFO("POS", 4, AP_GPS::Params, antenna_offset, 0.0f),7273// @Param: DELAY_MS74// @DisplayName: GPS delay in milliseconds75// @Description: Controls the amount of GPS measurement delay that the autopilot compensates for. Set to zero to use the default delay for the detected GPS type.76// @Units: ms77// @Range: 0 25078// @User: Advanced79// @RebootRequired: True80AP_GROUPINFO("DELAY_MS", 5, AP_GPS::Params, delay_ms, 0),8182#if AP_GPS_SBF_ENABLED83// @Param: COM_PORT84// @DisplayName: GPS physical COM port85// @Description: The physical COM port on the connected device, currently only applies to SBF and GSOF GPS86// @Range: 0 1087// @Increment: 188// @User: Advanced89// @Values: 0:COM1(RS232) on GSOF, 1:COM2(TTL) on GSOF90// @RebootRequired: True91AP_GROUPINFO("COM_PORT", 6, AP_GPS::Params, com_port, HAL_GPS_COM_PORT_DEFAULT),92#endif9394#if GPS_MOVING_BASELINE95// @Group: MB_96// @Path: MovingBase.cpp97AP_SUBGROUPINFO(mb_params, "MB_", 7, AP_GPS::Params, MovingBase),98#endif99100#if HAL_ENABLE_DRONECAN_DRIVERS101// @Param: CAN_NODEID102// @DisplayName: Detected CAN Node ID for GPS103// @Description: GPS Node id for GPS. Detected node unless CAN_OVRIDE is set104// @ReadOnly: True105// @User: Advanced106AP_GROUPINFO("CAN_NODEID", 8, AP_GPS::Params, node_id, 0),107108// @Param: CAN_OVRIDE109// @DisplayName: DroneCAN GPS NODE ID110// @Description: GPS Node id for GPS. If 0 the gps will be automatically selected on a first-come-first-GPS basis.111// @User: Advanced112AP_GROUPINFO("CAN_OVRIDE", 9, AP_GPS::Params, override_node_id, 0),113#endif114115AP_GROUPEND116};117118AP_GPS::Params::Params(void)119{120AP_Param::setup_object_defaults(this, var_info);121}122123#endif // AP_GPS_ENABLED124125126