20 Commits

Author SHA1 Message Date
Willem Melching
4c246405ca add build to scons 2020-05-27 12:09:29 -07:00
Dean Lee
30838d40a4 C++ implementation of SubMaster and PubMaster (#42)
* add class SubMaster&PubMaster

* add socketmaster.cc

* move to cereal_objects

* modify SubMaster

* modify SubMaster

* Code streamlining

* m createSocket

remove dup SubMessage

* Streamline code

Streamline code

Streamline code

alive if delay with LogMonoTime x

reduce code lines

add underscore to class variable,dont check getValid() in poll

add static function get_service(), assert if pub name is not in service list

remove paramater alive from recieve()

rename services to endpoints

is alive is freq_ <= (1e-5)

referer

use sockets_.find() in pushMaster::send to avoid create an empty entry

submaster only do poller, rm PubMaster,add PubMessage

add MessageContext

make SubMaster api same as python version

add class PubMessage

add empty line

fix type

fix typo

remove service_list_

Streamline code

 use cached heaparry to build&send msg

reduce lines

rename sockets_ to messages_

initialize member variable in class

don't use std::find

fix typo

* use global context,remove class PubMessage

remove SubMessage interface from header,add operator[]

undo format source

add new line at end of file

add missing header fiel

reve std::find

add empty line

better drain
2020-05-21 13:57:25 -07:00
Willem Melching
9073b9b1b4 Library cleanup (#43)
* library cleanup

* no static libraries

* apks need static zmq

* Typo

* No hacky script
2020-05-12 18:50:24 -07:00
Adeeb Shihadeh
12aad06e12 no more c capnp 2020-05-07 22:41:03 -07:00
George Hotz
21cf3f557e build on mac 2019-12-14 19:34:01 -08:00
Willem Melching
a7d5bb76b2 add explicit dependencies on services.h 2019-12-03 09:46:17 -08:00
George Hotz
e25bba7747 no need to double build the objects 2019-11-22 07:09:46 -08:00
andyh2
e8ae9086c2 Generate capnp for java 2019-11-21 23:34:52 -05:00
Comma Device
57126a23d9 cereal_shared 2019-11-22 02:01:54 +00:00
Willem Melching
52c6db8719 Run scons in CI (#14)
* try to run scons in azure pipelines

* sudo

* install capnp

* does this run

* also clean test runner

* remove makefiles

* this should build
2019-11-20 16:32:42 -08:00
George Hotz
9414615b99 do need it, but only for arm 2019-11-20 13:03:32 -08:00
George Hotz
2856c37c7b remove gnustl_shared 2019-11-20 13:01:23 -08:00
Comma Device
7f05ee64d9 fix apks 2019-11-20 20:06:32 +00:00
Comma Device
da2ed115e8 don't link the wrong one 2019-11-20 17:54:48 +00:00
Comma Device
fe9fe2a200 scons builds the python lib now 2019-11-20 17:44:47 +00:00
Comma Device
57b03f8b92 now we shouldn't need that yaml crap everywhere 2019-11-20 16:47:01 +00:00
Comma Device
f8e5327781 bridge builds with services.h 2019-11-20 16:33:24 +00:00
Willem Melching
ec27e18cf3 capnpc also generated the header files 2019-11-14 13:50:12 -08:00
Comma Device
7fd314afa4 update scons build file 2019-11-13 18:01:01 +00:00
Comma Device
64ce0b5f40 add scons build 2019-11-12 00:49:08 +00:00