Integration examples¶
In this section, a series of examples will be presented so that the user knows how to perform certain customizations in the 1x PDI Builder. In addition, some examples of integration between the Autopilot 1x and external devices are presented.
AP communication with PC¶
Since Veronte Autopilot 1x can be connected to a computer via a USB or serial interface, the configuration for both connections is already set by default in 1x PDI Builder.
However, users should check that this configuration has not been modified to ensure a correct communication via both ways in case one of them is lost. For this:
Go to Input/Output menu \(\rightarrow\) I/O Setup panel. Each USB, RS232 and RS485 Producers must be bidirectionally connected to a Commgr port:
Important
Users should also check that the Commgr ports to which USB and serial ports are connected are not routed. For more information on Routing, see Ports - Communications section of this manual.
CAN communication¶
Here are described the steps to be followed in order to correctly receive and transmit CAN messages:
CAN messages reception¶
Go to Input/Output menu \(\rightarrow\) CAN Setup panel \(\rightarrow\) Mailboxes tab.
Configure the mailbox to receive a message with the appropiate ID (in this example ID 28 has been configured):
Go to Input/Output menu \(\rightarrow\) CAN Setup panel \(\rightarrow\) Configuration tab.
Connect an Input filter with the right CAN ID to a Custom message consumer:
Go to Input/Output menu \(\rightarrow\) CAN Setup panel \(\rightarrow\) Custom message 1 tab (as Custom Message 1 has been selected as consumer).
Configure the message reading as desired in RX by setting the correct CAN ID.
The different options and parameters to be configured are explained in the RX Messages (Custom Messages) - Input/Output section of this manual.
CAN messages transmission¶
Go to Input/Output menu \(\rightarrow\) CAN Setup panel \(\rightarrow\) Custom message 1 tab.
Select the fields to send in TX or TX Ini, as it is a Producer. More information on the configuration of CAN messages can be found in the TX/TX Ini Messages (Custom Messages) - Input/Output section of this manual.
For example, a CAN messsage set to ID 12:
Go to Input/Output menu \(\rightarrow\) CAN Setup panel \(\rightarrow\) Configuration tab.
Connect CAN custom message 1 producer (as the message has been configured in the Custom Message 1 tab) to an Output filter as follows:
Warning
Remember that it is necessary to have at least 1 free mailbox for TX messages.
Data transmission between Veronte Autopilots 1x¶
To establish a proper communication between the ground and air units, the telemetry and sniffer menus must be configured, respectively.
A simple example of use between a ground unit and an air unit is shown below:
In the 1x ground unit:
Go to Telemetry menu \(\rightarrow\) Telemetry panel \(\rightarrow\) Data link to VApp tab (for more information about this, see Data vectors - Telemetry section of this manual).
Add the variables: Absolute: UAV position, Yaw, Pitch and Roll.
Set a Frequency, it is recommended to set it to 10 Hz.
On Address, point to the 1x air unit (it is needed to have both units connected through the radio in order to be able to see them on the menu).
For the 1x air unit:
Go to Telemetry menu \(\rightarrow\) Sniffer panel (for more information about this, see Sniffer - Telemetry section of this manual).
Add a new Sniffer.
Configure the same variables (keeping the same order) than in the ground unit.
On Address, point to the 1x ground unit.
In the gear next to it, configure the 4 incoming variables as System Variables: assign UAV Position to Moving Object and the 3 variables from attitude to 3 different User Variables (keeping the same order as well).
Flare and Decrab phase configuration¶
As flare and decrab guidance are not included in the landing algorithm, since the decrab is control dependent (yaw must be aligned with the runway direction), the following shows how to implement this guidance in a generic fixed wing configuration:
First, it can be useful to create a program that computes the altitude above the touchpoint, the lateral error over the desired route and the heading error. If all conditions met, the flare phase is triggered:
Flare and Decrab guidance definition
In the Guidance program (where the guidances for all phases are defined), add the Flare phase to the Phase Switch block. Then, the flare and decrab guidance must be built as follows:
The desired vertical speed is overwritten to be a function of the height above the runway. In this case the height is calculated in an auxiliary program (Height Above Touchpoint variable calculated in step 1), but the AGL could be used.
The desired yaw is overwritten directly by the runway direction.
The desired roll is overwritten to 0º.
The desired IAS is overwritten to a speed slightly above the stall speed, in this example 15 m/s.
Pitching control
The desired vertical speed is used for pitch control as shown below:
Thrusting control
The throttle is used to maintain the IAS (slightly above stall) and when a height above touchpoint of 1 m is reached, the motor is cut off. Again, a user variable is used here (Height Above Touchpoint variable calculated in step 1), but the AGL could be used:
Rolling control
For the roll, simply try to maintain the desired roll (0º):
Yawing control
The yaw control (rudder) is based on the desired yaw:
Important
This algorithm requires a good yaw estimation if users want to have Decrab, so magnetometer or GNSS Compass is required.
Flare phase configuration¶
However, for a Flare phase without Decrab, the yaw control should be based on heading instead of being based on yaw. To do so, the Guidance and Yawing programs must look as shown below:
For more information on block programs, please refer to Block Programs section of this manual.
External devices¶
The step-by-step instructions for the following external devices will be explained in detail in the following sections: