Skip to content
Browse files

Minor changes to airspeed indicator

  • Loading branch information...
1 parent 6c0cfe5 commit 6d34cb141e8d43daf0a13a71c227ad5db52366cf bobgates committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 panelitems/airspeedindicator.cpp
View
8 panelitems/airspeedindicator.cpp
@@ -3,10 +3,10 @@
AirspeedIndicator::AirspeedIndicator(QObject *parent, ExtPlaneConnection *conn) : NeedleInstrument(parent),
_client(this, typeName(), conn) {
conn->registerClient(&_client);
- _client.subscribeDataRef("sim/cockpit2/gauges/indicators/airspeed_kts_pilot", 1);
+ _client.subscribeDataRef("sim/cockpit2/gauges/indicators/airspeed_kts_pilot", 0.1);
connect(&_client, SIGNAL(refChanged(QString,double)), this, SLOT(speedChanged(QString,double)));
- setBars(20, 10);
- setNumbers(50);
+ setBars(10, 5);
+ setNumbers(20);
setUnit(VELOCITY_KTS);
setMaxValue(300);
}
@@ -44,7 +44,7 @@ QString AirspeedIndicator::typeNameStatic() {
}
void AirspeedIndicator::setMaxValue(float mv) {
maxValue = mv;
- setScale(180, 0, 180+330, maxValue);
+ setScale(25, 40, 0+330, maxValue);
}
void AirspeedIndicator::createSettings(QGridLayout *layout) {

0 comments on commit 6d34cb1

Please sign in to comment.
Something went wrong with that request. Please try again.