socketcan_dune_implementation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
socketcan_dune_implementation [2019/10/11 15:16] – [Example of initializing a SocketCAN instance] nikolalsocketcan_dune_implementation [2019/10/11 15:17] (current) nikolal
Line 27: Line 27:
  
 ==== Example of initializing a SocketCAN instance ==== ==== Example of initializing a SocketCAN instance ====
-The CAN implementation uses ''%%DUNE/System/Error.hpp%%'' to send errors when something goes wrong while initializing SocketCAN. Here is an example on how to initialize SocketCAN while catching if anything goes wrong:+The CAN implementation uses ''%%DUNE/System/Error.hpp%%'' to send errors when something goes wrong while initializing SocketCAN. Here is an example on how to initialize SocketCAN while catching eventual errors:
   try {   try {
    m_can = new Hardware::SocketCAN(m_args.can_dev, SocketCAN::CAN_BASIC_EFF);    m_can = new Hardware::SocketCAN(m_args.can_dev, SocketCAN::CAN_BASIC_EFF);
  • socketcan_dune_implementation.txt
  • Last modified: 2019/10/11 15:17
  • by nikolal