# RTP launch Test
## :wrench: Pre-install
### Computer Thalès HMI
1. :electric_plug: Plug the joytsick to thales master computer
2. On IHM Thalès Master verify if joytick app working :
- Verify the logo on IHM cube (Orange logo)
- calibrate the joytsick (Green logo)
> If the Joystick not working automatically, try to launch the .bat in on RTP folder on the desk
### :computer: SC-01 (IP : 10.0.1.10, 192.168.0.111)
It is on this computer that the RTP code runs.
if you want to put a new version of RTP in the bay.
The binary must be placed by hand.
( Copy th rtp_app from landing repository on anther pc with good version on libC.) Create binary code put rtp_app folder on pc for compilate and create binary :
````
mkdir build
cd build
cmake ..
make -j15
````
On SC-01 put the binary RTP code with the last version to test:
```bash
scp /src/dragonfly-rtp-app dragonfly@10.0.1.11:~/
```
> :warning: Warning, the code must be recompiled with the new version of ubuntu, otherwise there are problems with the libgc library.
### :computer: SC-05 (IP : 10.0.1.13, 192.168.0.113)
On this computeur the camera streamer runs, It is the application which allows to display, the image of the camera on the track.
> :electric_plug: You need to plug the sdi cable to SC-05 to HMI master thales computeur
If you want to test or try another code you need to put the binary code on the computeur:
On SC-05 put the binary code camera streamer (compilate with gpu) :
```bash
scp src/dragonfly-camera-streamer dragonfly@10.0.1.13:~/
```
(-> On FTE cube HMI launch hdmi to dds apps.)
### :computer: OKTAL Computeur
If in D42 right bay need to launch Oktal, Oktal allows to simulate the environment around the aircraft and to produce an image of the camera.
On Oktal PC, in folder oktal_apps click **launch_closed_loop**, it's launch simulator.
On SC-05, launch the HDMI to DDS, it takes the image from oktal to put on DDS like camera.
with command bash :
````bash
systemctl start dragonfly-hdmi_to_dds@Oktal-12MP.service
````
or with FTE cube HMI. Put the FTE cube HMI to debug by clicking several times on the dragonfly log. In apps start hdmi to dds app.
In D42 launch the hdmi to dds :
````bash
systemctl start dragonfly-hdmi
````
## :arrow_forward: Launch test
Launch RTP APP:
1.Configurate the oCCsime to make landing
2. Put landing mode and CV_OL and landing on FTE Cube
3. On FTE cube put the good calibration, Put pseudoAdis Calibartion camera.
4. Stop service camera stramer and rtp app, or directely on fte cube hmi
5.If code on bay is good launch camera streamer and rtp app with fte hmi, else launch code by the hand :
```bash
ssh dragonfly@10.0.1.11
sudo -u dragonflysys ./dragonfly-rtp-app -d 42 -D corbaloc::OC-01:12345/DCPSInfoRepo -i 10.0.1.11
```
```bash
ssh dragonfly@10.0.1.13
sudo -u dragonflysys ./dragonfly-camera-streamer -d 42 -D corbaloc::OC-01:12345/DCPSInfoRepo -i 10.0.1.13 -p /etc/dragonfly-camera-streamer/ -s -n -T calib_12mp -c 1 -m 1080p60
```
5. :tada: you can Test
{"metaMigratedAt":"2023-06-17T15:08:59.755Z","metaMigratedFrom":"Content","title":"RTP launch Test","breaks":true,"contributors":"[{\"id\":\"17e0142c-588a-4cc1-a716-e1201ddfbce8\",\"add\":3311,\"del\":296}]"}