-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detecting whether Micro ROS Agent is connected over an SBC pin header (RaspberryPi 4, o UpBoard) or over the USB-B on the rear panel.
- Loading branch information
Showing
3 changed files
with
73 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
#pragma once | ||
#include <microros.hpp> | ||
|
||
static UARTSerial microros_serial(RPI_SERIAL_TX, RPI_SERIAL_RX); | ||
static UARTSerial microros_serial_rpi(RPI_SERIAL_TX, RPI_SERIAL_RX); | ||
static UARTSerial microros_serial_ftdi(FT_SERIAL_TX, FT_SERIAL_RX); | ||
|
||
static volatile bool distance_sensors_enabled = false; | ||
static DigitalOut sens_power(SENS_POWER_ON, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters