Buoyancy Firmware  1.0
Buoyancy Vehicle Firmware Documentation
motor.h File Reference
#include "main.h"
Include dependency graph for motor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rxMotor_t
 structure with received values from motor interface More...
 

Typedefs

typedef enum motorstatus status_t
 Status values returned in reply from command sent to motor interface. More...
 

Enumerations

enum  motorstatus {
  SUCCESS = 100, LOADED_IN_EEPROM, WRONG_CHECKSUM = 1, INVALID_COMMAND,
  WRONG_TYPE, INVALID_VALUE, EEPROM_LOCKED, CMD_UNAVAILABLE
}
 Status values returned in reply from command sent to motor interface. More...
 

Functions

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