How to arm a drone using Dronkit-Python without required the controller to be on? - dronekit-python

I am trying to arm it using Dronkit-Python and I am able to get it to arm properly through code, however, it requires the controller to be on.
Is there anyway to bypass this?

Assuming you mean the RC Controller (not the flight controller), you'll need to turn off the radio failsafe (FS_THR_ENABLE).

Related

I want to know when someone makes a phone call, what will the signal received from a phone look like?

I am learning to rewrite the code for the microcontroller integrated in the development Sim modules (such as Sim800C) to be able to control switching a device without having to use another MCU. If we can do that, we only need to add 1 transistor to be able to control a relay on and off.
I know at the output of the MCU (eg STM32F...) inside the sim module (eg sim800C) there will be a function to receive and read personal information stored in the sim card and decode the signal emitted from the Mobile base station: For example, when a call comes in, it will generate the sequence:
RING
+CLIP: "01203360211",161,"",0,"",0
....
So can anyone help me to know when the MCU outputs a string like the above, what will be its input 11110000,...? or something special in some form? I'm really confused. Thanks everyone!

what library does LED belong to in Pspice?

I am a student and new to Pspice, I am given the following example circuit
and asked to created the following circuit,
which I have this
I think I have my circuit designed correctly. However, I am having trouble with finding the correct diode. I have tried different library such as diode, ediode, diode_bridge, on_diode and infineon, but the diodes from these library don't give a current of 20mA(typically lower than that). I also tried to find discrete.olb, however it's not in my capture library.... Is there any other library contains the 2legs led like the diodes in example circuit?I think the reason why I am not getting 20mA is because of the diode?
As can be seen here on the PSPICE website, you should be able to find all of the LED models in the Optoelectronics->LEDs library.

Multiple identical I2C sensors with the vl53L0x API (ST Microelectronics)

In a professional context, I have to use the vl53L0x. This sensor was released recently, along with it's API, meaning that there's no help on the internet yet :
http://www.st.com/content/st_com/en/products/embedded-software/proximity-sensors-software/stsw-img005.html
This API contains some source and headers file, that I compiled with the gcc. It works fine, despite clearly lacking comments. I flash the memory of a stm32 (NUCLEO-F401RE), which controls a vl53L0x sensor via an I2C bus. I now want to add more vl53L0x sensors on the same I2C bus, and refer to this document (if you want to read it, go directly to the bottom half of the page 5, the wiring is already done) :
http://www.st.com/content/ccc/resource/technical/document/application_note/group0/0e/0a/96/1b/82/19/4f/c2/DM00280486/files/DM00280486.pdf/jcr:content/translations/en.DM00280486.pdf
The principle, that I already applied on other sensors, is that they all start with the same address. You then have to activate one, change it's address, then activate the next one, change it's address, etc.
Unfortunately, ST Microelectronics didn't publish the list of the I2C registers, so I have to use their API to control multiple sensors. The document linked above explains how to do so. Among other things, it specifies :
In vl53L0x_platform.h API file
• Set VL53L0x_SINGLE_DEVICE_DRIVER macro to 0 so that API implementation will
be automatically adapted to a multi-device context.
I looked everywhere in the API folder, I was not able to find any reference to a VL53L0x_SINGLE_DEVICE_DRIVER macro. Setting it to 0 won't change anything, as this string is not present anywhere in the API files. Did anyone run into a similar problem ?
I'm working on the same thing. It seems that you're further ahead than I am. However, putting this in my while(1) loop seems to make both the sensors work.
ResetAndDetectSensor(0);
TimeStamp_Reset();
The guide says that in order to use all the sensors simultaneously, you need to pull the XSHUT pin high for all the sensors, reset the timestamp and then pick up the sensor which actually detects something.

HC-05 Bluetooth receiver not working

I brought an HC-05 module. I used it twice or three times, it was working correctly, but now it is not blinking, can any one tell me what the problem is?
Bad or defected item, it happens often.
Maybe the electric power was no stable... or try it on another 8051 micro controller.
But if it blink that mean it's receiving power .. if not, buy another one:
http://www.aliexpress.com/wholesale?catId=0&initiative_id=SB_20160518055547&SearchText=HC-05+module

Labjack Humidity Probe Example

I realize this might be a long shot, but does anyone have an example of using the EI-1050 probe with a Labjack controller in something C-related? I'm currently using a Labjack U12 if it matters.
It installed 2 examples, ljsht and ljsht-multi, that seem to be doing something related to it, but I can't find the source code.
Thank you for your time.
The applications you mentioned are written in LabVIEW, and the source code is available. Use LJSHT.exe to make sure your EI-1050 is connected right and giving good readings.
Refer to the EI-1050 datasheet for information about interfacing with the U12.
Then start with a basic C example like "VC6 Simple Example" or "U12 Dev-C++ Example":
http://labjack.com/support/u12/examples
... and add a call to the function SHT1X() described in Section 4.31 of the U12 User's Guide.

Resources