Commit Graph

18 Commits

Author SHA1 Message Date
Adeeb Shihadeh
959ff79963 add cpplint (#401)
* add cpplint

* include what you use

* whitespace fixes

* passes
2022-12-31 16:33:09 -08:00
Adeeb Shihadeh
6e58b293ee include from project root (#402) 2022-12-31 14:19:29 -08:00
Shane Smiskol
9c0c517bc8 SubMaster: add poll argument to C++ class (#307)
* add poll to c++ submaster

* one line

* clean up

one line

* Update messaging/socketmaster.cc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Update messaging/socketmaster.cc

* comment makes more sense

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-05-20 14:24:38 -07:00
Dean Lee
b366ea46a7 SubMaster: set traversalLimitInWords to max (#188)
* set traversalLimitInWords to max

* NO_TRAVERSAL_LIMIT

space

* log_from_bytes
2021-08-17 16:47:26 +02:00
ShaneSmiskol
284468e3cc SubMaster - allow dynamic service lists (#150) 2021-05-18 12:09:54 -07:00
Adeeb Shihadeh
3c895e7b33 construct pubmaster with vector instead of initializer list 2021-05-15 14:12:42 -07:00
Dean Lee
a6f4b6351d C++ SubMaster: make readers always valid (#139)
* refactor submaster

* cleanup
2021-05-14 22:24:40 -07:00
Willem Melching
bab2f2b95e SubMaster: Don't check alive when SIMULATION env variable is set 2021-05-05 15:25:02 +02:00
Adeeb Shihadeh
3be0bf50c8 rename headers: hpp -> h 2021-05-03 20:40:36 -07:00
iejMac
8e5eb3ba4d SubMaster: split socket recv and update (#133)
* add update_msgs

* works, need to find a way to pair socket to message without map

* works with strings

* save changes

* fix

* style

* remove fixMaybe

* style

* void update

* removing dynamic_struct

* comments

* dont need include anymore

* map -> vector<pair>

* move to update_msgs

* uint64

* change

* refrence

* whitepsace after if
2021-04-22 21:45:26 -07:00
Joost Wooning
957147cb84 some fixes and small changes for locationd in c++ (#135)
* Added getters

* extra service to ack messages in process replay

* fix allAliveAndValid ignoring ignoreValid services

* check if readers are updated

* default message valid true
2021-04-19 17:28:06 +02:00
Willem Melching
8203d55702 AlignedBuffer remove operator() to prevent out of scope usage 2021-03-17 14:22:59 +01:00
Dean Lee
97bfe99980 Added new util class AlignedBuffer (#125)
* AlignedBuffer

* rename function aligned to get

* add overloaded function for convenience
2021-03-15 17:27:20 +01:00
Adeeb Shihadeh
adac83269c fix mac build 2020-09-13 13:38:23 -07:00
Dean Lee
ba61dbdf46 Custom message builder (#72)
* add an simple class MessageBuilder

* remove member function toArray()

* fix extra spaces

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-09-12 20:25:57 -07:00
Adeeb Shihadeh
10a25c8b98 expose frame and rcv_frame in C++ submaster (#76)
* expose rcv_frame in C++ submaster

* expose frame too
2020-08-01 16:59:46 -07:00
Willem Melching
4bb1eb826d submaster always conflates 2020-05-21 15:06:50 -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