Commit 4a982eed authored by Philippe Gaussier's avatar Philippe Gaussier
Browse files

Example of script with promethe to communicate with the drone.

PG.
parent c7189b43
Pipeline #1261 failed with stage
in 3 minutes and 30 seconds
# Drone remote controler
Programm that allow to control a drone via a mavlink server. The idea is to transmit the data through blc channels
#!/bin/sh
coeos droneRemote.symb
#!/bin/sh
promethe droneRemote.script droneRemote.res droneRemote.config droneRemote.gcd
resolution image pour le point de focalisation = 128
echelle temps 0 = -1
echelle temps 1 = 1
vigilence = 0.7
periode = 0
eps = 0.5
echelle de temps pour l'apprentissage = 2
echelle de temps pour afficher le debug = 0
<?xml version="1.0" encoding="UTF-8"?>
<liaison_list>
<liaison>
<depart>-1</depart>
<arrivee>-1</arrivee>
<style>0</style>
</liaison>
<liaison>
<depart>1</depart>
<arrivee>0</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>0</depart>
<arrivee>thrust</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>0</depart>
<arrivee>7</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>0</depart>
<arrivee>10</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>0</depart>
<arrivee>3</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>0</depart>
<arrivee>9</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>0</depart>
<arrivee>8</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>thrust</depart>
<arrivee>11</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>7</depart>
<arrivee>5</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>motors</depart>
<arrivee>4</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>10</depart>
<arrivee>5</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>3</depart>
<arrivee>5</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>commands</depart>
<arrivee>6</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>15</depart>
<arrivee>1</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>0</depart>
<arrivee>13</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>0</depart>
<arrivee>12</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>9</depart>
<arrivee>arm</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>thrust</depart>
<arrivee>2</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>2</depart>
<arrivee>arm</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>5</depart>
<arrivee>16</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>21</depart>
<arrivee>16</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>11</depart>
<arrivee>motors</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>16</depart>
<arrivee>motors</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>8</depart>
<arrivee>commands</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>arm</depart>
<arrivee>commands</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>13</depart>
<arrivee>commands</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>12</depart>
<arrivee>commands</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>23</depart>
<arrivee>22</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>22</depart>
<arrivee>3</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>22</depart>
<arrivee>10</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>22</depart>
<arrivee>7</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>22</depart>
<arrivee>thrust</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>22</depart>
<arrivee>9</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>22</depart>
<arrivee>8</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>22</depart>
<arrivee>13</arrivee>
<style>0</style>
<coude_list />
</liaison>
<liaison>
<depart>22</depart>
<arrivee>12</arrivee>
<style>0</style>
<coude_list />
</liaison>
</liaison_list>
%SYMBOLIC_NO
begin dimensions
fenetre1 1920 1052 0
fenetre2 400 300 0
image1 400 300 0
image2 400 300 0
end dimensions
groupe = 0
p_posx = 773 , p_posy = 668
debug = 0
groupe = 1
p_posx = 1721 , p_posy = 551
debug = 0
groupe = thrust
p_posx = 211 , p_posy = 369
debug = 1
groupe = 8
p_posx = 218 , p_posy = 717
debug = 1
groupe = 9
p_posx = 217 , p_posy = 550
debug = 1
groupe = 7
p_posx = 212 , p_posy = 196
debug = 1
groupe = 3
p_posx = 212 , p_posy = 34
debug = 1
groupe = 10
p_posx = 946 , p_posy = 838
debug = 0
groupe = 4
p_posx = 1177 , p_posy = 83
debug = 1
groupe = 5
p_posx = 770 , p_posy = 219
debug = 1
groupe = 6
p_posx = 1177 , p_posy = 686
debug = 1
groupe = 15
p_posx = 199 , p_posy = 704
debug = 0
groupe = 13
p_posx = 642 , p_posy = 70
debug = 0
groupe = 12
p_posx = 396 , p_posy = 268
debug = 0
groupe = 2
p_posx = 498 , p_posy = 395
debug = 1
groupe = arm
p_posx = 655 , p_posy = 457
debug = 1
groupe = 16
p_posx = 667 , p_posy = 326
debug = 0
groupe = 21
p_posx = 296 , p_posy = 464
debug = 0
groupe = 11
p_posx = 231 , p_posy = 699
debug = 0
groupe = motors
p_posx = 974 , p_posy = 218
debug = 1
groupe = commands
p_posx = 824 , p_posy = 455
debug = 1
Begin positions
fenetre1 1910 27
fenetre2 2151 191
image1 2189 229
image2 2227 267
End positions
port = /dev/input/js0
type = auto
This diff is collapsed.
%fichier hardware de configuration d'une camera
%adresse du port utilise par la camera
port = /dev/video0
%dimensionnement de l'optique de la camera
%angle horizontal
teta_h = 32.5
%angle vertical
teta_w = 42
type = 7
width = 640
height = 480
COLOR = 1
AUTOCHECK = 0
THREADING = 1
NB_BUFFERS = 2
flush_buffers = 1
VIDEO_MODE = 69
FRAMERATE = 36
ISOSPEED = 2
ADDR_BUS_FIREWIRE = 1
brightness = 300
exposure = 390
%exposure = auto
sharpness = 80
white_balance = 110,77
%white_balance = auto
saturation = 90
gamma = 1
shutter = 6
gain = 87
%gain = auto
port = /dev/input/js0
type = auto
ERROR : File droneRemote.symb.symb does not exist... check the parameters
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment