mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
gnss: update supported baud rates (#23415)
* gnss: update supported baud rates The Septentrio GNSS driver requires certain baud rates to test all the supported baud rates of the receiver. Without these changes, certain "non-standard" ones would print an error to the MAVLink console when the driver was started through the console. * platforms: add missing baudrate defines --------- Co-authored-by: Thomas Frans <franske2000@gmail.com> Co-authored-by: Julian Oes <julian@oes.ch>
This commit is contained in:
parent
d2478d00cf
commit
3157a4e171
@ -97,12 +97,36 @@ bool SerialImpl::configure()
|
||||
|
||||
case 460800: speed = B460800; break;
|
||||
|
||||
#ifndef B500000
|
||||
#define B500000 500000
|
||||
#endif
|
||||
|
||||
case 500000: speed = B500000; break;
|
||||
|
||||
#ifndef B576000
|
||||
#define B576000 576000
|
||||
#endif
|
||||
|
||||
case 576000: speed = B576000; break;
|
||||
|
||||
#ifndef B921600
|
||||
#define B921600 921600
|
||||
#endif
|
||||
|
||||
case 921600: speed = B921600; break;
|
||||
|
||||
#ifndef B1000000
|
||||
#define B1000000 1000000
|
||||
#endif
|
||||
|
||||
case 1000000: speed = B1000000; break;
|
||||
|
||||
#ifndef B1500000
|
||||
#define B1500000 1500000
|
||||
#endif
|
||||
|
||||
case 1500000: speed = B1500000; break;
|
||||
|
||||
default:
|
||||
speed = _baudrate;
|
||||
PX4_WARN("Using non-standard baudrate: %lu", _baudrate);
|
||||
|
||||
@ -90,12 +90,36 @@ bool SerialImpl::configure()
|
||||
|
||||
case 460800: speed = B460800; break;
|
||||
|
||||
#ifndef B500000
|
||||
#define B500000 500000
|
||||
#endif
|
||||
|
||||
case 500000: speed = B500000; break;
|
||||
|
||||
#ifndef B576000
|
||||
#define B576000 576000
|
||||
#endif
|
||||
|
||||
case 576000: speed = B576000; break;
|
||||
|
||||
#ifndef B921600
|
||||
#define B921600 921600
|
||||
#endif
|
||||
|
||||
case 921600: speed = B921600; break;
|
||||
|
||||
#ifndef B1000000
|
||||
#define B1000000 1000000
|
||||
#endif
|
||||
|
||||
case 1000000: speed = B1000000; break;
|
||||
|
||||
#ifndef B1500000
|
||||
#define B1500000 1500000
|
||||
#endif
|
||||
|
||||
case 1500000: speed = B1500000; break;
|
||||
|
||||
default:
|
||||
speed = _baudrate;
|
||||
PX4_WARN("Using non-standard baudrate: %u", _baudrate);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user