@tom Now it's working again, but might be worth a look, it's important that it always works. Parsing seems fine:
apq8096 detected...
'v2'
len: 2
Initializing v2 modem...
Waiting for ttyUSB2...
ttyUSB2
@tom Now it's working again, but might be worth a look, it's important that it always works. Parsing seems fine:
apq8096 detected...
'v2'
len: 2
Initializing v2 modem...
Waiting for ttyUSB2...
ttyUSB2
Hey,
i'm currently trying to do something similiar to modallink_relink.py, but i need the return value of voxl-modem-start.sh and it should be blocking, so i wanted to directly run that instead of using:
systemctl restart voxl-modem
But when i'm running voxl-modem-start.sh from voxl terminal i get the following error:
the modem is configured and with the service file it works. I also tried playing around with the if conditions in voxl-modem-start.sh but without success.
System Image: 3.8.0
voxl-modem Version: 0.16.1
Hey,
i am using modal pipe and modal json in my project as external project , but sadly the cmake install path is always /usr/lib64, so i wanted to ask if i am allowed to fork modal pipe and modal json and create a public gitlab project including these, where i only change the cmake files ?
Also a list of country codes conforming the (ISO/IEC 3166-1) of the hostapd.conf:
Could be put into the print_usage:
echo "List of available Country Codes: https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes"
Hey,
i'm currently working on setting my voxl to softap mode. While doing that i encountered some issues that i wanted to let u know.
Voxl: Voxl 1
Voxl System Image: 3.8.0
Voxl Suite: 0.7.0
So when i'm trying to set the voxl into softap factory mode i'm getting the following error:
voxl-wifi -f
Output:
Seems like voxl-hwscan doesn't exist anymore in the new system-image ?
Also when i tried editing the default password in:
/usr/bin/voxl-wifi l. 5-7
DEFAULT_SSID="VOXL-BLA"
DEFAULT_PASS="somesecretpassword"
DEFAULT_COUNTRY_CODE="mycountrycode"
it will still use the standart password 1234567890. So i had a look at the hostapd.conf,
and it seems like there also is a wpa_passphrase var at line 997 and a country code at line 99. Modifying voxl-wifi in line 54 to:
function create_softap_conf_file () {
echo "editing ${hostapd_conf_file} for softap mode, ssid is: ${ssid}"
sed -i "/^ssid=/c\ssid=${ssid}" ${hostapd_conf_file}
sed -i "/^wpa_passphrase=/c\wpa_passphrase=${DEFAULT_PASS}" ${hostapd_conf_file}
sed -i "/^country_code=/c\country_code=${DEFAULT_COUNTRY_CODE}" ${hostapd_conf_file}
echo "creating new $conf_file for softap mode, ssid is: ${ssid}"
cat > ${conf_file} << EOF1
country=${country_code}
seems to work. Maybe you could include that in future releases, or let me know if i did something nasty.
@Matt-Turi Ah ok that sounds interesting might be worth a try. Good to know that. Thanks for the fast answer as always.
Hey,
as mentioned above, i want to change the default password of softap mode. Is it only possible with manually changing the default password in the shell script ?
Something like:
echo DEFAULT_PASS="bla" >> /usr/bin/voxl-wifi
Ok i resolved the issue. You actually need to run voxl-mavlink-server and voxl-vision-px4 to get Autopilot enabled for Mavsdk.
@Matt-Turi also is there any particular reason for having a custom resize Function instead of Opencv's resize function?
@Matt-Turi also besides the topic you could add:
InferenceHelper.h
//gpu Opts for more Info see: https://github.com/tensorflow/tensorflow/blob/v2.8.0/tensorflow/lite/delegates/gpu/delegate.h
static constexpr TfLiteGpuDelegateOptionsV2 gpuOptions = {-1, //Allow Precision Loss
TFLITE_GPU_INFERENCE_PREFERENCE_SUSTAINED_SPEED, //Preference
TFLITE_GPU_INFERENCE_PRIORITY_MIN_LATENCY, //Prio1
TFLITE_GPU_INFERENCE_PRIORITY_AUTO, //Prio2
TFLITE_GPU_INFERENCE_PRIORITY_AUTO, //Prio3
TFLITE_GPU_EXPERIMENTAL_FLAGS_ENABLE_QUANT, //Experimental Flags
1, nullptr, nullptr //Serializiation Stuff probably don't touch
};
And might:
constexpr TfLiteGpuDelegateOptionsV2 InferenceHelper::gpuOptions;
InferenceHelper.cpp (because C++11 sucks with constepxr).
With that you can move the creation of the gpu Options to Compile time, and these should always be the same. Tensorflow recommends doing this because the default configuration might change.
Here is the function that you are calling when you are creating the options:
https://github.com/tensorflow/tensorflow/blob/v2.8.0/tensorflow/lite/delegates/gpu/delegate.cc#:~:text=TfLiteGpuDelegateOptionsV2-,TfLiteGpuDelegateOptionsV2Default,-() {