Changeset 50 in flair-dev for trunk/include/FlairMeta
- Timestamp:
- May 31, 2017, 3:54:26 PM (8 years ago)
- Location:
- trunk/include/FlairMeta
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/FlairMeta/HdsX8.h
r44 r50 24 24 class HdsX8 : public Uav { 25 25 public: 26 HdsX8(std::string name, 26 HdsX8(std::string name,std::string options="", 27 27 filter::UavMultiplex *multiplex = NULL); 28 28 ~HdsX8(); 29 29 void StartSensors(void); 30 30 std::string GetDefaultVrpnAddress(void) const{return "192.168.147.197:3883";} 31 bool isReadyToFly(void) const; 32 virtual std::string GetType(void) const{return "hds_x8";} 31 33 32 34 private: -
trunk/include/FlairMeta/MetaDualShock3.h
r25 r50 40 40 41 41 public: 42 MetaDualShock3( core::FrameworkManager *parent,std::string name,42 MetaDualShock3(std::string name, 43 43 sensor::TargetController *controller); 44 44 ~MetaDualShock3(); -
trunk/include/FlairMeta/MetaVrpnObject.h
r44 r50 15 15 16 16 #include <VrpnObject.h> 17 #include "io_data.h" 17 #include <io_data.h> 18 #include <Vector3D.h> 18 19 19 20 namespace flair { 20 namespace core {21 class Vector3D;22 class FloatType;23 }24 21 namespace gui { 25 22 class DataPlot1D; … … 51 48 gui::DataPlot1D *VzPlot(void) const; // 1,2 52 49 gui::DataPlot2D *XyPlot(void) const; 53 void GetSpeed(core::Vector3D &speed) const;50 void GetSpeed(core::Vector3Df &speed) const; 54 51 55 52 private: … … 60 57 gui::DataPlot1D *vx_opti_plot, *vy_opti_plot, *vz_opti_plot; 61 58 gui::Tab *plot_tab; 62 core::FloatType elementDataType;63 59 }; 64 60 } // end namespace meta -
trunk/include/FlairMeta/SimuX4.h
r44 r50 18 18 namespace flair { 19 19 namespace meta { 20 20 21 /*! \class SimuX4 21 22 * … … 23 24 */ 24 25 class SimuX4 : public Uav { 25 public: 26 // simu_id: 0 if simulating only one UAV 27 //>0 otherwise 28 SimuX4(std::string name, int simu_id = 0, 29 filter::UavMultiplex *multiplex = NULL); 30 ~SimuX4(); 31 void StartSensors(void); 26 public: 27 // simu_id: 0 if simulating only one UAV 28 //>0 otherwise 29 SimuX4(std::string name, uint32_t simu_id = 0,std::string options="", 30 filter::UavMultiplex *multiplex = NULL); 31 ~SimuX4(); 32 void StartSensors(void); 33 virtual std::string GetType(void) const{return "x4_simu";} 34 35 private: 36 void ReadCameraResolutionOption(std::string options,std::string cameraName,uint16_t &camWidth,uint16_t &camHeight) const; 37 32 38 }; 33 39 } // end namespace meta -
trunk/include/FlairMeta/SimuX8.h
r44 r50 23 23 */ 24 24 class SimuX8 : public Uav { 25 public: 26 // simu_id: 0 if simulating only one UAV 27 //>0 otherwise 28 SimuX8(std::string name, int simu_id = 0, 29 filter::UavMultiplex *multiplex = NULL); 30 ~SimuX8(); 31 void StartSensors(void); 25 public: 26 // simu_id: 0 if simulating only one UAV 27 //>0 otherwise 28 SimuX8(std::string name, uint32_t simu_id = 0,std::string options="", 29 filter::UavMultiplex *multiplex = NULL); 30 ~SimuX8(); 31 void StartSensors(void); 32 virtual std::string GetType(void) const{return "simu_x8";} 33 34 private: 35 void ReadCameraResolutionOption(std::string options,std::string cameraName,uint16_t &camWidth,uint16_t &camHeight) const; 36 32 37 }; 33 38 } // end namespace meta -
trunk/include/FlairMeta/Uav.h
r44 r50 15 15 16 16 #include <Object.h> 17 #include <UsRangeFinder.h> 17 18 18 19 namespace flair { … … 62 63 sensor::Camera *GetHorizontalCamera(void) const; 63 64 virtual std::string GetDefaultVrpnAddress(void) const{return "127.0.0.1:3883";} 65 virtual bool isReadyToFly(void) const { return true;} 66 virtual std::string GetType(void) const=0; 64 67 65 68 protected: 66 69 void SetBldc(const actuator::Bldc *bldc); 67 70 void SetMultiplex(const filter::UavMultiplex *multiplex); 68 void SetAhrs(const filter::Ahrs *ahrs); 71 void SetAhrs(const filter::Ahrs *ahrs);//also sets imu (retrieved from the ahrs) 69 72 void SetUsRangeFinder(const sensor::UsRangeFinder *us); 70 73 void SetBatteryMonitor(const sensor::BatteryMonitor *battery); -
trunk/include/FlairMeta/UavFactory.h
r44 r50 21 21 #include <Uav.h> 22 22 23 flair::meta::Uav *CreateUav(std::string name, std::string type, 23 flair::meta::Uav *CreateUav(std::string name, std::string type,std::string options="", 24 24 flair::filter::UavMultiplex *multiplex = NULL); 25 25 26 void RegisterUavCreator(flair::meta::Uav*(*func)(std::string name, std::string type,27 flair::filter::UavMultiplex *multiplex));26 void RegisterUavCreator(flair::meta::Uav*(*func)(std::string,std::string,std::string, 27 flair::filter::UavMultiplex*)); 28 28 #endif // UAVFACTORY -
trunk/include/FlairMeta/UavStateMachine.h
r44 r50 107 107 const core::Quaternion &GetCurrentQuaternion(void) const; 108 108 109 const core::Vector3D &GetCurrentAngularSpeed(void) const;109 const core::Vector3Df &GetCurrentAngularSpeed(void) const; 110 110 111 111 void Land(void); … … 227 227 228 228 const sensor::TargetController *GetJoystick(void) const; 229 MetaDualShock3 *joy; 229 230 230 231 gui::Tab *setupLawTab, *graphLawTab; … … 266 267 267 268 core::Quaternion currentQuaternion; 268 core::Vector3D currentAngularSpeed;269 core::Vector3Df currentAngularSpeed; 269 270 270 271 const core::AhrsData *ComputeReferenceOrientation(void); … … 297 298 filter::Pid *uYaw; 298 299 filter::PidThrust *uZ; 299 300 MetaDualShock3 *joy;301 300 filter::TrajectoryGenerator1D *altitudeTrajectory; 302 301 }; -
trunk/include/FlairMeta/XAir.h
r44 r50 24 24 class XAir : public Uav { 25 25 public: 26 XAir(std::string name, 26 XAir(std::string name,std::string options="", 27 27 filter::UavMultiplex *multiplex = NULL); 28 28 ~XAir(); 29 29 void StartSensors(void); 30 30 std::string GetDefaultVrpnAddress(void) const{return "192.168.147.197:3883";} 31 bool isReadyToFly(void) const; 32 virtual std::string GetType(void) const{return "xair";} 31 33 32 34 private:
Note:
See TracChangeset
for help on using the changeset viewer.