mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Add CANNODE_GPS_RTCM
This commit is contained in:
parent
3cd1e0ce19
commit
d1304e1ceb
@ -4,6 +4,7 @@
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
param set-default CBRK_IO_SAFETY 0
|
||||
param set-default CANNODE_GPS_RTCM 1
|
||||
|
||||
safety_button start
|
||||
tone_alarm start
|
||||
|
||||
6
boards/freefly/can-rtk-gps/init/rc.board_defaults
Normal file
6
boards/freefly/can-rtk-gps/init/rc.board_defaults
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# board specific defaults
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
param set-default CANNODE_GPS_RTCM 1
|
||||
@ -304,14 +304,25 @@ int UavcanNode::init(uavcan::NodeID node_id, UAVCAN_DRIVER::BusEvent &bus_events
|
||||
_publisher_list.add(new MagneticFieldStrength2(this, _node));
|
||||
_publisher_list.add(new RangeSensorMeasurement(this, _node));
|
||||
_publisher_list.add(new RawAirData(this, _node));
|
||||
_publisher_list.add(new MovingBaselineDataPub(this, _node));
|
||||
|
||||
int32_t enable_movingbaselinedata = 0;
|
||||
param_get(param_find("CANNODE_GPS_RTCM"), &enable_movingbaselinedata);
|
||||
|
||||
if (enable_movingbaselinedata != 0) {
|
||||
_publisher_list.add(new MovingBaselineDataPub(this, _node));
|
||||
|
||||
}
|
||||
|
||||
_publisher_list.add(new SafetyButton(this, _node));
|
||||
_publisher_list.add(new StaticPressure(this, _node));
|
||||
_publisher_list.add(new StaticTemperature(this, _node));
|
||||
|
||||
_subscriber_list.add(new BeepCommand(_node));
|
||||
_subscriber_list.add(new LightsCommand(_node));
|
||||
_subscriber_list.add(new MovingBaselineData(_node));
|
||||
|
||||
if (enable_movingbaselinedata != 0) {
|
||||
_subscriber_list.add(new MovingBaselineData(_node));
|
||||
}
|
||||
|
||||
for (auto &subscriber : _subscriber_list) {
|
||||
subscriber->init();
|
||||
|
||||
@ -80,3 +80,12 @@ PARAM_DEFINE_INT32(CANNODE_TERM, 0);
|
||||
* @group UAVCAN
|
||||
*/
|
||||
PARAM_DEFINE_INT32(CANNODE_FLOW_ROT, 0);
|
||||
|
||||
/**
|
||||
* Enable RTCM pub/sub
|
||||
*
|
||||
* @boolean
|
||||
* @max 1
|
||||
* @group UAVCAN
|
||||
*/
|
||||
PARAM_DEFINE_INT32(CANNODE_GPS_RTCM, 0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user