Commit Graph

20 Commits

Author SHA1 Message Date
Thomas Watson 360e54f871 AP_GPS: optimize DroneCAN subscription process
* remove unnecessary nullptr check, these are always called from an
  initialized AP_DroneCAN so if it's nullptr something has gone
  horrifically wrong

* pass in driver index instead of repeatedly calling function to get it

* simplify error handling; knowing exactly which allocation failed is not
  super helpful and one failing likely means subsequent ones will too,
  as it can only fail due to being out of memory
2024-11-18 10:30:29 +11:00
Peter Barker 42805aa892 AP_GPS: confine inter-instance DroneCAN state checks to DroneCAN GPSs
stop these looking at parameters/state for all GPSs, focus on DroneCAN GPSs
2024-07-02 09:56:40 +10:00
Peter Barker ebfbcacfe3 AP_GPS: tidy pre_arm_checks 2024-07-02 09:56:40 +10:00
Andrew Tridgell 1e075aeb80 AP_GPS: use NEW_NOTHROW for new(std::nothrow) 2024-06-04 09:20:21 +10:00
Peter Barker 2a010623b2 AP_GPS: allow forwards/backwards for DroneCAN type autoconfig
ArduPilot configures a connected DroneCAN GPS based on its GPS Type.

Given parameter name changes, ArduPilot must be able to configure both new and old AP_Periphs, and new AP_Periphs have to cope with being configured by old ArduPilots.
2024-03-19 19:50:12 +11:00
Peter Barker 21fc013016 AP_GPS: use subgroup to hold GPS instance parameters 2024-03-19 19:50:12 +11:00
Andrew Tridgell 4fca2ee852 AP_GPS: prevent announcing DroneCAN at 5Hz 2024-02-22 13:27:54 +11:00
Peter Barker fa8f3b5715 AP_GPS: allow compilation with HAL_LOGGING_ENABLED false 2024-01-17 18:25:55 +11:00
Mykhailo Kuznietsov 3a7e939a6c AP_GPS: Fix some typos
Fixed some typos found in the code.
2023-10-12 18:30:42 +11:00
Andrew Tridgell 89bd6ab218 AP_GPS: implement the GPS_DRV_OPTION for ellisoid height in mode drivers
this allows a lot more drivers to use the GPS_DRV_OPTION but to use
ellisoid height. Particularly useful for DroneCAN GPS modules

using ellisoid height instead of AMSL is useful in some specialised
application
2023-09-21 19:36:26 +10:00
Andrew Tridgell 74139423cb AP_GPS: fixes for macos CAN SITL build 2023-08-29 15:09:48 +10:00
Andrew Tridgell babd2d2033 AP_GPS: removed native_millis/micros 2023-08-24 13:06:40 +10:00
Peter Barker 00bc4a9e8b AP_GPS: add and use AP_GPS_DRONECAN_ENABLED 2023-08-02 17:46:30 +10:00
Andrew Tridgell 64869b6e16 AP_GPS: fixed RTK injection with moving baseline
when 2nd DroneCAN GPS on the bus is the base in moving baseline we
need to be able to inject to it
2023-06-27 10:32:43 +10:00
Andrew Tridgell 531b12e272 AP_GPS: fixed RTCM injection for DroneCAN GPS
need to check broadcast() return
2023-06-08 10:15:50 +10:00
bugobliterator 5026b3d08c AP_GPS: send RTCM Stream message to over dronecan directly 2023-05-31 17:31:09 +10:00
Andrew Tridgell 834831bfeb AP_GPS: text messages and more defines 2023-04-11 10:31:31 +10:00
Andrew Tridgell 645fd82507 AP_GPS: rename more variables, types and defines 2023-04-11 10:31:31 +10:00
Andrew Tridgell 5952eb1249 AP_GPS: update header references 2023-04-11 10:31:31 +10:00
Andrew Tridgell 258158b0bc AP_GPS: rename UAVCAN drivers to DroneCAN 2023-04-11 10:31:31 +10:00