Skip to content

Commit

Permalink
* reverted commented out lidar
Browse files Browse the repository at this point in the history
* removed docs from header
  • Loading branch information
Chobotnatec committed Aug 16, 2024
1 parent 1d6915f commit 68fab43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
7 changes: 4 additions & 3 deletions hardwareModules/RoFICoM/software/control_board/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,9 @@ int main() {
bsp::internalSwitchPin, bsp::internalVoltagePin, bsp::internalCurrentPin,
bsp::externalSwitchPin, bsp::externalVoltagePin, bsp::externalCurrentPin );
ConnectorStatus connectorStatus ( bsp::connectorSenseA, bsp::connectorSenseB );
//Lidar lidar( &*bsp::i2c, bsp::lidarEnablePin, bsp::lidarIRQPin );
//lidarInit( lidar, currentLidarMeasurement );
Lidar lidar( &*bsp::i2c, bsp::lidarEnablePin, bsp::lidarIRQPin );

lidarInit( lidar, currentLidarMeasurement );

ConnComInterface connComInterface( std::move( bsp::connectorComm ).value() );

Expand All @@ -232,7 +233,7 @@ int main() {
onCmdVersion( spiInterface );
break;
case Command::STATUS:
//onCmdStatus( spiInterface, std::move( b ), connComInterface, connectorStatus, slider, powerInterface, lidar, currentLidarMeasurement );
onCmdStatus( spiInterface, std::move( b ), connComInterface, connectorStatus, slider, powerInterface, lidar, currentLidarMeasurement );
break;
case Command::INTERRUPT:
onCmdInterrupt( spiInterface, std::move( b ) );
Expand Down
8 changes: 1 addition & 7 deletions hardwareModules/RoFICoM/software/control_board/src/motor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@ static const float kRetractedPosition = 0.0;
static const float kExpandedPosition = 1.0;
}

/**
* Returns direction coeffiecient -1 or 1 based on direction
* @param position
* @param goal_position
* @return -1 if goal < position, 1 if goal > position, 0 if goal==position
*/
float getDirection(float position, float goal);
float getPower(float position, float goal_position);

Expand Down Expand Up @@ -164,7 +158,7 @@ class Slider {
* Computes position of the connector as value <0.0,1.0>.
* 0.0 means fully retracted, 1.0 represents fully extended/locked
*
* Note: when fully retracted not sensor is actually triggered,
* Note: when fully retracted no sensor is actually triggered,
*
* @return
*/
Expand Down

0 comments on commit 68fab43

Please sign in to comment.