Skip to content

Commit

Permalink
MainV2: add nodeinfo debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
meee1 committed Mar 5, 2024
1 parent b04d34e commit 065f88a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MainV2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1831,7 +1831,7 @@ public void doConnect(MAVLinkInterface comPort, string portname, string baud, bo

can.NodeAdded += (id, status) =>
{
Console.WriteLine(id + " Node status seen");
Console.WriteLine(id + " Node status seen - request Node Info");
// get node info
DroneCAN.DroneCAN.uavcan_protocol_GetNodeInfo_req gnireq = new DroneCAN.DroneCAN.uavcan_protocol_GetNodeInfo_req() { };

Expand Down Expand Up @@ -1862,6 +1862,8 @@ public void doConnect(MAVLinkInterface comPort, string portname, string baud, bo
var githash = can.NodeInfo[node.Key].software_version.vcs_commit.ToString("X");
//Version and githash

log.Info(node.ToJSON());

var option = APFirmware.Manifest.Firmware.Where(a =>
a.MavFirmwareVersionType == APFirmware.RELEASE_TYPES.OFFICIAL.ToString() &&
a.VehicleType == "AP_Periph" &&
Expand Down

0 comments on commit 065f88a

Please sign in to comment.