Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Feb 09 00:22

    tridge on master

    archive repo (compare)

  • Feb 09 00:09

    tridge on master

    Add basic support CANFD transmi… disable tail array optimisation… include padding bytes introduce… and 4 more (compare)

  • Feb 09 00:09
    tridge closed #18
  • Feb 07 18:05
    bugobliterator synchronize #18
  • Aug 25 2021 14:28
    khancyr commented #21
  • Aug 25 2021 14:18
    khancyr edited #21
  • Aug 25 2021 14:18
    khancyr opened #21
  • Aug 25 2021 11:15
    khancyr opened #20
  • Jul 12 2021 20:48

    tridge on master

    ignore cast-align in Pool alloc… (compare)

  • Jul 12 2021 20:48
    tridge closed #19
  • Jun 26 2021 07:48
    bugobliterator opened #19
  • May 17 2021 18:19
    bugobliterator opened #18
  • May 03 2021 12:50
    bugobliterator closed #14
  • Sep 09 2019 03:29

    tridge on master

    protocol: replace unsupported %… (compare)

  • Sep 09 2019 03:29
    tridge closed #17
  • Sep 08 2019 05:36
    bugobliterator opened #17
  • Aug 14 2019 03:51

    tridge on master

    Add override keyword to those m… (compare)

  • Aug 14 2019 03:51
    tridge closed #16
  • Aug 14 2019 01:37
    peterbarker opened #16
  • Aug 14 2019 01:33

    peterbarker on override-keywords

    Add override keyword to those m… (compare)

Mark Whitehorn
@kd0aij
then there would be no need to calibrate at all :)
moluav
@moluav
The magnetic compass has errors when it leaves the factory. Calibration is also required when crossing regions.
sethjones348
@sethjones348
@davidbuzz I apologize for the delayed response but I am appreciative of the time you took to address my situation. My focus will be more on this project for the next couple of months than it has been. Our system is more like the complete end-to-end system you described, with a "master" controller that addresses other devices using j1939. We also do have access to documentation for the specific bits and bytes of every packet in the bus. With this in mind, we will likely attempt to add the pixhawk to the existing bus. Would the "capturing" described and the software logic to read and write commands/instructions be implemented in its own "AP_J1939" library in the codebase? Thanks!
Malcolm Churn
@ukmook
@tridge tested latest master as pulled from an hour ago, I can get 2 rangefinders one on fc and one on node but can’t get 2 on node using serial, don’t know whether I should be able to but thought I would report my findings.
Andrew Tridgell
@tridge
@ukmook no, we don't support multiple rangefinders on one node yet in AP_Periph
we could add that if there is need for it
Malcolm Churn
@ukmook
@tridge ok thanks just thought I would try
Jan
@swanepoeljan
Hi all, I have tried my hand at writing a libcanard based test program that sends a NodeStatus message every 750ms and can also respond to a GetNodeInfo message. I tested it with UAVCAN GUI tool and it works nicely so far. To make it do something more interesting I added the transmission of uavcan.equipment.power.BatteryInfo and then just hard-coded some fake battery voltage and current readings. Also tested this with UAVCAN GUI and it works.
Problem is that when I hookup my node to my FC with fw 4.0.4 and set battery type to UAVCAN it does not seem to work. To try and debug I toggled a led on my node when it receives NodeStatus from the FC. After power-up it seems like it receives about 5 to 10 messages (flashes) and then nothing more. When I use SLCAN on Mission Planner then I can see my Node and the led keeps flashing (receiving NodeStatus) until I disconnect it.
I know it's hard to say without seeing the code but maybe anybody have some advice were the issue could possibly be?
UAVCANGUI_BatteryInfo.png
Jan
@swanepoeljan
As an additional test I added the MagneticFieldStrength message and it shows up but still no BatteryInfo messages. Could somebody maybe confirm that BatteryInfo does indeed work? I see the code is there in AP_BatteryMonitor_UAVCAN and from my limited knowledge I guess it's okay?
MP_Inspector_Mag.png
Jan
@swanepoeljan
Okay, I can confirm it works! My issues was in the way I handled the dynamic arrays, forgot to add the length bits...
Fredrik Hedberg
@fhedberg
I've just gotten a KDE-UAS125UVC ESC that I'm having weird issues with when trying to set up. Having enabled UAVCAN on can1 and KDECAN on can2 on a BlackCube, once I plug the ESC into can2, can1 stops working and the Here2 GPS fails. When snooping traffic via SLCAN on can1, all UAVCAN activity stop immediately, only to start working again after disconnecting the ESC from can2. Any advice?
James O'Shannessy
@joshanne
image.png

Hi All, I have a question re. examples/UAVCAN_sniffer...
I currently have access to a a cube, which is able to run uavcan_gui_tool bus monitor and dump the traffic that way. But I was hoping to run UAVCAN_sniffer, which appears to be able to produce a serial stream of message names and counts.
Strangely, all I appear to see is the system time being printed.

Have I misunderstood the purpose of UAVCAN_sniffer? or am I using it incorrectly?
Thanks

A snippet of the output from the UAVCAN_sniffer example
UAVCAN: init done
2016508
3016393
Successfully mounted SDCard (slowdown=0)
4016395
5016648
6016455
7016806
8016589
Andrew Tridgell
@tridge
I suspect it isn't seeing any packets. I used it yesterday and worked for me
You know cubeblack has can1 and can2 swapped on carrier labels?
James O'Shannessy
@joshanne

That's odd - the uavcan_gui_tool image (above) is from the same cube connected to the same CAN network above - so I know there is messages on the network.

I wasn't aware the cube black has the labels swapped. I've got a cube orange - I haven't seen the swapped labels in any cubepilot documentation for the orange.

I just tried UAVCAN_sniffer again, checking connection on both CAN labels, and still only have the system time being printed. Swapping back to running plane on the cube orange, and checking uavcan_gui_tool I can still see the can node.

image.png
My goal is to utilize something like a pixracer to run the UAVCAN_sniffer example.
James O'Shannessy
@joshanne
I guess the other obvious question is, should I be running this from a specific branch or tag?
My periph is running from the latest tagged periph version, and cube was running plane and sniffer from master.
James O'Shannessy
@joshanne
image.png
Okay - so this is interesting.
I went from running plane where uavcan_tool_gui was working, then flashing UAVCAN_sniffer without unplugging the cube, and it had messages coming in, in a format I was expecting.
James O'Shannessy
@joshanne

Ahh, the peripheral was 'initialized' and setup for UAVCAN when running plane, and when I reflash to the sniffer, the network is already set up. If I unplug/replug the peripheral, the light constantly flashes, which is searching for network, or network not available, or the like.

Is the sniffer not able to start the network? or is there an extra step there I'm missing?

James O'Shannessy
@joshanne
Eureka! Dynamic Node Allocation. The sniffer doesn't do DNA, so you need to set the param on the periph to hard code the node id. When I did this, the sniffer works first time. :-)
Andrew Tridgell
@tridge
Great!
TarasMelnik
@TarasMelnik
TarasMelnik
@TarasMelnik
hello. Tell me how to properly flash the processor f303. I tried and st-flash write build/f303-Universal/bin/AP_Bootloader.bin bold0x8000000
st-flash write build/f303-Universal/bin/AP_Periph.bin bold0x801000 , but the processor does not come out of the bootloader. There were no problems with f103.
Randy Mackay
@rmackay9
Hi there, more and more discussion is moving to discord so you are all invited to join us over there! https://ardupilot.org/discord
Caleb Martin
@caleb272
Hello all, is there a px4 ardupilot fork that uses CANOpen instead of UAVCAN?
Buzz
@davidbuzz
no.
also, px4 is NOT ardupilot.
Caleb Martin
@caleb272
@davidbuzz Sorry yeah, specifically I want to use mavros on a RPI talking to a pixhawk4 via the CAN bus and some other nodes on the network will be using UAVCAN
I saw some stuff about UAVCAN in the mavlink code but its not clear if you can somehow set the mavlink to talk to the FC via CAN or what
RajakumarR
@RajakumarR
Hi I want to make CAN Communication between my won motor controller to pixhawk 2.4.8. i have mission planner . in my motor controller i have CAN 2.0 with 11 bit identifier . i have to send data to flight controller like speed current voltage and temperature. could you please clarify someone . what is the CAN ID i have to use and what is the format i need to send the data
Mahdiul Chowdhury
@MahdiulChowdhury
I am trying to setup VESC with CAN and also trying to read the encoder data using pixhakw cube and ardupilot? can anyone please refer me to a doc or something that can help setting this up ?
ciamia
@ciamia
Hi guys, I am trying to send my battery datas with stm32f405 to autopilot which is a orange cube. I managed to send datas from stm32f405 to cube with Can communication on Arduino IDE as I compared datas from Serial and DroneCan. Do I have to switch to UAVCAN to send battery info?