Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Pixhawk to Receive MAVLink v2 Framed Messages #23074

Closed
anand2532 opened this issue Apr 30, 2024 · 7 comments
Closed

Enable Pixhawk to Receive MAVLink v2 Framed Messages #23074

anand2532 opened this issue Apr 30, 2024 · 7 comments

Comments

@anand2532
Copy link

Describe the bug

I’m currently working on a project where I need to enable Pixhawk to receive MAVLink v2 framed messages. However, I’m encountering some difficulties in implementing this functionality. MAVLink v2 offers significant improvements over v1, especially in terms of efficiency and security, and enabling Pixhawk to handle v2 messages would be extremely beneficial for many projects.

The goal of this issue is to discuss and find a solution or workaround for enabling Pixhawk to receive MAVLink v2 framed messages

To Reproduce

Newly Additional data of MAVLink V2 are not reflecting on QGC.

Expected behavior

The goal of this issue is to discuss and find a solution or workaround for enabling Pixhawk to receive MAVLink v2 framed messages

Screenshot / Media

No response

Flight Log

I just want the solution to sent the V2 framed messages.

Software Version

version 14

Flight controller

pixhwak 6x mini

Vehicle type

Multicopter

How are the different components wired up (including port information)

We are sending the messages through TELEM2 port.

Additional context

No response

@anand2532 anand2532 changed the title Enable Pixhawk to Receive MAVLink v2 Framed Messages [Bug] Enable Pixhawk to Receive MAVLink v2 Framed Messages Apr 30, 2024
@julianoes
Copy link
Contributor

What do you mean with "framed messages"?

@anand2532
Copy link
Author

// Sending BATTERY_STATUS of an external BMS
msg := &common.MessageBatteryStatus{
Id: 180,
BatteryFunction: common.MAV_BATTERY_FUNCTION_ALL,
Type: common.MAV_BATTERY_TYPE_LION,
Temperature: d.status.temperature,
Voltages: [10]uint16{c1, c2, c3, c4, c5, c6, c7, c8, c9, c10},
CurrentBattery: d.status.current,
CurrentConsumed: d.status.capacityConsumed,
EnergyConsumed: d.status.energyConsumed,
BatteryRemaining: d.status.remaining,
TimeRemaining: d.status.timeRemaining,
ChargeState: d.status.chargeState,
VoltagesExt: [4]uint16{c11, c12, c13, c14},
Mode: d.status.mode_config,
FaultBitmask: d.status.bitmask,
}

As described in MAVLink Common Messages:
TimeRemaining, ChargeState, VoltagesExt, Mode, and FaultBitmask are displayed in blue, indicating MAVLink 2 extension fields.

When sending these messages, MAVLink v1 messages are reflecting in QGroundControl, but MAVLink v2 extension fields are not reflecting. I inquired about this but didn't receive any response in PX4 Discuss Forum and PX4 Discord.

@julianoes
Copy link
Contributor

Can you link to the discuss post? And maybe explain a bit more what your problem is, maybe with some screenshots? I still don't understand what you mean.

@anand2532
Copy link
Author

Hey @julianoes,

I have elaborated over the problem I have faced here, thank you for the reply.

@anand2532
Copy link
Author

Hi @julianoes,

Can you please give me some direction on what might be the issue and how I can fix this?

@anand2532
Copy link
Author

Hey @julianoes ,
I have elaborated the problem with screen shot, please have a look here

@mrpollo
Copy link
Contributor

mrpollo commented May 14, 2024

PX4 supports MAVLink 2, I'm closing this issue, and following up on forums

@mrpollo mrpollo closed this as completed May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants