First of all thank you very much for adding support for battery monitoring!
I tried to adjust the hwdef.dat file such that i can compile for a battery monitor based on a STM32F103.
It is working so far that I receive battery monitor messages via the uavcan gui, but it seems that the ADC is not working.
I found out that Chibios has not really support for the ADC of the STM32F103. Is there a way to get the ADC functional within this application?
If not, does the battery monitor support analog mode for the STM32F303?
I assume that I have to make the following settings in the hwdef file:
define HAL_USE_ADC TRUE
define STM32_ADC_USE_ADC1 TRUE
and remove the line: define HAL_DISABLE_ADC_DRIVER TRUE
Is this correct? and did I forget something yet?
Thank you for your reply!
My coding C++ skills are very limited, but maybe I will give it a try.
What is the most logical way to add support for the ADC for STM32F1xx series?
Should it be added in: “AP_Periph_1_2_0/libraries/AP_HAL_ChibiOS/AnalogIn.cpp”?
Or do we need to add a driver in the “AP_Periph_1_2_0/modules/ChibiOS/os/hal/ports/STM32/LLD/ADCvX” folder?
It looks like that the ADC driver of Chibios is not used, but is this true?
The same problem exists on the F303-Matek on the M8Q-CAN and M9N-CAN where GPS, Baro and Compass datas are displayed in the Missionplanner in contrast to airspeed. Airspeed values however are also displayed in UAVCAN Inspector.
Both on a Pixhawk 1 and a Matek H743 with current stable fimrware.
SUPPLEMENT:
The airspeed is also not displayed at OSD ( neither OSD1_ASPEED, OSD1_ASPD1 nor OSD1_ASPD2).
Which GNSS module(s)? Several off the shelf UAVCAN capable units expose the RGB LED as an AP_Notify device. In order to enable it, you need to add “UAVCAN” to the NTF_LED_TYPES mask. Is that what you are referring to?
Sorry, I should have replied to my own post, I was using the modules for testing mentioned earlier. (Holybro F9P, Holybro M8N, Here 2 in I2C mode) and a Cube Orange.
As Firmware I have used F303-GPS as well as F303-Universal
NTF led is set to 231 in Ardupilot and a Here 3 directly on CAN1 has also working LEDs
But I don’t get any LED response from any of the GNSS modules tested with the CAN Node.
Is there any other setting I have to set/change in the CAN Node? (The only parameter that I can find is LED brightness)
I have several mro nodes I’d like to start using to control some ESCs. Is it possible to control more than one esc with a single node or do I have to have a node per esc? wasn’t sure if I have say 3 GPIO if I could assign each pin an esc/servo output?
So I have this correct I assume I have to somehow flash my F303 based MRO node with a firmware that I build that tells the board to use the GPIO pins for esc,s?
On the ardupilot GitHub I can see there is a f303-HWESC with hwdef.dat file. This seems to have “define HAL_PERIPH_ENABLE_HWESC” but I don’t understand how I define the pins to use? Or how to tell this node I want it to be esc 1,2,3 and a 2nd node be 4,5,6?
@tridge thanks, so I need servo output then. I assume HAL_PERIPH_ENABLE_RC_OUT is what I need? And I need to assign pins somehow in hwdef when I build the firmware.
as I can’t find this documented anywhere I have a question concerning MSP (as I know, it works with CAN): Is DGNSS with NTRIP possible via MSP? If yes, is that also supported by ArduPilot as master?
Hi, i just tried to update an M9N-F4-3100 firmware but probably I messed up something becasue I cannot receive anymore GPS signals. which is the proper firmware to upload on it for using as an externa GPS CAN connected to an H743 FC?
Thanks
Andrea