Buoyancy Firmware  1.0
Buoyancy Vehicle Firmware Documentation
motor.c File Reference
#include "motor.h"
#include "app_uart.h"
Include dependency graph for motor.c:

Functions

void motorUp (void)
 Vehicle float up towards the surface - Move piston down. More...
 
void motorDown ()
 
More...
 
void motorStop ()
 
More...
 
void enablePistonBottomLimit ()
 
More...
 
void enablePistonTopLimit ()
 
void sendCmd (uint8_t, uint8_t, uint8_t, uint8_t, long)
 Send command to motor controller interface. More...
 
void receiveReply (uint8_t motorReply[])
 
More...
 
void setPistonPosition ()
 
More...
 
void setReferencePositionToZero ()
 
More...
 
float getPistonPosition ()
 
More...
 
float getMotorSpeed ()
 
More...
 
void motorEnableLimitSwitches ()
 
More...
 
void MotorTest ()
 
More...
 
void motorInit ()
 
More...
 
float getAxisParameterValue (uint8_t parameter)
 
More...
 
float getMotorEEPROMValue (uint8_t parameter)
 
More...
 
float getMotorFirmwareVersion ()
 
More...
 
void stopMotorAtSurface ()
 
More...
 
void setSurfaceReferencePoint ()
 
More...
 

Variables

bool bottomLimit
 Flag to signal when bottom limit switch is reached. More...
 
bool motorStopped
 Flag to signal if motor is stopped or need to be stopped. More...
 
rxMotor_t rxMotor = {0}
 Reply message instance. More...
 
mission_t mission
 Create mission struct instance. More...