Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-rtos mbed QEI BNO055 MPU6050_DMP_Nucleo-I2Cdev virgo3_imuHandler_Orion_PCB MAX17048 Servo
Fork of Orion_newPCB_test by
localization.h
00001 #ifndef localization_H 00002 #define localization_H 00003 00004 #include "mbed.h" 00005 #include "generalFunctions.h" 00006 #include "config.h" 00007 00008 00009 class Localization 00010 { 00011 public: 00012 Localization(); 00013 float position[2]; 00014 void updatePosition(float heading, float wheel_revolutions[2]); //heading in rad 00015 void setPosition(float position_in[2]); //[x,y] position 00016 00017 private: 00018 float prevRevolutions[2]; //store previous iteration's revolutions 00019 float wheelDia; 00020 float trackWidth; 00021 float incrementalDistance; 00022 }; 00023 00024 00025 #endif
Generated on Tue Jul 12 2022 20:53:07 by
1.7.2
