paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] paparazzi secure datalink compile errors.


From: Michal Podhradsky
Subject: Re: [Paparazzi-devel] paparazzi secure datalink compile errors.
Date: Thu, 14 Jan 2021 09:45:21 -0800

Hi, I got it to work in NPS, added more info in https://github.com/paparazzi/paparazzi/pull/2646 - especially the note about timing.

Chris, to your question - the secure link is by default started with `/paparazzi/sw/ext/rustlink/link  --udp  -a 1 -n Minion_RP3 -c  -v 2.0` so Pprzlink v2.0
You can change it to 1.0 if needed. 

Michal


On Thu, Jan 14, 2021 at 9:26 AM Chris <hendrixgr@gmail.com> wrote:
I deleted the cargo.lock file and thing started to improve, no errors
but i don't have telemetry.

One question that bothers me is how can i tell if i am using messages v1
or v2 on the aircraft side?

Here is the output i get


RUN '/home/hendrix/paparazzi/sw/ext/rustlink/link  --udp
--udp_broadcast  -a 8 -n secure_fixed_wing -c  -v 1.0 --ping_period 1000'
RUN '/home/hendrix/paparazzi/sw/ground_segment/tmtc/server '
RUN '/home/hendrix/paparazzi/sw/ground_segment/cockpit/gcs -layout
gcs_with_video.xml -speech  -mplayer "tv:// -tv
driver=v4l2:norm=PAL:width=720:height=576:outfmt=uyvy:device=/dev/video0:input=0:"'
RUN '/home/hendrix/paparazzi/sw/ground_segment/tmtc/messages  -c
telemetry:*'
warning: trait objects without an explicit `dyn` are deprecated
   --> src/comms.rs:70:37
    |
70 | ) -> Result<serial::SystemPort, Box<Error>> {
    |                                     ^^^^^ help: use `dyn`: `dyn Error`
    |
    = note: `#[warn(bare_trait_objects)]` on by default

warning: trait objects without an explicit `dyn` are deprecated
    --> src/comms.rs:101:65
     |
101 |     pub fn new(config: Arc<LinkConfig>) -> Result<LinkComm,
Box<Error>> {
| ^^^^^ help: use `dyn`: `dyn Error`

warning: trait objects without an explicit `dyn` are deprecated
   --> src/ivy.rs:87:33
    |
87 |             let boxed_cb: Box<(Box<Fn(&mut LinkIvyPing,
Vec<String>)>, &mut LinkIvyPing)> =
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&mut
LinkIvyPing, Vec<String>)`

warning: trait objects without an explicit `dyn` are deprecated
    --> src/ivy.rs:149:33
     |
149 |             let boxed_cb: Box<(Box<Fn(&mut LinkIvySubscriber,
Vec<String>)>, &mut LinkIvySubscriber)> =
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn
Fn(&mut LinkIvySubscriber, Vec<String>)`

warning: trait objects without an explicit `dyn` are deprecated
    --> src/ivy.rs:176:28
     |
176 |     let payload: &mut (Box<Fn(&mut LinkIvyPing, Vec<String>) ->
()>, &mut LinkIvyPing) =
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn
Fn(&mut LinkIvyPing, Vec<String>) -> ()`

warning: trait objects without an explicit `dyn` are deprecated
    --> src/ivy.rs:194:28
     |
194 |     let payload: &mut (Box<Fn(&mut LinkIvySubscriber, Vec<String>)
-> ()>, &mut LinkIvySubscriber) =
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`:
`dyn Fn(&mut LinkIvySubscriber, Vec<String>) -> ()`

warning: trait objects without an explicit `dyn` are deprecated
   --> src/main.rs:47:21
    |
47 | ) -> Result<(), Box<Error>> {
    |                     ^^^^^ help: use `dyn`: `dyn Error`

warning: trait objects without an explicit `dyn` are deprecated
    --> src/main.rs:193:21
     |
193 | ) -> Result<(), Box<Error>> {
     |                     ^^^^^ help: use `dyn`: `dyn Error`

warning: trait objects without an explicit `dyn` are deprecated
    --> src/main.rs:355:55
     |
355 | fn thread_ivy_main(ivy_bus: String) -> Result<(), Box<Error>> {
     |                                                       ^^^^^ help:
use `dyn`: `dyn Error`

warning: variable does not need to be mutable
    --> src/main.rs:241:21
     |
241 |                 let mut buf = new_msg.to_bytes();
     |                     ----^^^
     |                     |
     |                     help: remove this `mut`
     |
     = note: `#[warn(unused_mut)]` on by default

warning: variable does not need to be mutable
    --> src/configs.rs:236:20
     |
236 |                         let mut data: Vec<&str> = data.split(|c| c
== ',' || c == '{' || c == '}').collect();
     |                             ----^^^^
     |                             |
     |                             help: remove this `mut`

warning: variable does not need to be mutable
    --> src/configs.rs:258:20
     |
258 |                         let mut data: Vec<&str> = data.split(|c| c
== ',' || c == '{' || c == '}').collect();
     |                             ----^^^^
     |                             |
     |                             help: remove this `mut`

warning: variable does not need to be mutable
    --> src/configs.rs:279:20
     |
279 |                         let mut data: Vec<&str> = data.split(|c| c
== ',' || c == '{' || c == '}').collect();
     |                             ----^^^^
     |                             |
     |                             help: remove this `mut`

warning: 13 warnings emitted

     Finished release [optimized] target(s) in 0.02s
      Running `paparazzi/sw/ext/rustlink/target/release/rustlink --udp
--udp_broadcast -a 8 -n secure_fixed_wing -c -v 1.0 --ping_period 1000`
Value for ivy_bus: 127.255.255.255:2010
Value for ping_period: 1000
Value for status_period: 5000
Value for baudrate: 9600
Value for port: "/dev/ttyUSB0"
Use UDP: true
Use UDP broadcast: true
Value for remote_addr: 127.0.0.1
Value for pprzlink version: v1.0
Global message class is set to Telemetry
Sender id: ground_dl
Link name:
Value for aircraft name: Some("secure_fixed_wing")
Value for aircraft ID: 8
Enable GEC: true
Opening
/home/hendrix/paparazzi/var/aircrafts/secure_fixed_wing/ap/generated/keys_gcs.h
Starting encrypted datalink...
returning msg1, waiting msg2

Warning: 'modules' node is deprecated, please move modules to 'firmware'
section

Warning: 'modules' node is deprecated, please move modules to 'firmware'
section

Warning: 'modules' node is deprecated, please move modules to 'firmware'
section

Warning: 'modules' node is deprecated, please move modules to 'firmware'
section

Warning: 'modules' node is deprecated, please move modules to 'firmware'
section

Warning: 'modules' node is deprecated, please move modules to 'firmware'
section

Warning: 'modules' node is deprecated, please move modules to 'firmware'
section

Warning: 'modules' node is deprecated, please move modules to 'firmware'
section

Warning: 'modules' node is deprecated, please move modules to 'firmware'
section

Warning: 'modules' node is deprecated, please move modules to 'firmware'
section

Warning: 'modules' node is deprecated, please move modules to 'firmware'
section

Warning: 'modules' node is deprecated, please move modules to 'firmware'
section
again returning msg1, waiting msg2
again returning msg1, waiting msg2


_______________________________________________
Paparazzi-devel mailing list
Paparazzi-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]