Firmware and Python Library
Posted: Wed Jun 05, 2019 4:30 pm
Hi all,
I was wondering if I were to add a function in crtp_commander_high_level.c, I understand how to build the code and flash the crazyflie. However, I'm a bit confused on how I can modify high_level_commander.py in order to use this C function in a python script?
Another related question is how can I access the pmGetBatteryVoltage() function in pm_stm32f4.c from a python script? I would like to monitor the battery level as the crazyflie is in flight.
Any suggestions are greatly appreciated! Thanks!
I was wondering if I were to add a function in crtp_commander_high_level.c, I understand how to build the code and flash the crazyflie. However, I'm a bit confused on how I can modify high_level_commander.py in order to use this C function in a python script?
Another related question is how can I access the pmGetBatteryVoltage() function in pm_stm32f4.c from a python script? I would like to monitor the battery level as the crazyflie is in flight.
Any suggestions are greatly appreciated! Thanks!