Creates a message with every field zero.
The shape to build, or the id or name of a message the engine types.
The zeroed message, ready for its fields to be set.
const heartbeat = message('HEARTBEAT')heartbeat.set('type', enumValue('MAV_TYPE_ONBOARD_CONTROLLER'))heartbeat.set('system_status', enumValue('MAV_STATE_ACTIVE'))const frame = heartbeat.toFrame({ systemId: 1, componentId: 1, sequence: 0 }) Copy
const heartbeat = message('HEARTBEAT')heartbeat.set('type', enumValue('MAV_TYPE_ONBOARD_CONTROLLER'))heartbeat.set('system_status', enumValue('MAV_STATE_ACTIVE'))const frame = heartbeat.toFrame({ systemId: 1, componentId: 1, sequence: 0 })
Creates a message with every field zero.