Amilcar Lucas
Amilcar Lucas
It looks like i2c-2 is not working at all :( and that causes the capes to not be detected. Could this be caused by https://github.com/RobertCNelson/Bootloader-Builder/commit/294bc183dfa64c09ac4a83ba66c1e8dc74b922d9 ?
You seam to have [added i2c permissions on Nov5](https://github.com/beagleboard/customizations/commit/63dbb2998fd330a3b564329c7ccfd934b59cbfd9) but that has not fixed the problem :(
This is the result: ``` git:/opt/scripts/:[fe926a6a4cf5805041878d7df82b58c00b4f902e] eeprom:[A335BNLT000C1940BBBG0782] model:[TI_AM335x_BeagleBone_Black] dogtag:[rcn-ee.net Ubuntu Console Image 2020-04-09] bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot SPL 2019.04-00002-gc9b3922522 (Aug 24 2020 - 16:42:18 -0500)]:[location: dd MBR] bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2019.04-00002-gc9b3922522]:[location: dd MBR] UBOOT: Booted...
Ooops we did not noticed that one exist already. We will rebase on top of the existing one.
@karthikdesai does the upstream plugin replace our own? Looks like ours has more options.
> I would rather having separate diagnostics for each ESC than each value. I will work on that than. > you can move limit init to custom diag class. Will...
I did some of the changes you requested, but I think I did not use it the way you planned. Can you take a look at it?
It is deep and ugly: ``` /usr/include/c++/7/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator::construct(_Up*, _Args&& ...) [with _Up = mavros::extra_plugins::ESCDiag; _Args = {std::__cxx11::basic_string}; _Tp = mavros::extra_plugins::ESCDiag]’: /usr/include/c++/7/bits/alloc_traits.h:475:4: required from ‘static void std::allocator_traits::construct(std::allocator_traits::allocator_type&,...
Thanks! It compiles now. But cog does not: ``` File "mavros_extras/src/plugins/esc_telemetry.cpp+62", line 12 cog.outl(f"""pnh.param("{field}_{fm}/{fn}", this->{field}_{fm}_{fn}, {l});""") ^ SyntaxError: invalid syntax ```
My bad I was using `cog -cr ...` instead of `cog.py -cr ...` It run fine now. Thanks. I will move the diagnostics to the dynamically created ESC objects ......