This article describes the sensor calibration technology for the SamSat nanosatellite platform attitude sensing system, which consists of a three-axis magnetometer and a three-axis angular velocity sensor. Using the described technology, calibration tests of sensors were carried out and parameters of error models caused by the temperature of the device were determined for each sensor under study. The described method makes it possible to determine the zero shift and scale factors of the magnetometer by approximating its readings by an ellipsoid using the least squares method. The calibration characteristics of the SamSat QB50 nanosatellite measurement unit are obtained.