LCOV - code coverage report
Current view: top level - AP_GPS - MovingBase.cpp (source / functions) Hit Total Coverage
Test: lcov.info Lines: 3 3 100.0 %
Date: 2026-09-09 11:02:08 Functions: 1 1 100.0 %

          Line data    Source code
       1             : #include "MovingBase.h"
       2             : 
       3             : const AP_Param::GroupInfo MovingBase::var_info[] = {
       4             :     // @Param: TYPE
       5             :     // @DisplayName: Moving base type
       6             :     // @Description: Controls the type of moving base used if using moving base.This is renamed in 4.6 and later to GPSx_MB_TYPE.
       7             :     // @Values: 0:Relative to alternate GPS instance,1:RelativeToCustomBase
       8             :     // @User: Advanced
       9             :     // @RebootRequired: True
      10             :     AP_GROUPINFO_FLAGS("TYPE", 1, MovingBase, type, int8_t(Type::RelativeToAlternateInstance), AP_PARAM_FLAG_ENABLE),
      11             : 
      12             :     // @Param: OFS_X
      13             :     // @DisplayName: Base antenna X position offset
      14             :     // @Description: X position of the base (primary) GPS antenna in body frame from the position of the 2nd antenna. Positive X is forward of the 2nd antenna. Use antenna phase centroid location if provided by the manufacturer.This is renamed in 4.6 and later to GPSx_MB_OFS_X.
      15             :     // @Units: m
      16             :     // @Range: -5 5
      17             :     // @Increment: 0.01
      18             :     // @User: Advanced
      19             :     
      20             :     // @Param: OFS_Y
      21             :     // @DisplayName: Base antenna Y position offset    
      22             :     // @Description: Y position of the base (primary) GPS antenna in body frame from the position of the 2nd antenna. Positive Y is to the right of the 2nd antenna. Use antenna phase centroid location if provided by the manufacturer.This is renamed in 4.6 and later to GPSx_MB_OFS_Y.
      23             :     // @Units: m
      24             :     // @Range: -5 5
      25             :     // @Increment: 0.01
      26             :     // @User: Advanced
      27             :     
      28             :     // @Param: OFS_Z
      29             :     // @DisplayName: Base antenna Z position offset
      30             :     // @Description: Z position of the base (primary) GPS antenna in body frame from the position of the 2nd antenna. Positive Z is down from the 2nd antenna. Use antenna phase centroid location if provided by the manufacturer.This is renamed in 4.6 and later to GPSx_MB_OFS_Z.
      31             :     // @Units: m
      32             :     // @Range: -5 5
      33             :     // @Increment: 0.01
      34             :     // @User: Advanced
      35             :     AP_GROUPINFO("OFS", 2, MovingBase, base_offset, 0.0f),
      36             : 
      37             :     AP_GROUPEND
      38             : 
      39             : };
      40             : 
      41        6294 : MovingBase::MovingBase(void) {
      42        6294 :     AP_Param::setup_object_defaults(this, var_info);
      43        6294 : }

Generated by: LCOV version 1.14