with class
Dependencies: ISR_Mini-explorer mbed
Fork of VirtualForces by
Diff: Map.cpp
- Revision:
- 39:890439b495e3
- Parent:
- 35:68f9edbb3cff
--- a/Map.cpp Thu Jun 15 23:17:55 2017 +0000 +++ b/Map.cpp Fri Jun 16 10:40:53 2017 +0000 @@ -33,6 +33,14 @@ } } +void Map::fill_map_with_initial(){ + for (int i = 0; i<this->nbCellWidth; i++) { + for (int j = 0; j<this->nbCellHeight; j++) { + this->cellsLogValues[i][j] = initialLogValues[i][j]; + } + } +} + //returns the probability [0,1] that the cell is occupied from the log valAue lt float Map::log_to_proba(float lt){ return 1-1/(1+exp(lt));