forked from StevensDeptECE/robosim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
submarine.cc
31 lines (25 loc) · 902 Bytes
/
submarine.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//Author: Joseph Villani
#pragma once
#include <iostream>
#incldue <string>
#include "submarine.hh"
submarine::submarine(const std:: string& name,vec_3d pos,vec_3d vel,uint16_t max_speed,
int32_t max_depth, bool beached, int32_t rudder_ang, int32_t prop_spd,
int32_t plane_ang):name(name)),pos(pos),vel(vel),max_speed(max_speed),
max_depth(max_depth),beached(beached),rudder_ang(rudder_ang),
prop_spd(prop_spd),plane_ang(plane_ang){}
std::ostream& operator <<(std::ostream& s, const submarine b&){
return s << "Name: " << b.name << '\n';
return s << "Velocity: (" << b.vel << '\n';
return s << "Location: (" << b.pos << '\n';
}
std::istream& operator >>(std::istream& i, submarine b){
}
void setRudder(){//Change X/Y Direction
}
void setProp(){ //Change X/Y Velocity
}
void setPlane(){ //Move in Z
}
void move(){//Combination
}