I haven’t looked closely at that code but I imagine it could be done by writing a library for the APM that runs only on the Pixhawk/PX4 that publishes the voltage, altitude, temp, GPS position and maybe current to the hott_telemetry process. Then the start-up script for the Pixhawk (ardupilot\mk\PX4\ROMFS\init.d\rc.APM) so that that process is started.
Inside the AC/AP code you would likely call this new library with the updated values each time an update is received from the GPS, current monitor, etc.
-Randy
--
You received this message because you are subscribed to the Google Groups "drones-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drones-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--