mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 11:06:04 +08:00
removed comment copy/paste from GPS driver
A line was too long, shrunk it
This commit is contained in:
@@ -237,21 +237,12 @@ void usage(const char *reason)
|
|||||||
PRINT_MODULE_DESCRIPTION(
|
PRINT_MODULE_DESCRIPTION(
|
||||||
R"DESCR_STR(
|
R"DESCR_STR(
|
||||||
### Description
|
### Description
|
||||||
GPS driver module that handles the communication with the device and publishes the position via uORB.
|
Smart battery driver for the BQ40Z50 fuel gauge IC.
|
||||||
It supports multiple protocols (device vendors) and by default automatically selects the correct one.
|
|
||||||
|
|
||||||
The module supports a secondary GPS device, specified via `-e` parameter. The position will be published
|
|
||||||
on the second uORB topic instance, but it's currently not used by the rest of the system (however the
|
|
||||||
data will be logged, so that it can be used for comparisons).
|
|
||||||
|
|
||||||
### Implementation
|
|
||||||
There is a thread for each device polling for data. The GPS protocol classes are implemented with callbacks
|
|
||||||
so that they can be used in other projects as well (eg. QGroundControl uses them too).
|
|
||||||
|
|
||||||
### Examples
|
### Examples
|
||||||
For testing it can be useful to fake a GPS signal (it will signal the system that it has a valid position):
|
To write to flash to set parameters. address, number_of_bytes, byte0, ... , byteN
|
||||||
$ gps stop
|
$ batt_smbus -X write_flash 19069 2 27 0
|
||||||
$ gps start -f
|
|
||||||
)DESCR_STR");
|
)DESCR_STR");
|
||||||
|
|
||||||
PRINT_MODULE_USAGE_NAME("batt_smbus", "driver");
|
PRINT_MODULE_USAGE_NAME("batt_smbus", "driver");
|
||||||
|
|||||||
Reference in New Issue
Block a user